tokenator 0.1.6__tar.gz → 0.1.8__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tokenator
3
- Version: 0.1.6
3
+ Version: 0.1.8
4
4
  Summary: Token usage tracking wrapper for LLMs
5
5
  License: MIT
6
6
  Author: Ujjwal Maheshwari
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "tokenator"
3
- version = "0.1.6"
3
+ version = "0.1.8"
4
4
  description = "Token usage tracking wrapper for LLMs"
5
5
  authors = ["Ujjwal Maheshwari <your.email@example.com>"]
6
6
  readme = "README.md"
@@ -1,13 +1,14 @@
1
1
  """Tokenator - Track and analyze your OpenAI API token usage and costs."""
2
2
 
3
3
  import logging
4
- from .client_openai import OpenAIWrapper
4
+ from .client_openai import tokenator_openai
5
+ from .client_anthropic import tokenator_anthropic
5
6
  from . import usage
6
- from .utils import get_default_db_path, is_colab
7
+ from .utils import get_default_db_path
7
8
  from .migrations import check_and_run_migrations
8
9
 
9
10
  __version__ = "0.1.0"
10
- __all__ = ["OpenAIWrapper", "usage", "get_default_db_path", "is_colab"]
11
+ __all__ = ["tokenator_openai", "tokenator_anthropic", "usage", "get_default_db_path"]
11
12
 
12
13
  logger = logging.getLogger(__name__)
13
14
 
@@ -147,3 +147,5 @@ def tokenator_openai(
147
147
  return AsyncOpenAIWrapper(client=client, db_path=db_path)
148
148
 
149
149
  raise ValueError("Client must be an instance of OpenAI or AsyncOpenAI")
150
+
151
+ __all__ = ["tokenator_openai"]
File without changes
File without changes