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
- decurryable
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tecoradors_elunico-8.3.1.tar.gz.
File metadata
- Download URL: tecoradors_elunico-8.3.1.tar.gz
- Upload date:
- Size: 21.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
91ae2e3d6acd8004649fdb31dcfcce4efe9d95ba6d119eac894acf4409f92136
|
|
| MD5 |
551d56e64b64748ac4cf6289cbf6374c
|
|
| BLAKE2b-256 |
27790e53774dc872988058e5d35798a7e2a02bbd78b734f81f8ecb9645a905e4
|
File details
Details for the file tecoradors_elunico-8.3.1-py3-none-any.whl.
File metadata
- Download URL: tecoradors_elunico-8.3.1-py3-none-any.whl
- Upload date:
- Size: 20.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0ab0cc88ea4c298856735f5d0bacbbdac06858b0883ee5e73a865e152c405d1d
|
|
| MD5 |
dc89493c50036a8960cbf8013eed36fc
|
|
| BLAKE2b-256 |
f876bce31bb124dc963c03240329804a2a333a7c55a95663e16962b690025126
|