Skip to main content

getclass(object) function - get object class

Project description

.. README generated with readmemako.py (github.com/russianidiot/readme-mako.py) and .README dotfiles (github.com/russianidiot-dotfiles/.README)
.. image:: https://img.shields.io/badge/Language-Python-blue.svg?style=plastic
:target: none
.. image:: https://img.shields.io/pypi/pyversions/getclass.svg
:target: https://pypi.org/pypi/getclass
.. image:: https://img.shields.io/pypi/v/getclass.svg
:target: https://pypi.org/pypi/getclass
|
.. image:: https://api.codacy.com/project/badge/Grade/1c79537b06ba4691a596524f01b6059c
:target: https://www.codacy.com/app/russianidiot/getclass-py
.. image:: https://codeclimate.com/github/russianidiot/getclass.py/badges/gpa.svg
:target: https://codeclimate.com/github/russianidiot/getclass.py
.. image:: https://landscape.io/github/russianidiot/getclass.py/master/landscape.svg?style=flat
:target: https://landscape.io/github/russianidiot/getclass.py
.. image:: https://scrutinizer-ci.com/g/russianidiot/getclass.py/badges/quality-score.png?b=master
:target: https://scrutinizer-ci.com/g/russianidiot/getclass.py/
|
.. image:: https://scrutinizer-ci.com/g/russianidiot/getclass.py/badges/build.png?b=master
:target: https://scrutinizer-ci.com/g/russianidiot/getclass.py/
.. image:: https://semaphoreci.com/api/v1/russianidiot/getclass-py/branches/master/badge.svg
:target: https://semaphoreci.com/russianidiot/getclass-py
.. image:: https://api.travis-ci.org/russianidiot/getclass.py.svg?branch=master
:target: https://travis-ci.org/russianidiot/getclass.py/
.. image:: https://app.wercker.com/status/3c78f28296659390c0cee32bc5a9e573/s/master
:target: https://app.wercker.com/russianidiot/getclass.py
Install
```````
.. code:: bash
`[sudo] pip install getclass`
Usage
`````
.. code:: python
>>> from getclass import getclass
>>> getclass(obj)
Examples
````````
.. code:: python
>>> class CLS:
def method(self): pass
@property
def property(self): pass
@classmethod
def classmethod(cls,x): pass
@staticmethod
def staticmethod(x): pass
def __str__(self): pass
>>> getclass(CLS())
<class __main__.CLS>
>>> getclass(CLS.method)
<class __main__.CLS>
>>> getclass(CLS.property)
<class __main__.CLS>
>>> getclass(CLS.classmethod)
<class __main__.CLS>
>>> getclass(CLS.staticmethod)
<class __main__.CLS>
Feedback |github_follow| |github_issues|
.. |github_follow| image:: https://img.shields.io/github/followers/russianidiot.svg?style=social&label=Follow
:target: https://github.com/russianidiot
.. |github_issues| image:: https://img.shields.io/github/issues/russianidiot/getclass.py.svg
:target: https://github.com/russianidiot/getclass.py/issues

Project details


Release history Release notifications

History Node

1.0.3

History Node

1.0.2

History Node

1.0.1

History Node

1.0.0

History Node

0.0.38

History Node

0.0.37

History Node

0.0.36

History Node

0.0.35

History Node

0.0.34

History Node

0.0.33

This version
History Node

0.0.31

History Node

0.0.30

History Node

0.0.29

History Node

0.0.28

History Node

0.0.26

History Node

0.0.21

History Node

0.0.20

History Node

0.0.19

History Node

0.0.18

History Node

0.0.17

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.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
getclass-0.0.31.tar.gz (2.6 kB) Copy SHA256 hash SHA256 Source None Dec 7, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page