Skip to main content

py-multistream-select

Travis CI codecov.io

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)

Table of built distributions (wheels) for multistream-select 0.1.3
File Interpreter ABI Platform
multistream_select-0.1.3-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.1.3 This release

1 release file

0.1.2

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