Your go-to IP-to-Geo cloud service, fast, accurate, and built for developers. Start free with 1,000 monthly stored conversions.
Website • Dashboard • Docs • Services Status
Intro to the Python SDK
This package provides a lightweight way to integrate Ip2Geo into your Python applications.
Working from a terminal instead? The ip2geo CLI (npm i -g @ip2geo/cli) makes the same calls, and everything the dashboard does, from the command line.
Installing
pip install ip2geo-sdk
Initializing
import ip2geo
ip2geo.init('your-api-key')
Using
converted_ip = ip2geo.convert_ip(ip='8.8.8.8')
converted_ips = ip2geo.convert_ips(
ips=[
'8.8.8.8',
'1.1.1.1',
'9.9.9.9',
'64.6.64.6',
]
)
# {
# 'success': True,
# 'code': 200,
# 'message': 'Success',
# 'data': { ... },
# '_req': {
# 'reqId': 'string',
# 'resTime': 123
# }
# }
# {
# 'success': True,
# 'code': 200,
# 'message': 'Success',
# 'data': [
# {
# 'ip': '8.8.8.8',
# 'conversion': { ... }
# }
# ],
# '_req': {
# 'reqId': 'string',
# 'resTime': 123
# }
# }
Metadata
Release files for ip2geo-sdk 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ip2geo_sdk-0.0.3.tar.gz | 10.0 kB | Without provenance | Details for ip2geo_sdk-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ip2geo_sdk-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for ip2geo_sdk-0.0.3-py3-none-any.whl |
Total release size: 24.3 kB
Release files / ip2geo_sdk-0.0.3.tar.gz
| Download URL | ip2geo_sdk-0.0.3.tar.gz |
|---|---|
| Size | 10.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d5d7595731ce42372da9edb4c8b73b595c9c811cb3b9ede1b61ef2df72ad43b8
|
|
BLAKE2b-256 checksum How to use checksums |
777be3a38585415cd410229f34732d29f59a0b43c03c1f5ddc038e663a3e5bfc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / ip2geo_sdk-0.0.3-py3-none-any.whl
| Download URL | ip2geo_sdk-0.0.3-py3-none-any.whl |
|---|---|
| Size | 14.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a8005f2242252fb60eac035752077e07af4da41c8b6c14ae0f4a15e014da5756
|
|
BLAKE2b-256 checksum How to use checksums |
1b0c2b3a72a275c1433d39dbd1487443a138f323d132d3588e04cc34450f6537
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for ip2geo-sdk 0.0.3
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.