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.0.0.tar.gz (18.8 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.0.0-py3-none-any.whl (20.2 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for distributed_state_network-1.0.0.tar.gz
Algorithm Hash digest
SHA256 912f593b82e9d83f3cd9d93dfeb92192e7924c8305af98c2623eaa28f694c062
MD5 621edb9e4e6fb7a841434fbd0cae6d17
BLAKE2b-256 11fa3fbb8b69f5d08b18a46de788b5ebe4ee3688a21476db9db0a4c1ce9ad4cf

See more details on using hashes here.

Provenance

The following attestation bundles were made for distributed_state_network-1.0.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.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for distributed_state_network-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d9c271d915badf4b64c1c7e606210f48b78b54efd88dc0afdef119eb26d98a8e
MD5 9ac9aeaa1ebb0ec1416c6369e1b858f0
BLAKE2b-256 8c01212b3e31b8e86c6680ec286ba11e2d47cb6d064f6e9c2a6d0d1253860d45

See more details on using hashes here.

Provenance

The following attestation bundles were made for distributed_state_network-1.0.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

1.1.0

2 files

This release

1.0.0 This release

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