Skip to main content

distributed-state-network

A peer-to-peer network of nodes that share replicated state over HTTP, with per-message AES encryption and ECDSA-signed packets. Each node gossips its state to peers; the network self-organizes from a set of bootstrap nodes.

This is the networking layer used by language-pipes, but has no dependency on it and can be used on its own.

Install

pip install distributed-state-network

Usage

from distributed_state_network import DSNodeServer, DSNodeConfig

key = DSNodeServer.generate_key()
server = DSNodeServer.start(DSNodeConfig(
    node_id="node-a",
    network_ip="127.0.0.1",
    port=8000,
    aes_key=key,
))

See src/distributed_state_network/ for the packet types, key management, and node handler implementation.

License

MIT

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

distributed_state_network-1.1.0.tar.gz (18.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

distributed_state_network-1.1.0-py3-none-any.whl (20.1 kB view details)

Uploaded Python 3

File details

Details for the file distributed_state_network-1.1.0.tar.gz.

File metadata

File hashes

Hashes for distributed_state_network-1.1.0.tar.gz
Algorithm Hash digest
SHA256 65d8a149bad69be3ed4fea183465f7c540f69047bd3d421eb38a82e196007e15
MD5 7e1fe84fc625dc8223bab9ae8e17e667
BLAKE2b-256 49b863d9b2d94b9914ab400cdc52f58380e1a61fb0bc398431bba01863e8a3a6

See more details on using hashes here.

Provenance

The following attestation bundles were made for distributed_state_network-1.1.0.tar.gz:

Publisher: publish-packages.yml on erinclemmer/language-pipes

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file distributed_state_network-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for distributed_state_network-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ffbbb53fa9a7411386b56a14cc0332344979ad19b10a9319889d477685daa8f4
MD5 bf22285752dcd011cd9e13122bca151e
BLAKE2b-256 97daf5e254fefe45985e000eea9693b293d8e692b245a14f1df6ed1eda2ca6b4

See more details on using hashes here.

Provenance

The following attestation bundles were made for distributed_state_network-1.1.0-py3-none-any.whl:

Publisher: publish-packages.yml on erinclemmer/language-pipes

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

1.2.0

2 files

This release

1.1.0 This release

2 files

1.0.0

2 files

0.6.7

2 files

0.6.6

2 files

0.6.5

2 files

0.6.4

2 files

0.6.3

2 files

0.6.2

2 files

0.6.1

2 files

0.6.0

2 files

0.5.6

2 files

0.5.5

2 files

0.5.4

2 files

0.5.3

2 files

0.5.2

2 files

0.5.1

2 files

0.5.0

2 files

0.4.2

2 files

0.4.1

2 files

0.4.0

2 files

0.3.0

2 files

0.2.1

2 files

0.2.0

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

0.0.5

2 files

0.0.4

2 files

0.0.3

2 files

0.0.2

2 files

0.0.1

2 files

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