Metadata-Version: 2.4
Name: datasentry-python
Version: 1.0.0
Summary: DataSentry Python SDK — IP geolocation and threat intelligence for Python apps.
License: Proprietary
Keywords: ip,geolocation,threat-intelligence,security,datasentry
Author: DataSentry Team
Requires-Python: >=3.11,<4.0
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: Other/Proprietary License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Internet
Classifier: Topic :: Security
Requires-Dist: httpx (>=0.27.0,<0.28.0)
Requires-Dist: posthog (>=3.0.0)
Requires-Dist: pydantic (>=2.0.0,<3.0.0)
Project-URL: Homepage, https://datasentry.site
Project-URL: Repository, https://github.com/datasentry/DataSentry.Site
Description-Content-Type: text/markdown

# DataSentry Python SDK

Dead simple IP geolocation and threat intelligence for Python apps.

## Installation

```bash
pip install datasentry-python
```

## Quick Start

### Synchronous Usage
```python
from datasentry import DataSentry

ds = DataSentry(api_key="your_api_key")

result = ds.lookup(ip="8.8.8.8")
print(result.location.city) # "Mountain View"
```

### Asynchronous Usage
```python
import asyncio
from datasentry import DataSentry

async def main():
    async with DataSentry(api_key="your_api_key") as ds:
        result = await ds.lookup_async(ip="8.8.8.8")
        print(result.location.city)

asyncio.run(main())
```

## Features
- **Strictly Typed**: Full type hints and Pydantic V2 models.
- **Sync & Async**: Built-in support for both modes via `httpx`.
- **Modern**: Requires Python 3.11+.

## License
Proprietary.

