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

Uploaded Python 3

File details

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

File metadata

  • Download URL: trackerpkg-0.1.1.tar.gz
  • Upload date:
  • Size: 1.4 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.1.tar.gz
Algorithm Hash digest
SHA256 68f84eeb94bc78d6a15f035ca078512fed990215ce7f0838317f3d892c77e439
MD5 088829d0e57168f343293949caa7aff8
BLAKE2b-256 ba908300851f29f52af833dbfc1cb6726372ccdc2bcd234ffc1517dd23556683

See more details on using hashes here.

File details

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

File metadata

  • Download URL: trackerpkg-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 1.3 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 66c574c92b7403e0b5b6d3a058da4388b375f418ded9de46f12557e4dae93447
MD5 0ec74d7102ae2645ab913db38c935acf
BLAKE2b-256 b82495605494d9583b1c20378d3911743e31a19227f6e93e460e0e8a8a7b8eb6

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