Generic programming library for Python
Generic is a library for Generic programming, also known as Multiple dispatch.
The Generic library supports:
- multi-dispatch: like
functools.singledispatch, but for more than one parameter - multi-methods: multi-dispatch, but for methods
- event dispatching: based on a hierarchical event structure (event objects)
You can read documentation hosted at excellent readthedocs.org project. Development takes place on github.
Changes
1.1.8
- Drop support for Python 3.10, add support for Python 3.15
1.1.7
- Fix a licensing issue by relicencing the registry module
- Drop support for Python 3.9, add support for Python 3.14
1.1.6
- Refactoring
1.1.5
- Fix regression with super type dispatching
- Dependency updates
1.1.4
- Dependency updates
1.1.3
- Dependency updates
1.1.2
- Replace print statements with logging
- Enable trusted publisher for PyPI
- Create Security Policy
- Update LICENSE to BSD 3-Clause
- Add support for Python 3.12
- Simplify build: drop tox
- Update documentation theme to Furo
- Switch linting to ruff
1.1.1
- Add support for Python 3.11
- Move mypy configuration to pyproject.toml
- Enable automatic release of new versions with CI
1.1.0
- Rename
masterbranch tomain generic.event.Managerexecutes all handlers and throws anExceptionGroupin case of errors
1.0.1
- Add Support for Python 3.10, Drop Support for Python 3.7
- Enable Pre-commit Hooks for isort, toml, yaml, pyupgrade, docformatter, and flake8
- Migrate to GitHub Actions
1.0.0
- Updated documentation on Readthedocs
- Fix
multimethod.otherwiseclause
1.0.0b1
- Ported the code to Python 3.7, Python 2 is no longer supported
- Multimethods now have their own module
- The interface now mimics
functools.singledispatch:- the
whenmethod has been renamed toregister - overriding of methods is no longer possible
- the
0.3.1
- Minor fixes in distribution.
0.3
- Event management with event inheritance support.
0.2
- Methods with multidispatch by object type and positional arguments.
- Override multifunctions with
overridemethod.
0.1
- Registry with simple and type axes.
- Functions with multidispatch by positional arguments.
Metadata
Release files for generic 1.1.8
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 |
|---|---|---|---|---|
| generic-1.1.8.tar.gz | 8.3 kB | With provenance | Details for generic-1.1.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| generic-1.1.8-py3-none-any.whl | Python 3 | none | any | Details for generic-1.1.8-py3-none-any.whl |
Total release size: 18.1 kB
Release files / generic-1.1.8.tar.gz
| Download URL | generic-1.1.8.tar.gz |
|---|---|
| Size | 8.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
097d96d2cadef3d8e2996f3ef3f58ad304b5fb0dc6c15338c317561ff0bba493
|
|
BLAKE2b-256 checksum How to use checksums |
a63e30492b7dd7867e768435a477e7d5027d51bca821183175acf9fbe397975b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.
Transparency logRelease files / generic-1.1.8-py3-none-any.whl
| Download URL | generic-1.1.8-py3-none-any.whl |
|---|---|
| Size | 9.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5e2a46f00977f67c510d20a2241ed2b1df503ace94f84b54753af00a6f94986f
|
|
BLAKE2b-256 checksum How to use checksums |
ec2cba4e29b1279c1a9948c87b62f86e04e7856f0697bb53703bb0d6bf820fa5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.
Transparency logSecurity for generic 1.1.8
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for generic-1.1.8.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.
Transparency logA 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.