Skip to main content

JONF parser/formatter in Python

Project description

JONF parser/formatter in Python

[!WARNING] JONF.py draft is archived in favor of TTT - please check it.

NOTE: This is an early alpha version

  • JONF format docs
  • Formatter is implemented and tested
  • Parser is not implemented yet
  • Python example:
# pip install jonf

import jonf, textwrap

text = textwrap.dedent(
    """\
    compare =
      - true
      = true
    """
).rstrip()

data = {
    "compare": [
        "true",
        True,
    ]
}

# TODO:
# assert jonf.parse(text) == data

assert jonf.format(data) == text

print(jonf.format(data))

Output:

compare =
  - true
  = true

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

jonf-0.0.7.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jonf-0.0.7-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file jonf-0.0.7.tar.gz.

File metadata

  • Download URL: jonf-0.0.7.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.8.12 Linux/5.15.0-144-generic

File hashes

Hashes for jonf-0.0.7.tar.gz
Algorithm Hash digest
SHA256 3691e6ebeeda97f33b247e94ec7e1e234cc94fb19b710f64d640843b4f627e97
MD5 f212f8e784d08c4c3e0a4b316469718d
BLAKE2b-256 c9c8f808775356d880fca33d962c54a2b0c41d605d0f053db3237751cfa26c8a

See more details on using hashes here.

File details

Details for the file jonf-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: jonf-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.8.12 Linux/5.15.0-144-generic

File hashes

Hashes for jonf-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 6f59923d1e9b4d1330a0e25438e1202da4561990b97a1b438971c0cdefb83e75
MD5 58cbdda500e7620370e413a2ecfde321
BLAKE2b-256 b5e7d7ffbec6a2534700212e6ebecaaf9085335a73dfb4b00e12dea8f930c748

See more details on using hashes here.

Supported by

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