Metadata-Version: 2.4
Name: apilens
Version: 0.1.0
Summary: A Python wrapper for various AI language model APIs
Home-page: https://github.com/ThousifMd/APILens
Author: Thousif Md
Author-email: your.email@example.com
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests>=2.25.0
Requires-Dist: aiohttp>=3.8.0
Requires-Dist: openai>=1.0.0
Requires-Dist: anthropic>=0.5.0
Requires-Dist: python-dotenv>=1.0.0
Requires-Dist: google-generativeai>=0.3.0
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: license-file
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# APILens

A Python wrapper for various AI language model APIs that provides consistent interface, logging, and cost tracking across different providers.

## Features

- Unified interface for multiple AI providers
- Automatic retry mechanism with exponential backoff
- Usage tracking and cost calculation
- SQLite-based logging system
- Support for both synchronous and asynchronous operations
- Streaming support

## Installation

```bash
pip install apilens
```

## Usage

```python
from apilens import BaseAIWrapper

# Initialize your provider wrapper
wrapper = YourProviderWrapper(
    provider_name="your_provider",
    model="your_model",
    user_id="optional_user_id",
    tenant_id="optional_tenant_id"
)

# Make a chat completion request
response = wrapper.chat_completion([
    {"role": "user", "content": "Hello, how are you?"}
])
```

## License

MIT License
