A variant of ABC that allows customizing the call behavior via _class_call()
Project description
callableabc
This package implements a metaclass and convenience instance of it that works like abc.ABC
, but allows you to customize what happens when the class object gets called by implementing a _class_call()
classmethod.
Inherit from the convenience class CallableABC
to get this behavior,
or use the metaclass CallableABCMeta
directly.
The metaclass uses the CallableABCMetaDict
dictionary subclass to keep track of the _class_call()
method.
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
callableabc-2.1.0.tar.gz
(5.3 kB
view hashes)
Built Distribution
Close
Hashes for callableabc-2.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4a6e34f8c4ad207384ec3cfb1fe3023e4a5cd53e08fe1b07508feab65c700f5 |
|
MD5 | aa9624c8ace37101ccf7235f2718cfc1 |
|
BLAKE2b-256 | 81e277cd0d9b02890fcee685417a981530ec472ab6fad539c0804b33cf31bb44 |