Skip to main content

fmtconv

Convert between JSON, YAML, TOML, and INI config formats from the command line.

Install

pip install fmtconv-cli

Usage

# Convert between formats
fmtconv to-yaml config.json
fmtconv to-json config.yaml
fmtconv to-toml config.json
fmtconv to-ini config.json
cat config.yaml | fmtconv to-json

# Auto-detect format
fmtconv detect config.yaml          # → yaml

# Validate
fmtconv validate config.json        # → Valid JSON

# Pretty-print in place
fmtconv prettify messy.json

# Write to file
fmtconv to-yaml config.json -o config.yaml

# Sort keys
fmtconv to-json config.yaml --sort-keys

# Machine-readable output
fmtconv detect config.yaml --json   # → {"format": "yaml"}

Commands

Command Description
to-json Convert to JSON
to-yaml Convert to YAML
to-toml Convert to TOML
to-ini Convert to INI
detect Auto-detect format
validate Check if input is valid
prettify Pretty-print in same format

All commands accept a file argument or stdin, and support --json for machine-readable output.

For AI Agents

See SKILL.md for agent-optimized documentation.

License

MIT

Release files for fmtconv-cli 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 fmtconv-cli 0.1.0
File Size Uploaded
fmtconv_cli-0.1.0.tar.gz 5.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for fmtconv-cli 0.1.0
File Interpreter ABI Platform
fmtconv_cli-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 11.0 kB

Release files / fmtconv_cli-0.1.0.tar.gz

Download URL fmtconv_cli-0.1.0.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
f7a4b68c49def9507128045f7c3baf6d8c688444e106d98c81ddaa5b5ea280d3
BLAKE2b-256 checksum
How to use checksums
768a8d688d51dee60b2d1db6ee978577e5dadb4fba9ed0bc4531c1c206be601d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Release files / fmtconv_cli-0.1.0-py3-none-any.whl

Download URL fmtconv_cli-0.1.0-py3-none-any.whl
Size 5.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
78599caaa32185a272151d5c40e8cf7f6085e8af22f62397808182c63f70b6cd
BLAKE2b-256 checksum
How to use checksums
fea7d93d3177b2a0d07d42ab12d3b99a54e2cf49ecef9926c1c99101a7d68138
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Release history Release notifications | RSS feed

This release

0.1.0 This release

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