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
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
ip2provider-0.1.0.tar.gz
(10.1 kB
view details)
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 ip2provider-0.1.0.tar.gz.
File metadata
- Download URL: ip2provider-0.1.0.tar.gz
- Upload date:
- Size: 10.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
25d8e76d33052769b9cbb9a7ae1da66c9524d1dd2952ba0040724e68a11633e5
|
|
| MD5 |
003b67c812b8d03c91d09512a5173688
|
|
| BLAKE2b-256 |
70dca83cb99e92496ba984f621d6535a4b91371d7b463b2f4968284a6480823f
|
File details
Details for the file ip2provider-0.1.0-py3-none-any.whl.
File metadata
- Download URL: ip2provider-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
106e3c9d4dd809d2e9de2d6deddb4906b117dbc263faad5369bbe489f14ad713
|
|
| MD5 |
cba01e3cf969758825b6e19fae37a011
|
|
| BLAKE2b-256 |
7cf1fd2de1a90bd24d9a9361694ce46914614ef24f7eb5db786c3231a1dda90b
|