Skip to main content

Tiny wrapper exposing Prompture helpers to convert LLM output into JSON.

Project description

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

Project details


Release history Release notifications | RSS feed

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.0.17.tar.gz (1.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

llm_to_json-1.0.17-py3-none-any.whl (2.0 kB view details)

Uploaded Python 3

File details

Details for the file llm_to_json-1.0.17.tar.gz.

File metadata

  • Download URL: llm_to_json-1.0.17.tar.gz
  • Upload date:
  • Size: 1.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for llm_to_json-1.0.17.tar.gz
Algorithm Hash digest
SHA256 d98e7f2ceed8a3a18b2f5a03668d1594b165065aa436190031da3a5bf4133998
MD5 7c5dae930abd499461483019662b7ab6
BLAKE2b-256 20a5df644046a57ee8c64be166dc6050332782232a9d2a4d414cd7cb06effe2f

See more details on using hashes here.

File details

Details for the file llm_to_json-1.0.17-py3-none-any.whl.

File metadata

  • Download URL: llm_to_json-1.0.17-py3-none-any.whl
  • Upload date:
  • Size: 2.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for llm_to_json-1.0.17-py3-none-any.whl
Algorithm Hash digest
SHA256 9f4b7df3eb4ca6c2ceb67804699b601b7074d2ff96fe1ff1b35202a2b0bd20bb
MD5 8677321ff30cb15c34daa0955c8cb4d5
BLAKE2b-256 ef858419ef22f85278b24e82d26a9d9a8711e6fe6fc63ce125222caa0174e3f0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page