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.1.0.tar.gz
(5.7 kB
view details)
Built Distribution
File details
Details for the file callableabc-1.1.0.tar.gz
.
File metadata
- Download URL: callableabc-1.1.0.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.28.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e12e772d8c51195e86885bf3c91d5d7a34dc608f4bc739bfe98707f2891babf0 |
|
MD5 | c8e5c719ad83c81e678e9f09012273bd |
|
BLAKE2b-256 | b0d7c00fbedb753b76e094cc2d5fae9349c30685d3fc0b24bc8f3d6f396cfcda |
File details
Details for the file callableabc-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: callableabc-1.1.0-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.28.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2a6f0fbbf75fa46409893a7b03305c60ea5f9b240c3ec834905f8db89be92d4 |
|
MD5 | e2f6af57f23db1813244dec8f36a2072 |
|
BLAKE2b-256 | 5a14ecbd7460ef031780ec78c987d100b3b04c7275045e20bdbc290a404c5be1 |