Skip to main content

Utilities for working with LLM prompts

Project description

promptutils

clean_prompt() removes comments (lines starting with #) and extra whitespace from messy prompts.

from promptutils import clean_prompt
clean_prompt("  # comment\n    hello world  ") # -> "hello world"

Install: uv pip install git+https://github.com/testy-cool/promptutils.git@main

Installation

Install directly from GitHub using your preferred installer. With uv (recommended):

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

promptutils-0.1.0.tar.gz (1.9 kB view details)

Uploaded Source

Built Distribution

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

promptutils-0.1.0-py3-none-any.whl (2.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for promptutils-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ca2a6deea649cb73c184eb5778a2e5ec5facfe0233945c5f6e989054e32aa860
MD5 9e24f85f5091a30c7a5c79c2983da4f4
BLAKE2b-256 87601b46e3d9677912d742166e7d70d42b7e3919679128aa2a1cba87938c5bec

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for promptutils-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fc36c8feba43e0f290ff2d3d3ed00b9c953a010dc245a19bd59a2fbf8120cb1b
MD5 fc15014241c6b4cacde3ba0d0d6fd25c
BLAKE2b-256 0757ca3d80b06f81abf5f35f169176ed5eb018b1b430181dbdfdc2fecdf6ab45

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