Skip to main content

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.

Metadata

Release files for datasentry-python 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for datasentry-python 1.0.0
File Size Uploaded Provenance Actions
datasentry_python-1.0.0.tar.gz 3.8 kB Without provenance Details for datasentry_python-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for datasentry-python 1.0.0
File Interpreter ABI Platform Actions
datasentry_python-1.0.0-py3-none-any.whl Python 3 none any Details for datasentry_python-1.0.0-py3-none-any.whl

Total release size: 8.6 kB

Release files / datasentry_python-1.0.0.tar.gz

Download URL datasentry_python-1.0.0.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
4bc9b3295fe17ca8c0b353854aa94ba7e14e644c240956cf8dbdb7d6c6f6bebf
BLAKE2b-256 checksum
How to use checksums
92376c32b087b653b88a4852f2f347dd2d915fc5e52a98fb151234889e762dc4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.6

Release files / datasentry_python-1.0.0-py3-none-any.whl

Download URL datasentry_python-1.0.0-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1f424ff9adb0fc35b4c204ddc8468164113ab3ce41e25fadaa5b46b35e00f5c2
BLAKE2b-256 checksum
How to use checksums
f34ccec62033ec6c37e4bf231c46cc7e9baf14856ea22e97686bdfe8c6c3e142
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.6

Security for datasentry-python 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page