py-multistream-select
an implementation of the multistream protocol in python
Table of Contents
Install
py-multistream-select is a standard PyPI module which can be installed with:
pip install multistream-select
Usage
Example
from multistream_select.multiselect import Multiselect
from multistream_select.multiselect_client import MultiselectClient
async def client_get_protocol(host_info):
protocols = [ '/cats', '/dogs' ]
stream = func_to_create_stream(host_info)
client = MultiselectClient()
return await client.select_one_of(protocols, stream)
async def host_get_protocol(handlers):
stream = func_to_create_stream()
host = Multiselect()
for protocol in handlers:
host.add_handler(protocol, handlers[protocol])
return host.negotiate(stream)
Contribute
Contributions welcome. Please check out the issues.
Check out our contributing document for more information on how we work, and about contributing in general. Please be aware that all interactions related to multiformats are subject to the IPFS Code of Conduct.
Small note: If editing the README, please conform to the standard-readme specification.
License
This project is licensed under the MIT License - see the LICENSE file for details
Metadata
Release files for multistream-select 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| multistream_select-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for multistream_select-0.1.3-py3-none-any.whl |
Release files / multistream_select-0.1.3-py3-none-any.whl
| Download URL | multistream_select-0.1.3-py3-none-any.whl |
|---|---|
| Size | 11.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c306e5d9c975000d699f44102429b99fe990423628e410a78d87d2c57fd5ac18
|
|
BLAKE2b-256 checksum How to use checksums |
5695d64936cb6470c90b74dfad6995d96e0725eae2c1cafe57532d5f0f547a0a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1
|
Security for multistream-select 0.1.3
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.