Skip to main content

Rules-based prompt quality checker (format, constraints, examples, role/tone).

Project description

promptlint-tool

Rules-based prompt quality checks (format, constraints, examples, role/tone).

Install

pip install promptlint-tool

CLI

promptlint prompt.txt
promptlint prompt.txt --json

You can also pipe from stdin:

cat prompt.txt | promptlint

Python

from promptlint import lint_text

res = lint_text("Return JSON with keys: a, b. Example: Input: ... Output: ...")
print(res.score)
for issue in res.issues:
    print(issue.code, issue.message)

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

promptlint_tool-0.1.0.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

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

promptlint_tool-0.1.0-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: promptlint_tool-0.1.0.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.5

File hashes

Hashes for promptlint_tool-0.1.0.tar.gz
Algorithm Hash digest
SHA256 636c93f5b524c7778a9048f398c0969e4cf71927de211795150a93604cfbb7b6
MD5 6ebfa7bcf4a1942020c912b1cdc57ab7
BLAKE2b-256 71fc108813d8cac2b32328111ea4b6ba5deefd3e355355b89f2e5917381639e9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for promptlint_tool-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 69d1d5574381250a9ef92e908b605ad88ec9b6cd1ea6171bbbebde76e9d2e5b6
MD5 d0fb0d2de38179f31c6a2fe4e248464f
BLAKE2b-256 6dfca253cabb6542faea022b14df72769d826bd033688a6d5b60b90cfa6642e8

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