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.3.tar.gz
(18.5 kB
view details)
Built Distribution
File details
Details for the file tecoradors_elunico-6.4.3.tar.gz
.
File metadata
- Download URL: tecoradors_elunico-6.4.3.tar.gz
- Upload date:
- Size: 18.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba0c0b42d4a2c2742726ecf65f28015b8b1cd84a5e35b4ab3fe8ac039ec4160e |
|
MD5 | 83c8a1766fb541f24b36bd2e438d252e |
|
BLAKE2b-256 | 4212d89ff033c59531f08d1a91a3d4cb1a4113ff07813d5f8697a687659d1c52 |
File details
Details for the file tecoradors_elunico-6.4.3-py3-none-any.whl
.
File metadata
- Download URL: tecoradors_elunico-6.4.3-py3-none-any.whl
- Upload date:
- Size: 17.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 | 92efcaf83332731384f24418badfca1a860585a51ab01d42f8928e8d1cd5a555 |
|
MD5 | fb6e0451cf58410da542fb0694654810 |
|
BLAKE2b-256 | cffebe190e9cf63a2f81cf04e7903c1147a236c9d0e269b6410c3428aa9ade9d |