Skip to main content

inspect class

Project description

Installation

$ [sudo] pip install cls

Functions

function __doc__
cls.attrs(cls) return a list with class attrs names
cls.properties(cls) return a list with class properties names

Examples

>>> import cls
>>> class CLS:
    var = "value"
    var2 = "value"

    @property
    def prop1(self):
        pass

    @property
    def prop2(self):
        pass

>>> cls.attrs(CLS)
["var","var2"]
>>> cls.properties(CLS)
["prop1","prop2"]

python-readme-generator

Project details


Download files

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

Files for cls, version 2019.4.13
Filename, size File type Python version Upload date Hashes
Filename, size cls-2019.4.13.tar.gz (1.5 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page