Skip to main content

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


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)

Uploaded Source

Built Distribution

callableabc-2.1.0-py3-none-any.whl (5.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page