Skip to main content

openapiipify

OpenAPI client for ipify, a simple public IP address API

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

  • API version: 6.1.1
  • Package version: 6.1.1
  • Generator version: 7.24.0
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit https://github.com/oapicf/openapi-ipify

Requirements.

Python 3.10+

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-ipify.git

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

Then import the package:

import openapiipify

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 openapiipify

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

import openapiipify
from openapiipify.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://api64.ipify.org
# See configuration.py for a list of all supported configuration parameters.
configuration = openapiipify.Configuration(
    host = "https://api64.ipify.org"
)



# Enter a context with an instance of the API client
with openapiipify.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = openapiipify.DefaultApi(api_client)
    format = 'format_example' # str | Response format (optional)
    param_callback = 'param_callback_example' # str | JSONP callback function name (optional)

    try:
        # Get your public IP address
        api_response = api_instance.get_ip(format=format, param_callback=param_callback)
        print("The response of DefaultApi->get_ip:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling DefaultApi->get_ip: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://api64.ipify.org

Class Method HTTP request Description
DefaultApi get_ip GET / Get your public IP address

Documentation For Models

Documentation For Authorization

Endpoints do not require authorization.

Author

blah+oapicf@cliffano.com

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

openapiipify-6.1.1.tar.gz (23.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

openapiipify-6.1.1-py3-none-any.whl (24.5 kB view details)

Uploaded Python 3

File details

Details for the file openapiipify-6.1.1.tar.gz.

File metadata

  • Download URL: openapiipify-6.1.1.tar.gz
  • Upload date:
  • Size: 23.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.14.4

File hashes

Hashes for openapiipify-6.1.1.tar.gz
Algorithm Hash digest
SHA256 91b204ec9a046e498c72f197b918d53c67d698740568115c0ec5191607b1e44f
MD5 254c4c5859430af5b3c3c722aa705b64
BLAKE2b-256 457e7775eccbafdb272dadab374b2e799aa458b6558afb8403dc9abccb8bb014

See more details on using hashes here.

File details

Details for the file openapiipify-6.1.1-py3-none-any.whl.

File metadata

  • Download URL: openapiipify-6.1.1-py3-none-any.whl
  • Upload date:
  • Size: 24.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.14.4

File hashes

Hashes for openapiipify-6.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 34d1fe46ecc27dbf04f9227080b08eb80f506b0881009ddecabf906901c70fde
MD5 398bce32bdc888a3516695769b08a048
BLAKE2b-256 e89a92df67ffca80b112b319cbb85714eaa8af081bc989a8d1f6d5637373a61b

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

6.1.1 This release

2 files

6.0.0

2 files

5.3.0

1 file

5.2.0

1 file

5.1.0

1 file

5.0.0

1 file

4.0.0

1 file

3.3.0

3 files

3.2.1

3 files

3.2.0

3 files

3.0.0

3 files

2.0.0

3 files

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