Parmot client SDK with LLM usage tracking and provider wrappers.
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9b408851b78d715438fa3139a4925751adbe1612d0e7ab40f12d554690a5ce8a
|
|
| MD5 |
873e593cf4d3f2a57a3a390eb3f94a5d
|
|
| BLAKE2b-256 |
35906cbf000c90b0896e867db0d54e07a0d3270fb858444eef3f36be2529f290
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4321a1545b0c86dd76704d3701a2621e73a9ab0b44890736dc2db2f6d41c9587
|
|
| MD5 |
ec08ee5f7b822c951d263ee3cf34df6f
|
|
| BLAKE2b-256 |
01aa6042694c0a9ecfa1064d9d4757c19b8a9cb46984f8a01a4279b46290ece8
|