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