Skip to main content

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

Release files for jonf 0.0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for jonf 0.0.7
File Size Uploaded
jonf-0.0.7.tar.gz 3.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for jonf 0.0.7
File Interpreter ABI Platform
jonf-0.0.7-py3-none-any.whl Python 3 none any Details

Total release size: 7.7 kB

Release files / jonf-0.0.7.tar.gz

Download URL jonf-0.0.7.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
3691e6ebeeda97f33b247e94ec7e1e234cc94fb19b710f64d640843b4f627e97
BLAKE2b-256 checksum
How to use checksums
c9c8f808775356d880fca33d962c54a2b0c41d605d0f053db3237751cfa26c8a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.8.12 Linux/5.15.0-144-generic

Release files / jonf-0.0.7-py3-none-any.whl

Download URL jonf-0.0.7-py3-none-any.whl
Size 3.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6f59923d1e9b4d1330a0e25438e1202da4561990b97a1b438971c0cdefb83e75
BLAKE2b-256 checksum
How to use checksums
b5e7d7ffbec6a2534700212e6ebecaaf9085335a73dfb4b00e12dea8f930c748
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.8.12 Linux/5.15.0-144-generic

Release history Release notifications | RSS feed

This release

0.0.7 This release

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page