Skip to main content

Spanning Cidr

Function that accepts a sequence of IP addresses returning a single subnet that is large enough to span the lower and upper bound IP addresses with a possible overlap on either end.

Installation

Run pip install spanning-cidr

How To Use

from spanning_cidr import spanning_cidr

spanning_cidr(['192.168.1.1','192.168.1.2', '192.168.1.3', '192.168.1.4'])
>> '192.168.1.0/29'

spanning_cidr(['192.168.2.10', '192.168.1.10'])
>> '192.168.0.0/22'

Metadata

Release files for spanning-cidr 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for spanning-cidr 0.1.4
File Size Uploaded Provenance
spanning-cidr-0.1.4.tar.gz 2.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for spanning-cidr 0.1.4
File Interpreter ABI Platform
spanning_cidr-0.1.4-py3-none-any.whl Python 3 none any Details

Total release size: 5.3 kB

Release files / spanning-cidr-0.1.4.tar.gz

Download URL spanning-cidr-0.1.4.tar.gz
Size 2.5 kB
Tags Source
SHA-256 checksum
How to use checksums
97cb809c6a5ee6cd457b31dc23897169932c64ac6c3bdee023f0c14a94f91ce3
BLAKE2b-256 checksum
How to use checksums
bf551b8ab0d4ef2d06a804e22dbb57decf72cd7558dfd0f40a552a86fb4e2474
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.9 CPython/3.7.5 Darwin/19.5.0

Release files / spanning_cidr-0.1.4-py3-none-any.whl

Download URL spanning_cidr-0.1.4-py3-none-any.whl
Size 2.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bf00281398b7eda061dc315c13c28f9b691400700c198cccab6142353e62f2e8
BLAKE2b-256 checksum
How to use checksums
d4efdeac35ad5202f1d5ffcd683039fa61c4b7d72db8bd5c1071e0c0d38cf4fd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.9 CPython/3.7.5 Darwin/19.5.0

Security for spanning-cidr 0.1.4

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page