backport_ipaddress
backport_collections is a backport of Python 3’s ipaddress module for Python 2.6 and Python 2.7. It is based on the backport of Søren Løvborg (https://bitbucket.org/kwi/py2-ipaddress/).
What is backported?
The ipaddress module.
Usage
To use it just import the module ipaddress as you would in Python 3. Example:
import ipaddress
Differences
Given that there is no real bytes types in Python 2, we are using bytearray, which is a mutable version of bytes and in Python 2, has fewer methods.
So if in Python 3 you would do:
ipaddress.ip_address(b'\x00\x00\x00\x00')
with this port you need to do:
ipaddress.ip_address(bytearray('\x00\x00\x00\x00'))
Missing
One thing that is missing and could be important for performance is the lru_cache for many of the methods. functools in Python 2 does not have such decorator. Maybe in the future I will backport that method as well.
License
The Python Software Foundation License.
Changes
v0.1 (15/08/2014): Synced to revision http://hg.python.org/cpython/rev/15bfb82194fa
Metadata
Release files for backport_ipaddress 0.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 |
|---|---|---|---|---|
| backport_ipaddress-0.1.tar.gz | 31.6 kB | Without provenance | Details for backport_ipaddress-0.1.tar.gz |
Release files / backport_ipaddress-0.1.tar.gz
| Download URL | backport_ipaddress-0.1.tar.gz |
|---|---|
| Size | 31.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
860e338c08e2e9d998ed8434e944af9780e2baa337d1544cc26c9b1763b7735c
|
|
BLAKE2b-256 checksum How to use checksums |
d33054c6dab05a4dec44db25ff309f1fbb6b7a8bde3f2bade38bb9da67bbab8f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for backport_ipaddress 0.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.