tokencost
To calculate token and translated USD cost of string and message calls to OpenAI, for example when used by AI agents
$
pip install tokencostOfficial docs outline
Extra Credit builds an outline of tokencost's docs the first time your work uses it. Until then, start at the official documentation.
More in Python packages
All 9,553-
pytest-operator Fixtures for Charmed Operators
-
falkordblite FalkorDB embedded in a Python package
-
sqlalchemy-firebird Firebird for SQLAlchemy
-
ruff-format Python bindings for the Ruff code formatter, built with Rust and PyO3.
-
pephubclient PEPhub command line interface.
-
ggshield Detect secrets from all sources using GitGuardian's brains
-
pyats.async pyATS Async: Asynchronous Execution of Codes
-
pyats.utils pyATS Utils: Utilities Module
-
selfies SELFIES (SELF-referencIng Embedded Strings) is a general-purpose, sequence-based, robust representation of semantically constrained graphs.
-
shexjsg ShExJSG - Astract Syntax Tree Definition for the ShEx 2.0 language
-
siphashc Python module (in c) for siphash-2-4
-
robotframework-debuglibrary RobotFramework debug library and an interactive shell