skip to navigation
skip to content

formatvalue 0.0.29

formatvalue(value) function - required for inspect.formatargspec, inspect.formatargvalues

.. 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/formatvalue.svg
:target: https://pypi.org/pypi/formatvalue
.. image:: https://img.shields.io/pypi/v/formatvalue.svg
:target: https://pypi.org/pypi/formatvalue
|
.. image:: https://api.codacy.com/project/badge/Grade/762900f0be9d405683d1fbdfac6c418b
:target: https://www.codacy.com/app/russianidiot/formatvalue-py
.. image:: https://codeclimate.com/github/russianidiot/formatvalue.py/badges/gpa.svg
:target: https://codeclimate.com/github/russianidiot/formatvalue.py
.. image:: https://landscape.io/github/russianidiot/formatvalue.py/master/landscape.svg?style=flat
:target: https://landscape.io/github/russianidiot/formatvalue.py
.. image:: https://scrutinizer-ci.com/g/russianidiot/formatvalue.py/badges/quality-score.png?b=master
:target: https://scrutinizer-ci.com/g/russianidiot/formatvalue.py/
|
.. image:: https://scrutinizer-ci.com/g/russianidiot/formatvalue.py/badges/build.png?b=master
:target: https://scrutinizer-ci.com/g/russianidiot/formatvalue.py/
.. image:: https://semaphoreci.com/api/v1/russianidiot/formatvalue-py/branches/master/badge.svg
:target: https://semaphoreci.com/russianidiot/formatvalue-py
.. image:: https://api.travis-ci.org/russianidiot/formatvalue.py.svg?branch=master
:target: https://travis-ci.org/russianidiot/formatvalue.py/
.. image:: https://app.wercker.com/status/36d3335a74479d8df3dac35377cdab1e/s/master
:target: https://app.wercker.com/russianidiot/formatvalue.py
Install
```````
.. code:: bash
`[sudo] pip install formatvalue`
Usage
`````
.. code:: python
>>> from formatvalue import formatvalue
>>> formatvalue(value)
Examples
````````
.. code:: python
>>> formatvalue(None)
'=None'
>>> formatvalue("value")
'="value"'
>>> class CLS(object): pass
>>> formatvalue(CLS)
'=__main__.CLS'
>>> formatvalue(CLS())
'=<__main__.CLS instance>'
>>> formatvalue(formatvalue)
'=formatvalue.formatvalue'
```
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/formatvalue.py.svg
:target: https://github.com/russianidiot/formatvalue.py/issues  
File Type Py Version Uploaded on Size
formatvalue-0.0.29.tar.gz (md5) Source 2017-12-07 2KB