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 is reversed for on_leave and end_process

Project details


Release history Release notifications | RSS feed

This version

0.3.2

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

Uploaded Source

Built Distribution

promplate-0.3.2-py3-none-any.whl (14.2 kB view details)

Uploaded Python 3

File details

Details for the file promplate-0.3.2.tar.gz.

File metadata

  • Download URL: promplate-0.3.2.tar.gz
  • Upload date:
  • Size: 10.8 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.2.tar.gz
Algorithm Hash digest
SHA256 e27a6c78a91e43b4e5719f6f846ab0a5ee80a4978a7bac5060fa0b6b52e6c6e8
MD5 40392c9fc2a91e43ad52685d256ddda5
BLAKE2b-256 0c3273872cd623831d4ca5d96590a54a6e61e2a74c44ca856849b8fb6d79f44b

See more details on using hashes here.

File details

Details for the file promplate-0.3.2-py3-none-any.whl.

File metadata

  • Download URL: promplate-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 14.2 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 79454eba39a3b7f7fa487edebef9e04cde46dbc7c7453ed634b4bff9dc940168
MD5 94a17aa3d4c453acf4b3f0abcbf9af0a
BLAKE2b-256 a7f28815a6279779141231cfb3710b201970d0333aa92bb7a4ee773b90ce5c97

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