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-8.0.0.tar.gz
(19.9 kB
view details)
Built Distribution
File details
Details for the file tecoradors_elunico-8.0.0.tar.gz
.
File metadata
- Download URL: tecoradors_elunico-8.0.0.tar.gz
- Upload date:
- Size: 19.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74fcb202de71a7464ee6ff30a54402a51a8e6f49322477f4bd193e31c069002f |
|
MD5 | bb1c70d7dcd1a6099f24072d67278e08 |
|
BLAKE2b-256 | b185e5fb97d1e0424b5a7bbaecdaba071797c194162c6061e28b6e2ef91208e6 |
File details
Details for the file tecoradors_elunico-8.0.0-py3-none-any.whl
.
File metadata
- Download URL: tecoradors_elunico-8.0.0-py3-none-any.whl
- Upload date:
- Size: 18.8 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 | 1da8bd10e4fe280fac88e385a6d9a3c458c06ec07774a9ce4c85c8c3b6424697 |
|
MD5 | 1189162ec0119ff29e3220f382532582 |
|
BLAKE2b-256 | 0e74a9b7dcc6716e58fdea0431a5a1d6c2c603813a8df4e04aa6c8057ad3fa63 |