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-0.6.tar.gz
(5.2 kB
view hashes)
Built Distribution
Close
Hashes for callableabc-0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f026992ba528abecbdbb1b9aedbdce9eb9b68787a8e024bcff80c1eb591dfa7 |
|
MD5 | e08c8123ab7437efc1146070a3a6b368 |
|
BLAKE2b-256 | 764755c31ad2e67cf2da6dfb5fddf1e958b82bb73905fc6fcdfe7c992d20216c |