DataSentry Python SDK — IP geolocation and threat intelligence for Python apps.
Project description
DataSentry Python SDK
Dead simple IP geolocation and threat intelligence for Python apps.
Installation
pip install datasentry-python
Quick Start
Synchronous Usage
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
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file datasentry_python-1.0.0.tar.gz.
File metadata
- Download URL: datasentry_python-1.0.0.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4bc9b3295fe17ca8c0b353854aa94ba7e14e644c240956cf8dbdb7d6c6f6bebf
|
|
| MD5 |
5df80651ca17ebde55319d76326bece3
|
|
| BLAKE2b-256 |
92376c32b087b653b88a4852f2f347dd2d915fc5e52a98fb151234889e762dc4
|
File details
Details for the file datasentry_python-1.0.0-py3-none-any.whl.
File metadata
- Download URL: datasentry_python-1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1f424ff9adb0fc35b4c204ddc8468164113ab3ce41e25fadaa5b46b35e00f5c2
|
|
| MD5 |
89904a7850e441f5fb64785a4684bd63
|
|
| BLAKE2b-256 |
f34ccec62033ec6c37e4bf231c46cc7e9baf14856ea22e97686bdfe8c6c3e142
|