Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

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

Project description

https://img.shields.io/badge/Language-Python-blue.svg?style=plastic

https://landscape.io/github/russianidiot/getproperties.py/master/landscape.svg?style=flat https://scrutinizer-ci.com/g/russianidiot/getproperties.py/badges/quality-score.png?b=master

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 github_follow github_issues

Project details


Release history Release notifications

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 Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page