Skip to main content

Token and resource usage tracker for OpenAI API calls with optional PostgreSQL logging

Project description

yourpkg

TokenTracker and resource tracking decorators to monitor OpenAI API usage and process resource consumption, with logging to PostgreSQL.

Installation

pip install yourpkg

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

trackerpkg-0.1.3.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

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

trackerpkg-0.1.3-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file trackerpkg-0.1.3.tar.gz.

File metadata

  • Download URL: trackerpkg-0.1.3.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.4

File hashes

Hashes for trackerpkg-0.1.3.tar.gz
Algorithm Hash digest
SHA256 00f11f2e10b4afc2f804b532c5088434c130bc8e2f4313757017988fe907ea86
MD5 47134ac56818e2934658368d92811548
BLAKE2b-256 8470881cf3122b41c6166807438b78439a3d84197c115898b9a14e0f3ca58a11

See more details on using hashes here.

File details

Details for the file trackerpkg-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: trackerpkg-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.4

File hashes

Hashes for trackerpkg-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 71a34293272546f1fafb70220fd8069014bbd308668e51bafbc9b9f5c63649e7
MD5 4cd9b2bc4471311bcef032df0a0276fa
BLAKE2b-256 04bd20f6def0f7acad992c14fc22300ca2e0b00d25cf57d621264d6aa52d425a

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