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-1.0.0.tar.gz
(5.4 kB
view hashes)
Built Distribution
Close
Hashes for callableabc-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ac36b48e91bd9ff309b67bd787ea4511f6a82fcb51cf4224ccac685b5977284 |
|
MD5 | b9af3fef8858b7ba24c9d7011d86e5dc |
|
BLAKE2b-256 | e68a83c49e09834f2eac76cbd3aafe3f50b23b0dbabda72195f7075387c963e3 |