Pyipify
ipify-py is a python module that allows you to interact with the ipify API in synchronous and asynchronous ways. It also provides a command-line interface for easy access.
The ipify API is a simple service that returns your public IP address. You can use it to find out your IP address from any device or platform.
Features
- Supports both IPv4 and IPv6 addresses
- Supports both sync and async requests using requests and aiohttp libraries
- Provides a CLI tool to get your IP address from the terminal
- Provides a simple and intuitive interface
Installation
Install my-project with npm
pip install Pyipify
Examples
get ip address synchronous
from Pyipify.synchronous import find_ipv4,find_ipv6
ipv4_address = find_ipv4()
ipv6_address = find_ipv6()
print(ipv4_address,ipv6_address)
get ip address asynchronously
from Pyipify.asynchronous import find_ipv4,find_ipv6
import asyncio
async def main():
ipv4_address = await find_ipv4()
ipv6_address = await find_ipv6()
return ipv4_address,ipv6_address
asyncio.run(main())
use cli to get ip address
python -m ipify -h
to get started
Contributing
Contributions are always welcome!
See contributing.md for ways to get started.
Please adhere to this project's code of conduct.
License
Support
For support, email sigireddybalasai@gmail.com or open an issue here
Metadata
Release files for pyipify 0.0.3.1
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 |
|---|---|---|---|---|
| pyipify-0.0.3.1.tar.gz | 12.7 kB | Without provenance | Details for pyipify-0.0.3.1.tar.gz |
Release files / pyipify-0.0.3.1.tar.gz
| Download URL | pyipify-0.0.3.1.tar.gz |
|---|---|
| Size | 12.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bc266ea1baf158abb64d069917b572f1356825ffe87af533afc96ed7ed5ad63a
|
|
BLAKE2b-256 checksum How to use checksums |
9252a1f2dcad5a01bf3b2d2e4b8ea4244883f32c79ebf424d2cf2e9fbeb2078a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.0
|
Security for pyipify 0.0.3.1
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.