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.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.12.1.tar.gz | 1.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| llm_to_json-1.12.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 3.9 kB
Release files / llm_to_json-1.12.1.tar.gz
| Download URL | llm_to_json-1.12.1.tar.gz |
|---|---|
| Size | 1.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9929282b7aded115783e672fddd18ce14892c4b009e6fb8725588e783aae7066
|
|
BLAKE2b-256 checksum How to use checksums |
0e530db841725e4f21f03470ca648c76dcd7e31043b44c5cea5a1e8e05d2e220
|
| 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.1-py3-none-any.whl
| Download URL | llm_to_json-1.12.1-py3-none-any.whl |
|---|---|
| Size | 2.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e5bb296fd9c85e5f24d1b88a83e3a9f7feb8e9dad087fe6e5d89a94771a93d78
|
|
BLAKE2b-256 checksum How to use checksums |
b4f96c2a56599253ae7e5617cb765d7e81633a0c8fb58e3b778d25d7c5cdcc7d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|