Skip to main content

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 hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page