Socket
Socket
Sign inDemoInstall

common-decorators

Package Overview
Dependencies
0
Maintainers
1
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    common-decorators

Delightful Python decorators for daily use


Maintainers
1

Readme

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

Keywords

FAQs


Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc