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.7
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.7.tar.gz | 1.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| llm_to_json-1.13.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 3.9 kB
Release files / llm_to_json-1.13.7.tar.gz
| Download URL | llm_to_json-1.13.7.tar.gz |
|---|---|
| Size | 1.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
daa617fc75f7120a3cd8f32a366e9251b7de9912f1327888afe74eeafa2be924
|
|
BLAKE2b-256 checksum How to use checksums |
2eecf73ba5d477486175f498588463e7442970b5f7fb6afcf090475ec03c9739
|
| 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.7-py3-none-any.whl
| Download URL | llm_to_json-1.13.7-py3-none-any.whl |
|---|---|
| Size | 2.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
95edac4cbabf1f0874fe0d6894c2352d2f3743c7d7ace855ebb9a2c906ad97d6
|
|
BLAKE2b-256 checksum How to use checksums |
c667416ec1fcf0bb10d28540e7d69e56bf49552638b293bee1b36ac48d45b48b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|