Skip to main content

No project description provided

Project description

DocChain

This package can be used to generate complex structured documents from Specs using LLMm models.

Document is an abstraction that represent generated data, e.g. it could be any text data in markdown or HTML, configuration in JSON, YAML or other formats, Python objects or classes, or any other data that can be generated by LLMs.

Spec contains document requirements. It holds general information about the generated document.

Section is a composite part of a Document. Document itself is a Section. Such design allows inclusion of Documents inside another documents.

Generator generates Document from the provided Spec. Each generator can be configured with a list of steps that are executed before or after generation.

Middleware is a callable that can modify Spec or the generated Documents. It acts the same as middleware in an HTTP framework, it can be used for variety of tasks. E.g. transforming, formatting or linting generated document ot its parts.

TODO

  • Store stats in an SQLite database.
  • Blocks for HTML, Markdown, Python, one line Python, templates.
  • Add middleware to plan steps.

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

docchain-0.0.5.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

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

docchain-0.0.5-py3-none-any.whl (12.8 kB view details)

Uploaded Python 3

File details

Details for the file docchain-0.0.5.tar.gz.

File metadata

  • Download URL: docchain-0.0.5.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for docchain-0.0.5.tar.gz
Algorithm Hash digest
SHA256 abf5e07b6f509c29ab430a6846004d59baaf6a061082b3fbe871655536e391da
MD5 67f1223974cd4ca60ba89a57c43847b1
BLAKE2b-256 2883d05159696b8b881066060cdd9705e3c8a2faae9d5774e162687114874ad5

See more details on using hashes here.

File details

Details for the file docchain-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: docchain-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 12.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for docchain-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 ff4af0b244398fbdad746a2e402d645e8dee5aae596096d99667f202b662a08e
MD5 390b146292725f22f7b867b2e5d962b0
BLAKE2b-256 48695a3e931502d4df7784b44f99aa28a0cc1e93eca1e4fca3a1e9402ac90ebf

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