This release is a pre-release and may not be stable for production use.
NetworkZero
Make it easy for learning groups to use simple networking in Python
Development: https://github.com/tjguk/networkzero
Tests: to run the tests, run tox. All tests are run on Travis (Linux & Apple) and Appveyor (Windows)
API
address below refers to an IP:Port string eg “192.0.2.5:4567”
Discovery
address = advertise(name, address=None)
address = discover(name, wait_for_s=FOREVER)
[(name, address), …] = discover_all()
[(name, address), …] = discover_group(group_name, separator=”/”)
Messaging
reply = send_message_to(address, message, wait_for_reply_s=FOREVER)
message = wait_for_message_from(address, [wait_for_s=FOREVER])
send_reply_to(address, reply)
send_news_to(address, news)
wait_for_news_from(address[, pattern=EVERYTHING][, wait_for_s=FOREVER])
Typical Usage
On computer (or process) A:
import networkzero as nw0
address = nw0.advertise("hello")
while True:
name = nw0.wait_for_message_from(address)
nw0.send_reply_to(address, "Hello, %s" % name)
On computer (or process) B and C and D…:
import networkzero as nw0
server = nw0.discover("hello")
reply = nw0.send_message_to(server, "World")
print(reply)
reply = nw0.send_message_to(server, "Tim")
print(reply)
Metadata
Release files for networkzero 1.0b1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| networkzero-1.0b1.zip | 22.1 kB | Without provenance | Details for networkzero-1.0b1.zip |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| networkzero-1.0b1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for networkzero-1.0b1-py2.py3-none-any.whl |
Total release size: 42.4 kB
Release files / networkzero-1.0b1.zip
| Download URL | networkzero-1.0b1.zip |
|---|---|
| Size | 22.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4deefe944e70fd0622bf87c89c5be11eb44f299d53f4c42dd08b9ebba4eb10e1
|
|
BLAKE2b-256 checksum How to use checksums |
70ddf12daf38405e9be5b7d7115b2f0f19eaaaecff44871185df2a28017a0f2a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / networkzero-1.0b1-py2.py3-none-any.whl
| Download URL | networkzero-1.0b1-py2.py3-none-any.whl |
|---|---|
| Size | 20.3 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
2e75228a687ff690d0e932e0c6c425b65cbb526ca0a73a29db27af4b185e7294
|
|
BLAKE2b-256 checksum How to use checksums |
f3d013da5ca617aea49f5e4296efbf02fb4717d602db587803bbe216fa41f88c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for networkzero 1.0b1
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.