Skip to main content

Your go-to IP-to-Geo cloud service, fast, accurate, and built for developers. Start free with 1,000 monthly stored conversions.

Website • Dashboard • Documentation • 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.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ip2geo-sdk 0.0.2
File Size Uploaded Provenance Actions
ip2geo_sdk-0.0.2.tar.gz 9.3 kB Without provenance Details for ip2geo_sdk-0.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ip2geo-sdk 0.0.2
File Interpreter ABI Platform Actions
ip2geo_sdk-0.0.2-py3-none-any.whl Python 3 none any Details for ip2geo_sdk-0.0.2-py3-none-any.whl

Total release size: 22.8 kB

Release files / ip2geo_sdk-0.0.2.tar.gz

Download URL ip2geo_sdk-0.0.2.tar.gz
Size 9.3 kB
Tags Source
SHA-256 checksum
How to use checksums
721b418f570c22bb43da653e68ee2d59ca87e60f1f7dff99c825c9e93099eb1e
BLAKE2b-256 checksum
How to use checksums
49decb61e2480d7e80964df397cee9f05ed4fafe915280da3d417c85948f3faf
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.2-py3-none-any.whl

Download URL ip2geo_sdk-0.0.2-py3-none-any.whl
Size 13.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
16f512933f1576c739470f8e94bf9863de6d9d2ddefe4a7fcc9c424d3020512e
BLAKE2b-256 checksum
How to use checksums
1f7bb0ffa02d0e4069726a5370e73f0d42f326a18ec99dd83b24ac26155ce9e3
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.2

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page