Skip to main content

Automatically inspect and visualize LLM prompts and responses in your Python projects

Project description

📦
anyprompt
PyPI version Python versions License: MIT

anyprompt screenshot
Automatic prompt monitoring for AI services


Installation

pip install anyprompt

What is anyprompt?

anyprompt is a lightweight tool that automatically captures and visualizes LLM prompts in your Python projects. With a single import, you get a beautiful web interface to inspect all communications with AI providers.

Quick Start

Just import and go!

from openai import OpenAI
import anyprompt  # Automatically starts at http://localhost:2400

client = OpenAI()

# This prompt will be automatically captured!
response = client.chat.completions.create(
    model="gpt-4o-mini",
    messages=[{"role": "user", "content": "Tell me a joke about programming"}]
)
print(response.choices[0].message.content)

That's it! Visit http://localhost:2400 in your browser to see your captured prompts.

Compatibility

Library Status
requests ✅ Supported
httpx ✅ Supported
aiohttp ✅ Supported
urllib ✅ Supported
http.client ✅ Supported

Supported AI Services

  • OpenAI (chat, completions, embeddings)
  • Anthropic
  • Cohere
  • AI21
  • Hugging Face Inference API
  • Any other API using standard HTTP requests

Privacy & Security

  • Runs locally on your machine
  • No data sent to external servers
  • All prompts stored locally in your project directory

⭐ Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

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

anyprompt-0.2.0.tar.gz (16.1 kB view details)

Uploaded Source

Built Distribution

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

anyprompt-0.2.0-py3-none-any.whl (15.4 kB view details)

Uploaded Python 3

File details

Details for the file anyprompt-0.2.0.tar.gz.

File metadata

  • Download URL: anyprompt-0.2.0.tar.gz
  • Upload date:
  • Size: 16.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for anyprompt-0.2.0.tar.gz
Algorithm Hash digest
SHA256 0d5a55004b70893da22780302fe2b157eb64719325ad604301414f0e5a1d14df
MD5 2d1823acdf9fdcac811c9a5d6a8ecfe1
BLAKE2b-256 ebfcbd582d9a5eb7c486f7fb8113f15f7c8a2aed1b60da95b07eff9b6b16cb13

See more details on using hashes here.

File details

Details for the file anyprompt-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: anyprompt-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 15.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for anyprompt-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 aac40ad44e41600991124e4cfc1244fbbe54917d2dc22560804f9de0db56f632
MD5 7cdf3cf56aae0946ad33930a93dff7fa
BLAKE2b-256 4519036b17f304216ad0bf29e9d7de749d2f9b04a52335d3aa8adc826f04b2cd

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