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.7.tar.gz
(2.0 kB
view details)
File details
Details for the file datalang-1.0.7.tar.gz
.
File metadata
- Download URL: datalang-1.0.7.tar.gz
- Upload date:
- Size: 2.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d2fac4585bad8712c5f3165e8dc45b789ce0a3519d0a0699ec053fc6526db88 |
|
MD5 | d0fdbb9d71925206637c2e0187167b68 |
|
BLAKE2b-256 | c477baaa025d2412f860cdb2f00caca1f3368f4b871db21670ab48a2ee82b5d3 |