Skip to main content

Netsplit: Slice and dice your IP space

PyPi version Build status License

Netsplit plans your IP space. Describe a network and its members in a TOML file, and netsplit splits it into subnets and renders the result as a table.

Installation

Requires Python 3.10 or newer. Install and update using:

pipx install netsplit
pipx upgrade netsplit

or, with pip:

pip3 install --user --upgrade netsplit

Usage

Here is a very simple network plan:

[netsplit]
  description = "Global / Subnet"
  network = "192.168.0.0/24"

[plan]
  options = { slots = 4 }
  members = ["NetA", "NetB"]

We can render it with:

❯ netsplit plan -p examples/netsplit-simple.toml -r 2
     ╷                   ╷                                    ╷               ╷
   # │ Global / Subnet   │ Subnet                             │ idx+ext/slots │ IPs
╶────┼───────────────────┼────────────────────────────────────┼───────────────┼─────╴
   0 │ Global            │ ................192.168.0.0/24     │               │ 256
   1 │ Global / NetA     │ ..................192.168.0.0/26   │   1     /   4 │  64
   1 │ Global / NetB     │ ..................192.168.0.64/26  │   2     /   4 │  64
   1 │ Global / RESERVED │ ..................192.168.0.128/26 │   3     /   4 │  64
   1 │ Global / RESERVED │ ..................192.168.0.192/26 │   4     /   4 │  64
     ╵                   ╵                                    ╵               ╵

Here -p selects the plan file and -r 2 also shows reserved slots down to level 2. With slots = 4 and only two members, the two unused slots are listed as RESERVED. The idx+ext/slots column shows the slot index (plus any extension) out of the total number of slots.

Run netsplit plan --help for all options (-l limits the displayed level, -k filters by keyword).

Make sure to check the examples for complex network plans:

Multicloud Plan

License

Apache 2.0, see LICENSE.

Similar projects

Metadata

Release files for netsplit 0.3.9

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

Source distribution (sdist)

Source distribution for netsplit 0.3.9
File Size Uploaded Provenance Actions
netsplit-0.3.9.tar.gz 199.7 kB Without provenance Details for netsplit-0.3.9.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for netsplit 0.3.9
File Interpreter ABI Platform Actions
netsplit-0.3.9-py3-none-any.whl Python 3 none any Details for netsplit-0.3.9-py3-none-any.whl

Total release size: 208.0 kB

Release files / netsplit-0.3.9.tar.gz

Download URL netsplit-0.3.9.tar.gz
Size 199.7 kB
Tags Source
SHA-256 checksum
How to use checksums
51f8428ba3eb7f9fcbe2fa1e0ca4d6305452f5fdf0935d802951e185bcdfe307
BLAKE2b-256 checksum
How to use checksums
2ffd9dbc2a6a80c7cd11ee9af68cb68236af05d902ed1ddf54b91b20e446c4a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.0 {"installer":{"name":"uv","version":"0.13.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / netsplit-0.3.9-py3-none-any.whl

Download URL netsplit-0.3.9-py3-none-any.whl
Size 8.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cd323320fe72588d54c4f9a82eafb447fa45ab461af056ae72b38b2e2e867ec7
BLAKE2b-256 checksum
How to use checksums
67da77f38cb643edcfbe61f3dd03dfb02115e654da280e2875f0aab284494508
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.0 {"installer":{"name":"uv","version":"0.13.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for netsplit 0.3.9

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