Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

getproperties(cls,...) function - get class properties

Project Description


Usage

from getproperties import *

class CLS:
    @property
    def property(self): pass
    @property
    def property2(self): pass

class CLS2(CLS):
    # property  - inherited
    @property
    def property2(self): pass # overloaded
    @property
    def new_property(self): pass # new

>>> getproperties(CLS)
[<property object at ...>, ...]

# include pattern(s)
getproperties(CLS,include="pattern*") # wildcard
getproperties(CLS,include="pattern") # static name
getproperties(CLS,include=["pattern1*","pattern2*"]) # few patterns

# exclude pattern(s), same as include
getproperties(CLS,exclude=...)

getproperties(CLS,_=False) # exclude _private

getproperties(CLS2,inherited=False) # exclude inherited from parent class properties
getproperties(CLS2,new=False) # exclude new properties
getproperties(CLS2,overloaded=False) # exclude overloaded properties

Feedback

Release History

This version
History Node

0.0.16

History Node

0.0.15

History Node

0.0.14

History Node

0.0.13

History Node

0.0.12

History Node

0.0.11

History Node

0.0.10

History Node

0.0.9

History Node

0.0.8

History Node

0.0.7

History Node

0.0.6

History Node

0.0.5

History Node

0.0.4

History Node

0.0.2

History Node

0.0.1

History Node

0.0.0

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
getproperties-0.0.16.tar.gz
(1.9 kB) Copy SHA256 Hash SHA256
Source None Jun 10, 2017

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers DreamHost DreamHost Log Hosting