Skip to main content

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

MIT

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

common-decorators-0.0.1.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

common_decorators-0.0.1-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

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

Hashes for common-decorators-0.0.1.tar.gz
Algorithm Hash digest
SHA256 39cb2c0083a28ee6c11d095a98ad031a50903abe0c71ab7f8eeaa580576083f0
MD5 6d4dc1c85cae034596f10d48c5bc7b1b
BLAKE2b-256 4fe2dc5f35ff6bf0c72e00ffe84644bec5f0e650f2440cefde9ca3e419eca48c

See more details on using hashes here.

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

Hashes for common_decorators-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 22c922ddf52f3d1fb25c372459a5b8f1e33a45bbec9e38992db3b98c0268bb15
MD5 83ccc11687da702221fd0bb2df8283f3
BLAKE2b-256 347cd597e2f9bc69cd69002b9ce668da3be81f36cf4162d4055c918296b5cd2b

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