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
Release files for llm-to-json 1.13.1
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.1.tar.gz | 1.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| llm_to_json-1.13.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 3.9 kB
Release files / llm_to_json-1.13.1.tar.gz
| Download URL | llm_to_json-1.13.1.tar.gz |
|---|---|
| Size | 1.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a7b0c2c35de60a8fb063d88bea47a64bd05303f4053b7dc20c7d9f8d7c84c399
|
|
BLAKE2b-256 checksum How to use checksums |
c169f19dcd239af8bde980b1dbf17b26740b6e009485fd286d9109939edce2af
|
| 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.1-py3-none-any.whl
| Download URL | llm_to_json-1.13.1-py3-none-any.whl |
|---|---|
| Size | 2.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
655b5c936d6405a12d53691a38760c9070140426f5ce7b38a68bf2f287aacff0
|
|
BLAKE2b-256 checksum How to use checksums |
821f70ce87c0b1016f4c0c6d0890b12bea0f0338ed6deba41bf68225a4cfd494
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|