A collections of wrapper for different IP info APIs
Project description
cool-ip-api
A package to get information from multiple IP APIs about the clients IP or another requested IP.
Installation
Requires python 3.10 and above.
pip install cool-ip-api
Usage
# Example with IPApiCom API
from cool_ip_api.provider.ip_api_com import IPAPICom
ip_api_com = IPAPICom()
ip_api_com.resolve() # Returns a pydantic model with the data from the API
Cli command
cool-ip-api
cool-ip-api 1.1.1.1
Supported APIs
| Provider | Free plan available? | Rate limit | Check | IP Query |
|---|---|---|---|---|
| abstractapi.com | ✅ | 20.000/month | api-key | ✅ |
| ip-api.com | ✅ | 45/minute | ip | ✅ |
| ipwhois.io | ✅ | 10.000/month | ip | ✅ |
| ipapi.co | ✅ | 1.000/day | ip | ✅ |
| ipapi.com | ✅ | 1.000/month | api-key | ✅ |
| ipify.org | ✅ | None | None | ❌ |
| ipinfo.io | ✅ | 50.000/month | api-key | ✅ |
| myip.wtf | ✅ (Donate) | 1/minute | ip | ❌ |
TODO
- Add more providers
- Add bulk query support for providers that support it
- Add premium plan support for providers that support it
- Add more tests
- Async tests
- Rate limit tests
- Add more documentation
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
cool-ip-api-0.2.0.tar.gz
(7.5 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 cool-ip-api-0.2.0.tar.gz.
File metadata
- Download URL: cool-ip-api-0.2.0.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.10.6 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3c20af6566f7acb2df5aa1bed7fccea4d8c0fbcb6b28285b63fbe0f6684b7b90
|
|
| MD5 |
3046474108b97c1d5acdebe0ceb5802c
|
|
| BLAKE2b-256 |
9f04f43ca54786630e2bf2d98865e279f2ce3d258e7279103236642618439dac
|
File details
Details for the file cool_ip_api-0.2.0-py3-none-any.whl.
File metadata
- Download URL: cool_ip_api-0.2.0-py3-none-any.whl
- Upload date:
- Size: 13.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.10.6 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ec3f61ed67aa9ba43a0b5d0079465ecfccba8e74f27029984b475b4c45868d94
|
|
| MD5 |
8cc698138cfa72548fd7e96c4dabb31f
|
|
| BLAKE2b-256 |
0d3694920e87dcc4b4ecf0b4d22f9e7a2f0875106547498f53ac39be72450ca6
|