Thank you for supporting!
-
Function get_ip() is used to get your ipv4 address including host and port.
from ipv4v6 import get_ip print(get_ip()) #It'll print something like 117.143.170.80:2653 -
Function get_ipv4() is used to get your ipv4 address including only host.
from ipv4v6 import get_ipv4 print(get_ipv4()) #It'll print something like 117.143.170.80(Tips : If you just want to get ipv4 address, get_ip() is a better choice because it's faster than get_ipv4)
-
Function get_ipv6() is used to get your ipv6 address including only host.
from ipv4v6 import get_ipv6 print(get_ipv6()) #It'll print something like 2409:8a1e:6e81:4280:6456:3051:4f3f:1965 -
Function ip_tuple() returns a tuple which contains the host and the port of your ipv4 address.
(Tips : It can be given to socket.connect() as parameter)
from socket import * from ipv4v6 import ip_tuple sock=socket(AF_INET,SOCK_STREAM) sock.connect(ip_tuple()) -
Function get_ipv4_location() and get_ipv6_location returns the location of your ip address.
from ipv4v6 import get_ipv4_location print(get_ipv4_location()) #It'll print the location
Metadata
Release files for ipv4v6 1.1.0
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 |
|---|---|---|---|---|
| ipv4v6-1.1.0.tar.gz | 3.7 kB | Without provenance | Details for ipv4v6-1.1.0.tar.gz |
Release files / ipv4v6-1.1.0.tar.gz
| Download URL | ipv4v6-1.1.0.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
12a1aed19850ef9463493eb65d44789d197add11250a2a1ff5835f1bcc2c2159
|
|
BLAKE2b-256 checksum How to use checksums |
39c289502e30e7cd91bf23de1f8be774a0dad0eb38c3d27aa119d7775c3c3e67
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.11.6
|
Security for ipv4v6 1.1.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.