Skip to main content

llm-to-json

Tiny wrapper around prompture with a minimal, easy-to-use API for converting LLM output (or raw text) into JSON according to a schema.

Install:

pip install llm-to-json

Usage:

from llm_to_json import from_llm_text
schema = {"name": "string", "age": "int"}
print(from_llm_text("Name: Juan Age: 30", schema))

For full docs and advanced features, see the main project: Prompture — https://github.com/jhd3197/prompture

Metadata

Release files for llm-to-json 1.17.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 llm-to-json 1.17.0
File Size Uploaded Provenance Actions
llm_to_json-1.17.0.tar.gz 2.0 kB Without provenance Details for llm_to_json-1.17.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for llm-to-json 1.17.0
File Interpreter ABI Platform Actions
llm_to_json-1.17.0-py3-none-any.whl Python 3 none any Details for llm_to_json-1.17.0-py3-none-any.whl

Total release size: 3.9 kB

Release files / llm_to_json-1.17.0.tar.gz

Download URL llm_to_json-1.17.0.tar.gz
Size 2.0 kB
Tags Source
SHA-256 checksum
How to use checksums
f7f9dfa138e0b3c6710805951a5d5579bed7cfdb058afbc481f1c55a728c3b2d
BLAKE2b-256 checksum
How to use checksums
e8ea98c21779b49df8a2e588feb56c514db66607900e4e01dce180c9005a20dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

Release files / llm_to_json-1.17.0-py3-none-any.whl

Download URL llm_to_json-1.17.0-py3-none-any.whl
Size 2.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1704a39f551da4bbfe50e278916f1f89e821111f1968a2ce62f73804f6fae2a5
BLAKE2b-256 checksum
How to use checksums
c692bf400f69362a6aeae64fc1d3702a0dda6e5e8ebae22aa213e01a8cf7b64b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

Security for llm-to-json 1.17.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

Release history Release notifications | RSS feed

This release

1.17.0 This release

2 release files No provenance

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