Cached Property
Provides a thread safe @cached_property decorator that can be used
in place of the built in @property decorator for properties that are
expensive to compute or that aren't expected to change over the lifetime
of an instance.
Usage
>>> from cached_property import cached_property
>>> class MyClass:
... @cached_property
... def prop(self):
... return 2 ** 42
...
>>> instance = MyClass()
>>> "prop" in instance.__dict__
False
>>> instance.prop # value computed and cached
4398046511104
>>> "prop" in instance.__dict__
True
>>> instance.prop # cached value returned directly
4398046511104
Metadata
Release files for com.wyattbaldwin.cached-property 1.0.post2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| com.wyattbaldwin.cached_property-1.0.post2.tar.gz | 2.2 kB | Without provenance | Details for com.wyattbaldwin.cached_property-1.0.post2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| com.wyattbaldwin.cached_property-1.0.post2-py3-none-any.whl | Python 3 | none | any | Details for com.wyattbaldwin.cached_property-1.0.post2-py3-none-any.whl |
Total release size: 5.1 kB
Release files / com.wyattbaldwin.cached_property-1.0.post2.tar.gz
| Download URL | com.wyattbaldwin.cached_property-1.0.post2.tar.gz |
|---|---|
| Size | 2.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c807fa7266a47708e3af251dcccb856687830e09e462fd69c9aa8cddee8618e3
|
|
BLAKE2b-256 checksum How to use checksums |
ec24ef9c184cc099d2375c1ebc74cc8573ae907e78589791af0ea01f02f78ca8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/51.1.0.post20201221 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0
|
Release files / com.wyattbaldwin.cached_property-1.0.post2-py3-none-any.whl
| Download URL | com.wyattbaldwin.cached_property-1.0.post2-py3-none-any.whl |
|---|---|
| Size | 3.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ef5c30bf5d3c103a6a2c55e234515d08a4f941155fb1f64c7f92736a119280b3
|
|
BLAKE2b-256 checksum How to use checksums |
b21638365245b20885081f67a2f6766130b5f1d059719b06ccfdcbe612c0f74d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/51.1.0.post20201221 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0
|
Security for com.wyattbaldwin.cached-property 1.0.post2
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.