Skip to main content

decoratemethod

Let function decorator decorate the bound method for each instance.

Usage

lru_cache

To let each instance has their own lru cache:

from functools import lru_cache
from decoratemethod import decorate

class Foo:
    @decorate(lru_cache)
    def decorated_method(self, x):
        ...

Metadata

Release files for decoratemethod 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for decoratemethod 0.1.1
File Size Uploaded Provenance
decoratemethod-0.1.1.tar.gz 2.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for decoratemethod 0.1.1
File Interpreter ABI Platform
decoratemethod-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 5.3 kB

Release files / decoratemethod-0.1.1.tar.gz

Download URL decoratemethod-0.1.1.tar.gz
Size 2.5 kB
Tags Source
SHA-256 checksum
How to use checksums
d59d16730e9376a43312fdc6ca9d9da47b22d484b9628727c8ca2fb17ef7a1d3
BLAKE2b-256 checksum
How to use checksums
b919a193f67fa74f9b2841636a382d429e5d959b6814b5e9530701c5f7167492
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.7 CPython/3.9.6 Windows/10

Release files / decoratemethod-0.1.1-py3-none-any.whl

Download URL decoratemethod-0.1.1-py3-none-any.whl
Size 2.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
022fa6d871cfda402e64516402fa264bc8270f60707aa61f8082730de45f0152
BLAKE2b-256 checksum
How to use checksums
aa476fa3d665e5c50d6589180197702e7d1ce99a90e9ed5e76f552d1e4595d63
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.7 CPython/3.9.6 Windows/10

Security for decoratemethod 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page