Skip to main content

A utility to format Pydantic models into clean JSON Schemas for LLMs.

Project description

cforma

A utility to format Pydantic models into clean, LLM-ready JSON Schemas.

Description

cforma introspects Pydantic models, resolves all nested references, and cleans the resulting schema to make it minimal and efficient for use with Large Language Models that support structured JSON output (Tested with OpenRouter).

Installation

pip install cforma

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cforma-0.1.0.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

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

cforma-0.1.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file cforma-0.1.0.tar.gz.

File metadata

  • Download URL: cforma-0.1.0.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for cforma-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f22e7d24ea250495f2152e0ff32d388e8efaada99016f946abb2a5ff455814f4
MD5 894a9153d01bfff7f88f879357ff3c40
BLAKE2b-256 a1bfd795397ed09f21f344689e95bb2620b24273eb81ffe9b09083b3e68a5b12

See more details on using hashes here.

File details

Details for the file cforma-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: cforma-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for cforma-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9c4f11e7c8220dd207215435ac115b8823f989a8a73684440b455ec066b9e754
MD5 84825eb283cefdc61f78ab4a6599addd
BLAKE2b-256 cbd66336205842e8b6c1720141cf2bfaa4ee66089887b94914feeeca4a22615d

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