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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file callableabc-2.1.0.tar.gz.

File metadata

  • Download URL: callableabc-2.1.0.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.30.0

File hashes

Hashes for callableabc-2.1.0.tar.gz
Algorithm Hash digest
SHA256 a98a1ca5dd8e67da6ccbbb60a7e2535ba02a9faed17f315b512110dfaf1086dc
MD5 9c75c06adf99429f2e84a06afbb674df
BLAKE2b-256 54f6ec96679e2edbf40d6315dc3793ba43d342a4e8a8f4a9783f3409b7b145b3

See more details on using hashes here.

File details

Details for the file callableabc-2.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for callableabc-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e4a6e34f8c4ad207384ec3cfb1fe3023e4a5cd53e08fe1b07508feab65c700f5
MD5 aa9624c8ace37101ccf7235f2718cfc1
BLAKE2b-256 81e277cd0d9b02890fcee685417a981530ec472ab6fad539c0804b33cf31bb44

See more details on using hashes here.

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