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.13.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| llm_to_json-1.13.5.tar.gz | 1.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| llm_to_json-1.13.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 3.9 kB
Release files / llm_to_json-1.13.5.tar.gz
| Download URL | llm_to_json-1.13.5.tar.gz |
|---|---|
| Size | 1.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5185b6c8cba4348c34e2af3d390636ded9c45df8038e4499ef68bfb175c44387
|
|
BLAKE2b-256 checksum How to use checksums |
09721fa7cc291d0632b6cdec23eb1247ec4cc4b63153d12954642fb3a7bb716d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / llm_to_json-1.13.5-py3-none-any.whl
| Download URL | llm_to_json-1.13.5-py3-none-any.whl |
|---|---|
| Size | 2.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
322dc65fb41f95f0f570e31c8ab74ac06fba7babb8e2d5359e082820a9170f49
|
|
BLAKE2b-256 checksum How to use checksums |
946f8b57622c8db57af5336ad27a98ec8617a14f79cef4296c30d5f1aa122d87
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|