Skip to main content

openapiiplocation

OpenAPI v3 specification and a set of generated API clients for iplocation.net

This Python package is automatically generated by the OpenAPI Generator project:

Requirements.

Python 3.10+

Packaging uses standard [project] metadata and [dependency-groups] (PEP 621/735). Install the package with python -m pip install .; install development dependencies with Poetry 2.2 or newer using poetry install, or pip 25.1 or newer using python -m pip install --group dev. The latter installs the group, not the package.

Installation & Usage

pip install

If the python package is hosted on a repository, you can install directly using:

pip install git+https://github.com/oapicf/openapi-iplocation.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/oapicf/openapi-iplocation.git)

Then import the package:

import openapiiplocation

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import openapiiplocation

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

import openapiiplocation
from openapiiplocation.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://api.iplocation.net
# See configuration.py for a list of all supported configuration parameters.
configuration = openapiiplocation.Configuration(
    host = "https://api.iplocation.net"
)



# Enter a context with an instance of the API client
with openapiiplocation.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = openapiiplocation.DefaultApi(api_client)
    ip = 'ip_example' # str | An IPv4 or IPv6 address that you would like to lookup.
    format = 'format_example' # str | Output format, the following formats are supported: plain xml json jsonp php csv serialized (optional)
    delimiter = 'delimiter_example' # str | Delimiter between proxies. Can be used only with format plain. The following types are supported: 1 for \"\\n\", 2 for \"<br>\". (optional)

    try:
        # Get geolocation of an IP address
        api_response = api_instance.root_get(ip, format=format, delimiter=delimiter)
        print("The response of DefaultApi->root_get:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling DefaultApi->root_get: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://api.iplocation.net

Class Method HTTP request Description
DefaultApi root_get GET / Get geolocation of an IP address

Documentation For Models

Documentation For Authorization

Endpoints do not require authorization.

Author

blah+oapicf@cliffano.com

Metadata

Release files for openapiiplocation 1.4.0

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

Source distribution (sdist)

Source distribution for openapiiplocation 1.4.0
File Size Uploaded Provenance Actions
openapiiplocation-1.4.0.tar.gz 25.6 kB Without provenance Details for openapiiplocation-1.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for openapiiplocation 1.4.0
File Interpreter ABI Platform Actions
openapiiplocation-1.4.0-py3-none-any.whl Python 3 none any Details for openapiiplocation-1.4.0-py3-none-any.whl

Total release size: 53.4 kB

Release files / openapiiplocation-1.4.0.tar.gz

Download URL openapiiplocation-1.4.0.tar.gz
Size 25.6 kB
Tags Source
SHA-256 checksum
How to use checksums
8e3cac8662140f8ff7930ffc3c74553eeb8f1fd749913db18a3073a29658f7d4
BLAKE2b-256 checksum
How to use checksums
df39b5e8f54ec55280927cd469eb3e9504395658682ac2d02e5bd4f29bf660ee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.14.8

Release files / openapiiplocation-1.4.0-py3-none-any.whl

Download URL openapiiplocation-1.4.0-py3-none-any.whl
Size 27.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cd017dac8b25d2f1d5e5e89f3532004efcae3bb463be5fe16696ca4fd5f31673
BLAKE2b-256 checksum
How to use checksums
a326f9bd54d1190c686ff84f87645559fac238110c4d7ca10f5ee056dd985c15
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.14.8

Security for openapiiplocation 1.4.0

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