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.7.tar.gz
(5.2 kB
view details)
Built Distribution
File details
Details for the file callableabc-0.7.tar.gz
.
File metadata
- Download URL: callableabc-0.7.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.28.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 182861a2a0d569fa55759947da5c8f83a67dabd7ccdb11100c26ac0a3527ef9d |
|
MD5 | 5a9d1981b5749db98232cf46d5180dd6 |
|
BLAKE2b-256 | a9ffc57942b79693ac95faae1cd90023b638a504db86e7283690e3f7a31d44c5 |
File details
Details for the file callableabc-0.7-py3-none-any.whl
.
File metadata
- Download URL: callableabc-0.7-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.28.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1123f65315c4d379e7910cc636bc933751c50e5e152f9fd18f0c6b1bc9980a0b |
|
MD5 | 102e29eca3bc326eadfb5181c6f9291e |
|
BLAKE2b-256 | 8ed39af77987467c9bd5459ac4b4c9a7544f7fc92909e51deb7d286845469075 |