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