A small collection of decorators I like to use often
Project description
Tecoradors
Python decorators that I like to use a lot.
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
Support from types
- Self
- PredicateType
- TattleOptions
- FrozenClassError
- PrecomputeStorage
- NoSuchValue
Project details
Release history Release notifications | RSS feed
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-7.0.1.tar.gz
(19.3 kB
view details)
Built Distribution
File details
Details for the file tecoradors_elunico-7.0.1.tar.gz
.
File metadata
- Download URL: tecoradors_elunico-7.0.1.tar.gz
- Upload date:
- Size: 19.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60afc55d93ec2bcea21329635351ecd44193f0d72e0df2a29067bdfbd77bd96c |
|
MD5 | a768c88e87930074aab51b29225601df |
|
BLAKE2b-256 | 8fc6ad001f723703c7bdf01c2536849fee65bd09cc9ee5348a9567348802860c |
File details
Details for the file tecoradors_elunico-7.0.1-py3-none-any.whl
.
File metadata
- Download URL: tecoradors_elunico-7.0.1-py3-none-any.whl
- Upload date:
- Size: 18.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79b03242d859a927a13d5c2c78008e6722af3512178d4f3794b3d345f656e3f8 |
|
MD5 | cdf993ee1db0fc2cbecc79c44c29dfb7 |
|
BLAKE2b-256 | 0483b846f313c27b82b16380801e899c858da8ee30b4796f55eee3ae4fc3ad88 |