Delightful Python decorators for daily use
Project description
common-decorators
Delightful Python decorators for daily use
Install
$ pip install common-decorators
Usage
from common_decorators import (
lazy
)
@lazy
Defines a getter property and will assign the attribute as a normal value after the first get
class Foo:
@lazy
def bar(self):
return theVeryHeavyCalculation()
foo = Foo()
print(foo.bar)
License
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file common-decorators-0.0.1.tar.gz.
File metadata
- Download URL: common-decorators-0.0.1.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
39cb2c0083a28ee6c11d095a98ad031a50903abe0c71ab7f8eeaa580576083f0
|
|
| MD5 |
6d4dc1c85cae034596f10d48c5bc7b1b
|
|
| BLAKE2b-256 |
4fe2dc5f35ff6bf0c72e00ffe84644bec5f0e650f2440cefde9ca3e419eca48c
|
File details
Details for the file common_decorators-0.0.1-py3-none-any.whl.
File metadata
- Download URL: common_decorators-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
22c922ddf52f3d1fb25c372459a5b8f1e33a45bbec9e38992db3b98c0268bb15
|
|
| MD5 |
83ccc11687da702221fd0bb2df8283f3
|
|
| BLAKE2b-256 |
347cd597e2f9bc69cd69002b9ce668da3be81f36cf4162d4055c918296b5cd2b
|