Skip to main content

Python library to detect hosting provider based on IP, FQDN, and network information

Project description

IP2Provider

Python library to detect hosting provider based on IP, FQDN and network information.

Installation

pip install ip2provider

Usage

from ip2provider import IP2Provider

provider = IP2Provider()

result = provider.find(
    ip="192.168.1.1",
    fqdn="server.hosterby.com",
    network_name="HETZNER",
    network_contact_email="abuse@hetzner.com",
    ns_server="ns1.example.com"
)

if result:
    print(f"Provider: {result['provider']}, Confidence: {result['confidence']}")

All parameters are optional, you can pass any combination.

Custom Rules

provider = IP2Provider(rules_path="/path/to/hostings.json")

License

MIT

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

ip2provider-0.1.1.tar.gz (10.1 kB view details)

Uploaded Source

Built Distribution

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

ip2provider-0.1.1-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file ip2provider-0.1.1.tar.gz.

File metadata

  • Download URL: ip2provider-0.1.1.tar.gz
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ip2provider-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b7cd39327bed4f323628520b1aa1c05068e869f01e98900fb37515d2436c75dd
MD5 ec57d6e77c375bef136e00bbcba10e19
BLAKE2b-256 a45caf5892cdc84e5eff45aefec109012449a7ceb1e01b17e93d08f4cf0a1389

See more details on using hashes here.

Provenance

The following attestation bundles were made for ip2provider-0.1.1.tar.gz:

Publisher: publish.yml on aredoff/ip2provider

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ip2provider-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: ip2provider-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 9.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ip2provider-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ec7d276bf4a1e6619665e709025eb268486205eef8be871a9060a6bfc2fc0066
MD5 e56e2266e5db2c1fca2eb93b7b6cef26
BLAKE2b-256 3d71fc38b2587c0375718961cd7267299f9d5dffd55f8d68df303752ba0f8b8d

See more details on using hashes here.

Provenance

The following attestation bundles were made for ip2provider-0.1.1-py3-none-any.whl:

Publisher: publish.yml on aredoff/ip2provider

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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