Skip to main content

Protocols for better structural typing

Project description

protocol-lib

Build

Protocols for better structural typing

Goals

Implement Protocols for:

  • Container
  • Hashable
  • Iterable
  • Iterator
  • Reversible
  • Generator
  • Sized
  • Callable
  • Collection
  • Sequence
  • MutableSequence
  • ByteString
  • Set
  • MutableSet
  • Mapping
  • MutableMapping
  • MappingView
  • ItemsView
  • KeysView
  • ValuesView
  • Awaitable
  • Coroutine
  • AsyncIterable
  • AsyncIterator
  • AsyncGenerator

Notes

Generator is not currently implemented in this library. This is due to challenges encountered when attempting to implement it.

Updating project config

To do this make edits to the .projenrc.js file in the root of the project and run npx projen to update existing or generate new config. Please also use npx prettier --trailing-comma all --write .projenrc.js to format this file.

Project details


Download files

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

Source Distribution

protocol-lib-1.0.0.tar.gz (3.6 kB view hashes)

Uploaded Source

Built Distribution

protocol_lib-1.0.0-py3-none-any.whl (5.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page