Skip to main content

Reflective annotation library for python

Project description


Annotation library like Java’s annotation with reflective concerns for Python.

License Development Status Latest release Supported Python versions Supported Python implementations Download format Build status Code test coverage Downloads Documentation Status Code Health


pip install b3j0f.annotation


What does mean annotations in a reflective way:

  • one annotation can annotate several objects at a time (modules, classes, functions, instances, builtins, annotation like themselves, etc.).
  • such as a reflective object, they could have their own behavior and lifecycle independently to annotated elements.

This library provides the base Annotation class in order to specialize your own annotations, and several examples of useful annotation given in different modules such as:

  • async: dedicated to asynchronous programming.
  • interception: annotations able to intercept callable object calls.
  • call: inherits from interception module and provides annotations which allow to do checking on callable objects.
  • check: annotations which check some conditions such as type of annotated targets, max number of annotated elements, etc.
  • oop: useful in object oriented programming like allowing to weave mixins.



  • Cython implementation.


I'm grateful for gifts, but don't have a specific funding goal.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
b3j0f.annotation-0.3.6-py2.py3-none-any.whl (42.8 kB) Copy SHA256 hash SHA256 Wheel 2.7
b3j0f.annotation-0.3.6.tar.bz2 (23.8 kB) Copy SHA256 hash SHA256 Source None
b3j0f.annotation-0.3.6.tar.gz (26.9 kB) Copy SHA256 hash SHA256 Source None (47.8 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page