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.6.tar.gz (2.0 kB view details)

Uploaded Source

File details

Details for the file datalang-1.0.6.tar.gz.

File metadata

  • Download URL: datalang-1.0.6.tar.gz
  • Upload date:
  • Size: 2.0 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

Hashes for datalang-1.0.6.tar.gz
Algorithm Hash digest
SHA256 e38050136d2b4b74c3292a74705584aa6102b0145f448405d0ee70764cc43bab
MD5 b77926a0d5c5b971d6b6b53d90f2be17
BLAKE2b-256 ee012a25b18923b1b5327067cfa56576bd7bf5f0ebe74e6575aa3106f350e9de

See more details on using hashes here.

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