Skip to main content

Token and resource usage tracker for OpenAI API calls with weighted dynabits calculation

Project description

trackerpkg

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.3.0.tar.gz (12.1 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.3.0-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for trackerpkg-0.3.0.tar.gz
Algorithm Hash digest
SHA256 40dae72fd428c6888822c6e7bac6ae68e29400a2144658034066dcbf90427aae
MD5 ce4e9c2dd9b1cf20c82e806cbd4b41b5
BLAKE2b-256 6832321d8d5be3c914554cf27145b15ba33e96a8ebbcc10c93b43f9d616c8988

See more details on using hashes here.

File details

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

File metadata

  • Download URL: trackerpkg-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 11.7 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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dbfd094d458df75b8ea09416552e82500a98eb598ef58c1c91d3d856f4fd5c1d
MD5 4f831e59d4a19dd697142384f964c36d
BLAKE2b-256 262a8265757a85241444bbe727eb53606c0215f5a2208da8bd0e14cc5333d24b

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