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
- EnforceAnnotations (new in 6.4.0!): subclassable and customizable annotation type checking enforcer - replaces the deprecated @accepts and @returns
- enforce_annotations (new in 6.3.0!): convenience default function based wrapper for EnforceAnnotations class-based wrapper
- 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-6.4.1.tar.gz
(18.4 kB
view details)
Built Distribution
File details
Details for the file tecoradors_elunico-6.4.1.tar.gz
.
File metadata
- Download URL: tecoradors_elunico-6.4.1.tar.gz
- Upload date:
- Size: 18.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54c52c43466a29f58bdb73d7489f305e37e7a3670b6d2a6b412895564ad212aa |
|
MD5 | 3865332b40679039e4259c5edc232989 |
|
BLAKE2b-256 | e6f769c2a91da1312a06f9e0972f0800d3156b9a7479d951a7376dcd67dce218 |
File details
Details for the file tecoradors_elunico-6.4.1-py3-none-any.whl
.
File metadata
- Download URL: tecoradors_elunico-6.4.1-py3-none-any.whl
- Upload date:
- Size: 17.7 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 | f96911725c32d687408a15625dee95594794fff932d20aca019bf6c4c336f821 |
|
MD5 | 56a460ba4256ca7bf4181d8fc08c20d6 |
|
BLAKE2b-256 | d5c4def917746369c0b7570f1d039c0b07b0bc659d430231d7ca4ae9f488da41 |