Skip to main content

t2j

t2j converts TOML input to JSON output and vice versa.

Usage

Feed the TOML contents via standard input:

cat pyproject.toml | t2j | jq -r '.project.dependencies[]'

Specifying the filename has the same effect:

t2j pyproject.toml | jq -r '.project.dependencies[]'

Reverse Direction (JSON-to-TOML)

Invoke as j2t option for reverse (JSON-to-TOML) conversion:

t2j pyproject.toml | j2t

Note:

  1. The JSON input must be a mapping (JSON object).

  2. Round-trip formatting is not preserved, e.g. keys and tables may be reordered, comments are dropped, etc.

Conversion direction may also be given as -J/--json-to-toml or -T/--toml-to-json. These options override the direction implied by the command name, e.g. t2j -J is the same as j2t.

Metadata

Release files for t2j 0.1.0

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

Source distribution (sdist)

Source distribution for t2j 0.1.0
File Size Uploaded Provenance
t2j-0.1.0.tar.gz 4.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for t2j 0.1.0
File Interpreter ABI Platform
t2j-0.1.0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 7.7 kB

Release files / t2j-0.1.0.tar.gz

Download URL t2j-0.1.0.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
593b449ee5fa6a83f816047bbc22a4c6fafd22602209cdeebb9c8ac8c285529e
BLAKE2b-256 checksum
How to use checksums
ca02146a66a71eb6dc89ba2e9efa90aac01929bdba6942839ac628bc0bed7022
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.27.1

Release files / t2j-0.1.0-py2.py3-none-any.whl

Download URL t2j-0.1.0-py2.py3-none-any.whl
Size 3.1 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
f9168c524309954e5fcb3242045f3060fa6b7ea2fd2c51757f75f43a7a935f4a
BLAKE2b-256 checksum
How to use checksums
e4d8cec3d0ab1e8e881a61aaf8f8967d447e2183ca101266a040c1bf364746fd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.27.1

Security for t2j 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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