openapi-ipify
Project description
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.0.0
- Package version: 6.0.0
- Generator version: 7.18.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit https://github.com/oapicf/openapi-ipify
Requirements.
Python 3.9+
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
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
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 openapiipify-6.0.0.tar.gz.
File metadata
- Download URL: openapiipify-6.0.0.tar.gz
- Upload date:
- Size: 21.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5dd2b02510efca92b577e0adce6d5a10892e745836116a36a6537b552aff55ea
|
|
| MD5 |
2f178eddcdcb7f5cf0731e9a2f0406ee
|
|
| BLAKE2b-256 |
beedfe353180a2b0b961177e37c4de0d5a0d51c79f98cfd4b44504160deb76a6
|
File details
Details for the file openapiipify-6.0.0-py3-none-any.whl.
File metadata
- Download URL: openapiipify-6.0.0-py3-none-any.whl
- Upload date:
- Size: 23.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e4a21b2c5ddb2fb92576e2a96156f871782056e836c370bc3e10ccc6ac33c56c
|
|
| MD5 |
ff9999568d5130ba8a4b6d34d1fb13d1
|
|
| BLAKE2b-256 |
05d462377f47c1880cb6c9af51d961dece91cd6e0666a9da65824a529364431d
|