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-1.1.0.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

callableabc-1.1.0-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

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

Hashes for callableabc-1.1.0.tar.gz
Algorithm Hash digest
SHA256 e12e772d8c51195e86885bf3c91d5d7a34dc608f4bc739bfe98707f2891babf0
MD5 c8e5c719ad83c81e678e9f09012273bd
BLAKE2b-256 b0d7c00fbedb753b76e094cc2d5fae9349c30685d3fc0b24bc8f3d6f396cfcda

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for callableabc-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e2a6f0fbbf75fa46409893a7b03305c60ea5f9b240c3ec834905f8db89be92d4
MD5 e2f6af57f23db1813244dec8f36a2072
BLAKE2b-256 5a14ecbd7460ef031780ec78c987d100b3b04c7275045e20bdbc290a404c5be1

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