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.
You may install this via the dynamic-dispatch
package on PyPi:
pip3 install dynamic-dispatch
When developing, it is recommended to use Pipenv. To create your development environment:
pipenv install --dev
This library uses the unittest
framework. Tests may be run with the following:
python3 -m unittest