Protocols for better structural typing
Project description
protocol-lib
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
Release history Release notifications | RSS feed
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 details)
Built Distribution
File details
Details for the file protocol-lib-1.0.0.tar.gz
.
File metadata
- Download URL: protocol-lib-1.0.0.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.10 CPython/3.8.12 Linux/5.8.0-1042-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f387c914e964dcb329805587e18fe66b0353d9a07d31355d2c36e2e2d971e443 |
|
MD5 | 556ef92cf249e0b7b6bd9a5d1c817c72 |
|
BLAKE2b-256 | 3198b758015cbf98ae8fed3a3dda3e9929ca63e5c1fa8b64d0bc07e86dabba7f |
File details
Details for the file protocol_lib-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: protocol_lib-1.0.0-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.10 CPython/3.8.12 Linux/5.8.0-1042-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1406a8397f9d5dd1448c9ccb34c692cb8599aae1992ad0e0a80d3a2a0e6d2812 |
|
MD5 | 5e9109b4a6f43ee848605d36fe254c19 |
|
BLAKE2b-256 | 0813ced5d7eae92a24eda76a8e1a38f140b4090766dd8e5e1b03f5840dad81c4 |