cached-ipaddress
Source Code: https://github.com/bluetooth-devices/cached-ipaddress
Cache construction of ipaddress objects
Design
This module keeps a cache of IPAddress objects and caches the properties on them.
It it useful when you frequently see the same ip addresses over and over and do not want to pay the overhead of constructing IPAddress objects over and over or checking their properties.
Installation
Install this via pip (or your favourite package manager):
pip install cached-ipaddress
Usage
from cached_ipaddress import cached_ip_addresses
ip = cached_ip_addresses("127.0.0.1")
assert ip.is_loopback is True
invalid = cached_ip_addresses("invalid")
assert invalid is None
Contributors ✨
Thanks goes to these wonderful people (emoji key):
This project follows the all-contributors specification. Contributions of any kind welcome!
Credits
This package was created with Copier and the browniebroke/pypackage-template project template.
Release files for cached-ipaddress 1.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cached_ipaddress-1.1.2.tar.gz | 6.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cached_ipaddress-1.1.2-cp314-cp314-manylinux_2_41_x86_64.whl | CPython 3.14 | CPython 3.14 | Linux glibc 2.41+ x86-64 | Details |
Total release size: 51.0 kB
Release files / cached_ipaddress-1.1.2.tar.gz
| Download URL | cached_ipaddress-1.1.2.tar.gz |
|---|---|
| Size | 6.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
232f62f768a2531e3d64e661eb2e484b52954ceb8d2b04ad0d2317f52ce25108
|
|
BLAKE2b-256 checksum How to use checksums |
095fa5f4c350307c00fa23322acd24ad8f6a46929a7cfd321e2cc3870f689524
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 27, 2026.
Transparency logRelease files / cached_ipaddress-1.1.2-cp314-cp314-manylinux_2_41_x86_64.whl
| Download URL | cached_ipaddress-1.1.2-cp314-cp314-manylinux_2_41_x86_64.whl |
|---|---|
| Size | 44.5 kB |
| Tags | CPython 3.14 Linux glibc 2.41+ x86-64 |
|
SHA-256 checksum How to use checksums |
5319b02ca66356ff9e7050e346e16f8de2279ef20b6fe512a7086cb85b17d338
|
|
BLAKE2b-256 checksum How to use checksums |
94d8608aee31ec66ddbf7b5c8b10ff6ccf78bad1b9287fff59d93c15c0d08b6f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 27, 2026.
Transparency log