Skip to main content

A small collection of decorators I like to use often

Project description

Tecoradors

Python decorators that I like to use a lot.

Find the github repo here

Find the pypi package here

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


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.2.tar.gz (18.4 kB view details)

Uploaded Source

Built Distribution

tecoradors_elunico-6.4.2-py3-none-any.whl (17.8 kB view details)

Uploaded Python 3

File details

Details for the file tecoradors_elunico-6.4.2.tar.gz.

File metadata

  • Download URL: tecoradors_elunico-6.4.2.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

Hashes for tecoradors_elunico-6.4.2.tar.gz
Algorithm Hash digest
SHA256 dc69f30bcf00e65aa533a0abe21fd985de4aed70277b79830d4cfeb9c89811bf
MD5 caac52ecb684830d2264119434e4262a
BLAKE2b-256 1f4804715e20f5def109c1b153259bd56888b99bb9cd699fbd650f9e084c111c

See more details on using hashes here.

File details

Details for the file tecoradors_elunico-6.4.2-py3-none-any.whl.

File metadata

File hashes

Hashes for tecoradors_elunico-6.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c7260c32f859f9f657f2784937bfe28e840600e86ab2add6c35c37d9a6fc7eaa
MD5 e30ed2cdddbe7cff5efec249571e2a0b
BLAKE2b-256 9c51dc18c703c329af6febf91b6d5b6a6521c370244f4e67e275259bc6584784

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page