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.16.1/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.16.1/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.16.1" -- --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.16.1
    hooks:
    -   id: literalize
        args: ["--language", "python"]

Full documentation

See the full documentation.

Metadata

Release files for literalizer-cli 2026.8.29

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.29
File Size Uploaded
literalizer_cli-2026.8.29.tar.gz 157.6 kB Details

Built distribution (wheel)

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

Total release size: 170.9 kB

Release files / literalizer_cli-2026.8.29.tar.gz

Download URL literalizer_cli-2026.8.29.tar.gz
Size 157.6 kB
Tags Source
SHA-256 checksum
How to use checksums
7712d7ad886ca1b39a184a166f421c237884f7dc8b0d413efb2f234ddb0557f1
BLAKE2b-256 checksum
How to use checksums
e4b844ce125a261584a1b84042997e8a963f2f270423aefc2e506cd9ad0bee0b
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 29, 2026.

Transparency log

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

Download URL literalizer_cli-2026.8.29-py3-none-any.whl
Size 13.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
eb7eb9dd2428a2608e09435b534c5232e2fb155eded1ae8fb8489f03f3937ede
BLAKE2b-256 checksum
How to use checksums
52fe5843965a11d8b2adbd99c7736d05c8a4b1ada0d5ea15c36f031a06207e68
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 29, 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