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