Skip to main content

NetSplit

Build Tests Coverage

PyPI Package

Split a single tcp/ip connection between multiple servers.

Wait isn't this just NAT....

Usage

py netsplit.py config.json

Config

{
    "http": { // Special route that forwards web browsers
        "host": "127.0.0.1",
        "port": 8000
    },
    "0": {    // Server ID (SID), this is what you will put in s.connect(<addr>, <sid>)
        "host": "127.0.0.1",
        "port": 5000
    }
    ... // You can have as many as you want
}

Client usage

import netSplit

s = netSplit.socket()              # Create socket
s.connect(('127.0.0.1', 8080), 0)  # Connect to the proxy, and ask it to forward us to server 0

# Simple echo client
while True:
    s.send(input('> ').encode())
    print(s.recv(2048).decode())

Server usage

The server does not have to be built with netSplit.

Metadata

Release files for PyNetSplit 3.10.0

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

Source distribution (sdist)

Source distribution for PyNetSplit 3.10.0
File Size Uploaded
pynetsplit-3.10.0.tar.gz 9.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for PyNetSplit 3.10.0
File Interpreter ABI Platform
pynetsplit-3.10.0-py3-none-any.whl Python 3 none any Details

Total release size: 18.6 kB

Release files / pynetsplit-3.10.0.tar.gz

Download URL pynetsplit-3.10.0.tar.gz
Size 9.9 kB
Tags Source
SHA-256 checksum
How to use checksums
29e805ecccdebcee672d8b47a2632d0bdf8426d079b52f668121529870db2807
BLAKE2b-256 checksum
How to use checksums
99f35f0ac561b505f5c113cf09b5ab1d5bb4b9869b8ae0a6170136bd4102c523
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.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.

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 Aug 23, 2025.

Transparency log

Release files / pynetsplit-3.10.0-py3-none-any.whl

Download URL pynetsplit-3.10.0-py3-none-any.whl
Size 8.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1c89db142a0c28e17cf2eb4ba7b00ddbac4b29f33765073a99df50fa9d2a0b79
BLAKE2b-256 checksum
How to use checksums
67d4fb66030b626f6fbca22b332e483ae7708cbdb007c968f20fdb21c43fd169
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.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.

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 Aug 23, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

3.10.0 This release

2 release files

3.5

2 release files

3.3

2 release files

3.0

2 release files

0.0.0

1 release file

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