Skip to main content

Parmot client SDK with LLM usage tracking and provider wrappers.

Project description

Parmot Logo

Parmot Python SDK

Parmot is a lightweight package tracking and managing end-user usage, limits, and plans across AI providers (OpenAI, Anthropic, Cohere, etc.).

Visit parmot.com for more.


🚀 Features

  • Track token usage and costs across multiple providers.
  • Enforce rate limits and usage limits for end-users.
  • Manage subscription plans (create, update, delete, assign).
  • Easy-to-use wrappers for OpenAI, Anthropic, and Cohere clients with automatic tracking.

📦 Installation

pip install parmot[openai]

To install Parmot for other provider clients, simply include them in the brackets:

pip install parmot[anthropic]
pip install parmot[cohere]

⚡ Quick Start

from parmot import TrackedOpenAI

client = TrackedOpenAI(api_key="OPENAI_API_KEY", parmot_api_key="PARMOT_API_KEY")

response = client.chat.completions.create(
    model="gpt-4o-mini",
    user_id="end_user_123",
    messages=[{"role": "user", "content": "Tell me a joke."}],
)

print(response.choices[0].message)

📖 Docs

👉 Full Documentation

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

parmot-0.1.0.tar.gz (11.8 kB view details)

Uploaded Source

Built Distribution

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

parmot-0.1.0-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for parmot-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9b408851b78d715438fa3139a4925751adbe1612d0e7ab40f12d554690a5ce8a
MD5 873e593cf4d3f2a57a3a390eb3f94a5d
BLAKE2b-256 35906cbf000c90b0896e867db0d54e07a0d3270fb858444eef3f36be2529f290

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for parmot-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4321a1545b0c86dd76704d3701a2621e73a9ab0b44890736dc2db2f6d41c9587
MD5 ec08ee5f7b822c951d263ee3cf34df6f
BLAKE2b-256 01aa6042694c0a9ecfa1064d9d4757c19b8a9cb46984f8a01a4279b46290ece8

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