Skip to main content

Parmot Logo

Parmot Python SDK

Python 3.9+ License: MIT

Parmot is a lightweight package tracking and managing end-user usage, limits, and subscription 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

Metadata

Release files for parmot 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for parmot 0.1.1
File Size Uploaded
parmot-0.1.1.tar.gz 19.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for parmot 0.1.1
File Interpreter ABI Platform
parmot-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 40.6 kB

Release files / parmot-0.1.1.tar.gz

Download URL parmot-0.1.1.tar.gz
Size 19.4 kB
Tags Source
SHA-256 checksum
How to use checksums
0370ce8fc45c73b1c777cf07993bfe3f358cb2f8666f81fe5da607bfad23cea9
BLAKE2b-256 checksum
How to use checksums
4049f6028abb05a15455c1185866a54058180595486c2cde2d0e1b3eb9bb2257
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.8

Release files / parmot-0.1.1-py3-none-any.whl

Download URL parmot-0.1.1-py3-none-any.whl
Size 21.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
81c5c8eed106fa9284e40f722778531c2b41fba4c1ce781d2003964722a6974e
BLAKE2b-256 checksum
How to use checksums
e843d9c9949f1a49c168d0aef231f99ec4a093440ebce3be5c2fcdd8fd4cd1fb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.8

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page