Skip to main content

cross-language prompt engineering framework

Project description

Promplate

</Promplate/> = /prompt/ + <template>

Promplate is a prompting framework focusing on developing experience. However, it can also be a super-convenient SDK for simple LLM calls. Promplate progressively enhance your prompting workflow. And it values flexibility as well as perfect conventions. Learn more

Installation

pip install promplate

Development

  • use poetry to manage dependencies.
  • use isort to sort import statements.
  • use black to format code.
  • use pyright to check type annotations.

IDE Support 🌹

I try to make the syntax compatible with Jinja2. So for now I recommend using Jinja2 highlight settings.

Future Features (or TODOs?)

  • more documentation
  • javascript implementation
  • improve error handling
    • possible ways would be similar to Jinja2
  • streaming support
  • unit tests
    • coverage report here
  • the order of callbacks matters

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

promplate-0.3.0rc1.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

promplate-0.3.0rc1-py3-none-any.whl (13.9 kB view details)

Uploaded Python 3

File details

Details for the file promplate-0.3.0rc1.tar.gz.

File metadata

  • Download URL: promplate-0.3.0rc1.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.12.0 Windows/11

File hashes

Hashes for promplate-0.3.0rc1.tar.gz
Algorithm Hash digest
SHA256 0ed10d7b976d68b964b057fd816ab645404e6ec7baab319d82d8a5d1d27aea0f
MD5 57ee67f4ffa2f43864e42e2ee353223f
BLAKE2b-256 c4f804c30e982817bd6d32f15742a5b6f5537fdd81ddbaf79d7b1b8ae2e7fb38

See more details on using hashes here.

File details

Details for the file promplate-0.3.0rc1-py3-none-any.whl.

File metadata

  • Download URL: promplate-0.3.0rc1-py3-none-any.whl
  • Upload date:
  • Size: 13.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.12.0 Windows/11

File hashes

Hashes for promplate-0.3.0rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 6534d620e9d37ea38aa0c8f38e0b7ddfd8cc636eccf9acaa68e6ce2dc3791051
MD5 d0a1fd1a7d0e1dd007f9d48836c74860
BLAKE2b-256 f33f72da6562b7d3b56e531c21404930cf6863c5d4af6b3e470fe4f0d9ece420

See more details on using hashes here.

Supported by

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