Skip to main content

A small collection of decorators I like to use often

Project description

Tecoradors

Python decorators that I like to use a lot.

Find the github repo here

Find the pypi package here

Named based on my name which starts with a T. You can find more information reading the docstrings of the functions.

Information on how to use these decorators can be found in their docstring Using help(tecorador) is a good way to learn about them. You can also read their docs on Github

Decorators are

  • Enforcer *(new in 7.0.0!): subclassable and customizable annotation type checking enforcer: pass instance to @enforce_annotations decorator to customize its behavior
  • CompositeEnforcer (new in 7.0.0!): Allows multiple Enforcer objects to work together in sequence
  • EnforceAnnotations (Removed in 7.0.0): use pluggable Enforcer objects and @enforce_annotations function decorator
  • enforce_annotations *(new in 6.3.0!): Enforces type annotations on arguments and return types at runtime. Replaces @accepts and @returns. Customizable with custom Enforcer sublcasses
  • deprecated
  • accepts
  • returns
  • interruptable
  • json_serializable
  • spread
  • builder
  • tattle
  • timed
  • squash
  • stringable
  • equatable
  • hashable
  • orderable
  • dataclass
  • final
  • freeze
  • log
  • synchronized
  • count_calls
  • lazy
  • precompute
  • resultify
  • exc_to_bool

Support from types

  • Self
  • PredicateType
  • TattleOptions
  • FrozenClassError
  • PrecomputeStorage
  • NoSuchValue

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

tecoradors_elunico-8.2.1.tar.gz (20.6 kB view details)

Uploaded Source

Built Distribution

tecoradors_elunico-8.2.1-py3-none-any.whl (19.6 kB view details)

Uploaded Python 3

File details

Details for the file tecoradors_elunico-8.2.1.tar.gz.

File metadata

  • Download URL: tecoradors_elunico-8.2.1.tar.gz
  • Upload date:
  • Size: 20.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.13.0

File hashes

Hashes for tecoradors_elunico-8.2.1.tar.gz
Algorithm Hash digest
SHA256 adfdc64867fdc8d6b2aa1d8049a1109a9fa6eacdb42e19702bbbf47675c37439
MD5 1094b7555ceb4e4d334478ff13a11af8
BLAKE2b-256 272eccc38b221ecee5719ede356664666f790bf9a3be8a9d658ca4f623d4b33c

See more details on using hashes here.

File details

Details for the file tecoradors_elunico-8.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for tecoradors_elunico-8.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 231d19c1052b882a137b63c692e6dec409b55905f2f9212e87200e9213e18fcc
MD5 f0208a951402a5b49fd715726dc6296b
BLAKE2b-256 c5666efbab3c2f71d7d8bf7f3e804fd5f2497f17adc91645ebb9843ccb16efb5

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