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.14.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.14.0
File Size Uploaded Provenance
llm_to_json-1.14.0.tar.gz 1.9 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 3.9 kB

Release files / llm_to_json-1.14.0.tar.gz

Download URL llm_to_json-1.14.0.tar.gz
Size 1.9 kB
Tags Source
SHA-256 checksum
How to use checksums
d41b7f27f68e26fc478230c34ecaee3cc982635fdcc2aa1cb9393ccbaba09f5b
BLAKE2b-256 checksum
How to use checksums
62432305a967f6694e9f78f243cf0a72c9174cc60fe25f1927089ee16118101c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.0

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

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

Security for llm-to-json 1.14.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.

Release history Release notifications | RSS feed

This release

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