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.0b5.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

promplate-0.3.0b5-py3-none-any.whl (13.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: promplate-0.3.0b5.tar.gz
  • Upload date:
  • Size: 10.3 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.0b5.tar.gz
Algorithm Hash digest
SHA256 d6eb2d279769e053ce92363f543773e686f63699ca87bb8a37ce7d4527e370f4
MD5 a58fa7730c83956591182540d5edc12a
BLAKE2b-256 f84e7a5233194a4d4f5b0adeab8edf68490818d553bf12448ed5d8afb6f22800

See more details on using hashes here.

File details

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

File metadata

  • Download URL: promplate-0.3.0b5-py3-none-any.whl
  • Upload date:
  • Size: 13.7 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.0b5-py3-none-any.whl
Algorithm Hash digest
SHA256 d862c7af1c5a94a845b8582969b38902d13397150a5a8a58f930ebdd30fe03c6
MD5 7a8895a484bd35e38ee3d85e61525857
BLAKE2b-256 61267f0f6f89305c58d94c5fb8209d8e4f30d3509fce6d2433b789a38adc8be4

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