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.30/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.30/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.30" -- --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.30
hooks:
- id: literalize
args: ["--language", "python"]
Full documentation
See the full documentation.
Metadata
Release files for literalizer-cli 2026.8.30.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| literalizer_cli-2026.8.30.1.tar.gz | 157.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| literalizer_cli-2026.8.30.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 170.7 kB
Release files / literalizer_cli-2026.8.30.1.tar.gz
| Download URL | literalizer_cli-2026.8.30.1.tar.gz |
|---|---|
| Size | 157.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b7288270c9769512c766c8e0f903c9e9733537ad22a5d50af69a09a8308f20c8
|
|
BLAKE2b-256 checksum How to use checksums |
e23dd92cf6e6cf4e673c3d2713115d820ed706dc259ad073fe7881e076e8e263
|
| 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 logRelease files / literalizer_cli-2026.8.30.1-py3-none-any.whl
| Download URL | literalizer_cli-2026.8.30.1-py3-none-any.whl |
|---|---|
| Size | 13.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8345fc87d8d15e8810df2e0387583d719079a4d483f85ea5836382c2bdbac939
|
|
BLAKE2b-256 checksum How to use checksums |
c1b0adcb65ac2bb23e2914cd159d9823c2ecf8a39b72726b4cc8b04b98086f2e
|
| 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