Skip to main content

Parmot client SDK with LLM usage tracking and provider wrappers.

Project description

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

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.1.tar.gz (19.4 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.1-py3-none-any.whl (21.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: parmot-0.1.1.tar.gz
  • Upload date:
  • Size: 19.4 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.1.tar.gz
Algorithm Hash digest
SHA256 0370ce8fc45c73b1c777cf07993bfe3f358cb2f8666f81fe5da607bfad23cea9
MD5 41eab883717258e1e88f70e51482408b
BLAKE2b-256 4049f6028abb05a15455c1185866a54058180595486c2cde2d0e1b3eb9bb2257

See more details on using hashes here.

File details

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

File metadata

  • Download URL: parmot-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 21.2 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 81c5c8eed106fa9284e40f722778531c2b41fba4c1ce781d2003964722a6974e
MD5 d3803b81e9b0b700e2d4afc593ebdb7c
BLAKE2b-256 e843d9c9949f1a49c168d0aef231f99ec4a093440ebce3be5c2fcdd8fd4cd1fb

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