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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
llm_to_json-1.9.0.tar.gz
(1.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file llm_to_json-1.9.0.tar.gz.
File metadata
- Download URL: llm_to_json-1.9.0.tar.gz
- Upload date:
- Size: 1.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9784ea51dd70d64e72909f64e8526594a81bb87149c4e6a9a3b40ab19ac9322b
|
|
| MD5 |
837c1aa817a4e6b5a165cd1e156d0df3
|
|
| BLAKE2b-256 |
7f08dead511e7dfa387c48f429aae934f597c30af9250f295019fb9bee87388d
|
File details
Details for the file llm_to_json-1.9.0-py3-none-any.whl.
File metadata
- Download URL: llm_to_json-1.9.0-py3-none-any.whl
- Upload date:
- Size: 2.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
25da4de1c17da64c99b90229202c8b7140be5a86cbe11d0c66ea33e1370d941f
|
|
| MD5 |
c1a6ad77e8f3e3df53e64f4605ce2ee0
|
|
| BLAKE2b-256 |
37624ae187927aa70703269b1927f2916fd971c04b7fc273021d187aa305945d
|