Skip to main content

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

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/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

Project details


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
formatvalue-0.0.25.tar.gz (2.5 kB) Copy SHA256 hash SHA256 Source None Dec 6, 2017

Supported by

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