Skip to main content

IPdon is a low-latency IP intelligence API for Python

Project description

IPdon

IPdon is a fast IP intelligence solution. This is the official Python library which benchmarks as the fastest Python library for obtaining data from any IP.

Natively it provides:

  • Direct access to Geographical, Network, Company or Domain based information on any IP in the world.
  • A 30-40x speed increase versus competing services due to the services algorithm
  • Provides a multi-dimensional dictionary response identical to the IPdon service itself.
  • Internally utilizes orjson for fast binary-based serialization.
  • Has a free tier without needing an API key (token) Learn more about plans here.

IPdon happily supports CPython

Usage

Install

To install a wheel from PyPI:

pip install --upgrade ipdon

Quickstart

This is an example of calling the service

from ipdon import IPdon

# Leave string '' empty to use the Free tier.
token = '5ae79d31-6e48-4641-a0fd-bcee9cd30ff6' 
ipdon = IPdon(token)

# You can add another argument to filter response (faster), use ipdon.query(<ip>, <filter>)
response = ipdon.query('34.241.171.232') 

print(response)

Example response:

{   'abuse': {'contacts': ['abuse@amazonaws.com']},
    'domains': ['might-d-light.com'],
    'location': {   'city': 'Dublin',
                    'continent': 'Europe',
                    'country': 'Ireland',
                    'country_iso': 'IE',
                    'currency': 'Euro',
                    'dialcode': '353',
                    'languages': ['en-IE', 'ga-IE'],
                    'latitude': 53.3379,
                    'longitude': -6.2591,
                    'map_image': 'https://staticmap.thisipcan.cyou/?lat=53.3379&lon=-6.2591',
                    'postalcode': 'D02',
                    'region': 'Northern Europe',
                    'state': 'Leinster'},
    'network': {   'cidr_size': 4194304.0,
                   'cidr_subsegment': '34.240.0.0/13',
                   'ip_subsegment_end': '34.247.255.255',
                   'ip_subsegment_end_int': 586678271,
                   'ip_subsegment_start': '34.240.0.0',
                   'ip_subsegment_start_int': 586153984,
                   'ip_type': 'ipv4',
                   'rir': 'arin',
                   'rir_cidr_segment': '34.192.0.0/10'},
    'organization': {   'asn': '16509',
                        'description': 'Amazon NA Prefix',
                        'name': 'NET34'},
    'request': {   'query': '34.241.171.232',
                   'status': 'success',
                   'subscription': False},
    'time': {   'timezone': 'Europe/Dublin',
                'timezone_is_dst': True,
                'timezone_utc_offset': 0.0}}

See IPdon documentation for an elaborate description on how to use the API here

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ipdon-1.0.8.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ipdon-1.0.8-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file ipdon-1.0.8.tar.gz.

File metadata

  • Download URL: ipdon-1.0.8.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for ipdon-1.0.8.tar.gz
Algorithm Hash digest
SHA256 ada9a8774a204003c590fa8255eefe69cec8f8758cbbed9f01f72fb177f6cbc4
MD5 69b3d67b26a13c9548669881cb0a7bc1
BLAKE2b-256 2b5dc79a2d91bb74e1ec627ae9fe10ea443fe86a3d1518d153f125515bfcaaa6

See more details on using hashes here.

File details

Details for the file ipdon-1.0.8-py3-none-any.whl.

File metadata

  • Download URL: ipdon-1.0.8-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for ipdon-1.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 9a11ecb642a5db4c71afcb62ed3e7e1314576c5a566c2a7056e6734357687d18
MD5 f59ea60b401d45af8cc4b9efd35738dc
BLAKE2b-256 2d8f0afa7d8c131b27a4e1f59197df5f24ea3d20bca05c31bcefbe3a85effde2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page