1
Fork 0
mirror of https://github.com/RGBCube/DML synced 2025-07-26 23:27:43 +00:00
No description
Find a file
2022-12-08 18:23:40 +03:00
dml forgor 2022-04-07 23:32:06 +03:00
LICENSE.md Update and rename LICENSE to LICENSE.md 2022-12-08 18:23:40 +03:00
README.md Initial Commit 2022-03-19 22:15:26 +03:00
setup.py fix 2022-03-19 22:25:14 +03:00

🈷️ Dotted Markup Language

Translate text to and from DML with ease.

📥 Installation

Execute pip install dotted-ml.

Add import dml to the top of your project.

Usage

🚮 Encoding

import dml

mycode = """
myvar = "Hello, world!"
print(myvar)
"""

dml.encode(mycode, out="mycode.dml")

mycode.dml:

܁٠܁٠۰܁܁٠܁܁٠܁۰܁܁܁܁٠٠܁۰܁܁܁٠܁܁٠۰܁܁٠٠٠٠܁۰܁܁܁٠٠܁٠۰܁٠٠٠٠٠۰܁܁܁܁٠܁۰܁٠٠٠٠٠۰܁٠٠٠܁٠۰܁٠٠܁٠٠٠۰܁܁٠٠܁٠܁۰܁܁٠܁܁٠٠۰܁܁٠܁܁٠٠۰܁܁٠܁܁܁܁۰܁٠܁܁٠٠۰܁٠٠٠٠٠۰܁܁܁٠܁܁܁۰܁܁٠܁܁܁܁۰܁܁܁٠٠܁٠۰܁܁٠܁܁٠٠۰܁܁٠٠܁٠٠۰܁٠٠٠٠܁۰܁٠٠٠܁٠۰܁٠܁٠۰܁܁܁٠٠٠٠۰܁܁܁٠٠܁٠۰܁܁٠܁٠٠܁۰܁܁٠܁܁܁٠۰܁܁܁٠܁٠٠۰܁٠܁٠٠٠۰܁܁٠܁܁٠܁۰܁܁܁܁٠٠܁۰܁܁܁٠܁܁٠۰܁܁٠٠٠٠܁۰܁܁܁٠٠܁٠۰܁٠܁٠٠܁۰܁٠܁٠۰

♻️ Decoding

import dml

dml.decode_file("mycode.dml", out="mycode.py")

mycode.py:


myvar = "Hello, world!"
print(myvar)