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.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.30.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.30.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.30.1
hooks:
- id: literalize
args: ["--language", "python"]
Full documentation
See the full documentation.
Metadata
Release files for literalizer-cli 2026.10.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| literalizer_cli-2026.10.9.tar.gz | 160.8 kB | With provenance | Details for literalizer_cli-2026.10.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| literalizer_cli-2026.10.9-py3-none-any.whl | Python 3 | none | any | Details for literalizer_cli-2026.10.9-py3-none-any.whl |
Total release size: 173.4 kB
Release files / literalizer_cli-2026.10.9.tar.gz
| Download URL | literalizer_cli-2026.10.9.tar.gz |
|---|---|
| Size | 160.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0c2723abac2554087dded50d55dc433af56f0a2bbcdb8af159c9eeeb62e2d2ce
|
|
BLAKE2b-256 checksum How to use checksums |
cd895e164580391c856da45ef3d0e6c5f68bd96bf873ec6d48d382d38968b041
|
| 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 Oct 9, 2026.
Transparency logRelease files / literalizer_cli-2026.10.9-py3-none-any.whl
| Download URL | literalizer_cli-2026.10.9-py3-none-any.whl |
|---|---|
| Size | 12.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f26124a43c8300ce140a3d089763feb7a449a4d2bc87a133b91cd42f32599268
|
|
BLAKE2b-256 checksum How to use checksums |
068d9542dabcc23d01d6db32ca80491bcd586e816dff0c7d190437be90dc4f48
|
| 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 Oct 9, 2026.
Transparency logSecurity for literalizer-cli 2026.10.9
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for literalizer_cli-2026.10.9.tar.gz
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 Oct 9, 2026.
Transparency logA 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.