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