Skip to main content

Pimp your Class/Property/Methods with useful functionality

Project description

Pimp My Class

This library provides base classes to enable useful behavior in Python Objects.

The central purpose of the library is to extend python properties to allow:

  • get/set logging.

  • get/set timing, success and failure stats.

  • async locking.

  • get/set coercion and conversion.

  • value cache

  • prevent unnecessary set.

  • read once properties

But most importantly, it allows owner specific configurations. Properties are class attributes, and therefore it is difficult to have a property which is, for exampled cached, in an object but not cached in another instance of the same class.

The library also provides DictProperties: that is properties that can be accessed by key; and also methods!

Each capability is isolated in individual classes allowing you to pick only what you need.

https://github.com/hgrecco/pimpmyclass

Authors

Hernan E. Grecco <hernan.grecco@gmail.com>

Lantz-drivers Changelog

0.1.1 (2018-03-28)

  • Fixed check_signature when params is empty

0.1 (2018-03-23)

  • first public release.

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

pimpmyclass-0.1.1.tar.gz (13.7 kB view details)

Uploaded Source

File details

Details for the file pimpmyclass-0.1.1.tar.gz.

File metadata

  • Download URL: pimpmyclass-0.1.1.tar.gz
  • Upload date:
  • Size: 13.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pimpmyclass-0.1.1.tar.gz
Algorithm Hash digest
SHA256 3c177161a53fe980657e2d5fab9a935237ea136f0951b06e16f9817c6cc61560
MD5 6498c41cf8e51d70371dec66396556f7
BLAKE2b-256 0476c16787bd5d761fd15ee2a79123f72a84649b02aaab35a03986059c2594cb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page