A parser for Datalang.
Project description
Datalang
Datalang it's an easy to use language with a similar syntax to YAML.
How-to Install
You will need PIP
git clone https://github.com/ZSendokame/datalang
# Or
pip install datalang
How-to Use
import datalang
load = datalang.load('''
str string: value
int integer: 1
list listVariable:
- value0
- value1
dict dictVariable:
- variable0: value0
- variable1: value1
''')
print(load)
{
'string': 'value',
'integer': 1,
'listVariable': [
'value0',
'value1'
],
'dictVariable': {
'variable0': 'value0',
'variable1': 'value1'
}
}
# And vice-versa with
print(datalang.dump(load))
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
datalang-1.0.5.tar.gz
(2.1 kB
view details)
File details
Details for the file datalang-1.0.5.tar.gz
.
File metadata
- Download URL: datalang-1.0.5.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ecb320fc378f7d84b4086cd5e9e6ee8fc51c7e1baa8c57f14d83867a1beedc2 |
|
MD5 | 7c3eb8d0a6e2e50ab11c927e87d850c3 |
|
BLAKE2b-256 | de164cb4a35a6858482aef084b8a702f0dbd844859be0d20b98559ca7708ea3e |