Skip to main content

Build Status PyPI

literalizer-cli

CLI for literalizer - convert data structures to native language literal syntax.

Usage example

$ echo '{"name": "Alice", "age": 30}' | literalize --language go
map[string]interface{}{
    "name": "Alice",
    "age": 30,
}

$ echo '[1, 2, 3]' | literalize --language rust
vec![
    1,
    2,
    3,
]

$ echo '[["alice", 30], ["bob", 25]]' | literalize --language python --mode call --call-function create_user --call-params name,age
create_user(name="alice", age=30)
create_user(name="bob", age=25)

Installation

With pip

Requires Python 3.12+.

pip install literalizer-cli

With Homebrew (macOS, Linux, WSL)

Requires Homebrew.

brew tap adamtheturtle/literalizer-cli
brew install literalizer-cli

With winget (Windows)

Requires winget.

winget install --id adamtheturtle.literalizer-cli --source winget --exact

The winget package may not be the latest version.

Pre-built Linux (x86) binaries

$ curl --fail -L https://github.com/adamtheturtle/literalizer-cli/releases/download/2026.08.29/literalize-linux -o /usr/local/bin/literalize &&
    chmod +x /usr/local/bin/literalize

Pre-built macOS (ARM) binaries

$ curl --fail -L https://github.com/adamtheturtle/literalizer-cli/releases/download/2026.08.29/literalize-macos -o /usr/local/bin/literalize &&
    chmod +x /usr/local/bin/literalize

Pre-built Windows binaries

Download the Windows executable from the latest release and place it in a directory on your PATH.

With Docker

$ docker run --rm -i ghcr.io/adamtheturtle/literalizer-cli:latest literalize --help

With Nix

Requires Nix.

nix --extra-experimental-features 'nix-command flakes' run "github:adamtheturtle/literalizer-cli/2026.08.29" -- --help

To avoid passing --extra-experimental-features every time, enable flakes permanently.

Or add to your flake inputs:

{
  inputs.literalizer-cli.url = "github:adamtheturtle/literalizer-cli";
}

Using literalize as a pre-commit hook

To run literalize with pre-commit, add hooks like the following to your .pre-commit-config.yaml:

-   repo: https://github.com/adamtheturtle/literalizer-cli-pre-commit
    rev: v2026.8.29
    hooks:
    -   id: literalize
        args: ["--language", "python"]

Full documentation

See the full documentation.

Metadata

Release files for literalizer-cli 2026.8.30

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

Source distribution (sdist)

Source distribution for literalizer-cli 2026.8.30
File Size Uploaded
literalizer_cli-2026.8.30.tar.gz 157.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for literalizer-cli 2026.8.30
File Interpreter ABI Platform
literalizer_cli-2026.8.30-py3-none-any.whl Python 3 none any Details

Total release size: 170.8 kB

Release files / literalizer_cli-2026.8.30.tar.gz

Download URL literalizer_cli-2026.8.30.tar.gz
Size 157.5 kB
Tags Source
SHA-256 checksum
How to use checksums
13b8d72b8b5ae02611dfc0d689c195bb053c2a62971a5687eadfcf2bf3ba0826
BLAKE2b-256 checksum
How to use checksums
325cc558eb855389ef5f4dda07e335d0e4acb95d619069dd9092111dfadf3b09
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 30, 2026.

Transparency log

Release files / literalizer_cli-2026.8.30-py3-none-any.whl

Download URL literalizer_cli-2026.8.30-py3-none-any.whl
Size 13.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9f85fede75774b3e7a935838344335b87ec8290170a6188e1e00a9029b2558d6
BLAKE2b-256 checksum
How to use checksums
6d42b1389a286b6a65eb7afc5be30646cc9c65045ba9ac21324001c0ac7af3d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 30, 2026.

Transparency log
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