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
- resultify
- exc_to_bool
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.2.0.tar.gz
(20.6 kB
view details)
Built Distribution
File details
Details for the file tecoradors_elunico-8.2.0.tar.gz
.
File metadata
- Download URL: tecoradors_elunico-8.2.0.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56708c20c68ce0f0d1f2abc6aa7588d641afe10284636f02f49eef60e0c24c72 |
|
MD5 | 9cf4c65ddc4182c3d99c8f9e39c6cefd |
|
BLAKE2b-256 | dc172f8b9aa3e29615172177eb973ce30d32722a8fcd7a7652b753780478bf4f |
File details
Details for the file tecoradors_elunico-8.2.0-py3-none-any.whl
.
File metadata
- Download URL: tecoradors_elunico-8.2.0-py3-none-any.whl
- Upload date:
- Size: 19.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.13.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f83a8df3a6ad3f47432f4eff5eb10102884cbddca9c5f87aa2ebb90454fa2e5 |
|
MD5 | dbc760ee5f725b8b4dc8db4b0ea0cb07 |
|
BLAKE2b-256 | fad38f982a8d6321a455ec881f4563a0981d5f85033d3f85fbbc0eed2a19384c |