Dynamic Dispatch
A lightweight, dynamic dispatch implementation for classes and functions. This allows a class or function to delegate
its implementation conditioned on the value of its first argument. This is similar to functools.singledispatch,
however this library dispatches over value while the other dispatches over type.
Install
You may install this via the dynamic-dispatch package on PyPi:
pip3 install dynamic-dispatch
Usage
Development
When developing, it is recommended to use Pipenv. To create your development environment:
pipenv install --dev
Testing
This library uses the unittest framework. Tests may be run with the following:
python3 -m unittest
Metadata
Release files for dynamic-dispatch 1.0.3
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 |
|---|---|---|---|---|
| dynamic_dispatch-1.0.3.tar.gz | 5.8 kB | Without provenance | Details for dynamic_dispatch-1.0.3.tar.gz |
Release files / dynamic_dispatch-1.0.3.tar.gz
| Download URL | dynamic_dispatch-1.0.3.tar.gz |
|---|---|
| Size | 5.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fbc676aaedc8ec542056c21e5e206b8b62b8d11c3f3c5cfb32b273936da89604
|
|
BLAKE2b-256 checksum How to use checksums |
edb5731db096fcc48259d14fb9fb186101f78545252bf8ca079fb2d84acc88bb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.3
|
Security for dynamic-dispatch 1.0.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.