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.2.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.2-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: trackerpkg-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 42111348ccc3e196b9ee2c24ec4fcd5b5c59901cce7d13ecbb6038c021d76de2
MD5 ef34f28c813bdbe87733478cc6486149
BLAKE2b-256 31b38cfc11e046edf5748492f3a7b79d51718a8396662a0cabfcd5c04667e46e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: trackerpkg-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 3.8 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f9a5399ef81f0162478314476a8c09697c85f1da6bbed3c2e5838725a0f9635c
MD5 f476122c4f3e2cb8a7314573953adf4a
BLAKE2b-256 44cedc72e7057cdea9211a2df9776dd578f2b93da4da33a19e27bb71b7119d36

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