semvec/pypi-packages huggingface dataset:
py_clui 0.0.3
Toolkit for quickly building nice looking command line interfaces

# Py-clui
> This is a Python toolkit for quickly building nice looking command line interfaces.

[![Build Status](https://travis-ci.org/hmleal/py-clui.svg?branch=master)](https://travis-ci.org/hmleal/py-clui)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black)

It also includes the following easy to use components:

* Spinners
* Gauge
* Progress

### Spinner(message, style=None)

![Picture of a spinner](https://raw.githubusercontent.com/hmleal/py-clui/master/docs/spinner.gif)

__Parameters__

* `message` - The default status text to display while the spinner is spinning.
* `style` - Array of graphical characters used to draw the spinner. By default,
  on Windows: ['|', '/', '-', '\'], on other platforms: ['◜','◠','◝','◞','◡','◟']

__Methods__

* `run()` - Show the spinner on the screen.
* `update_msg(message)` - Update the status message that follows the spinner.

__Example__

```python
from py_clui import Spinner

spinner = Spinner('Processing documents...')
spinner.run()

for x in range(100):
    spinner.update_msg('{0} Processed documents'.format(x))
    spinner.run()
```

### Gauge(value, max_value, width, danger_zone, suffix=None)

![Picture of a gauge](https://raw.githubusercontent.com/hmleal/py-clui/master/docs/gauge.png)

Draw a basic horizontal gauge to the screen.

Parameters

* `value`
* `max_value`
* `width`
* `danger_zone`
* `suffix`

Example

```python
from py_clui import gauge

total = 100
free = 30

used = total - free

print(gauge(used, total, 20, total * 0.8, 'Used memory'))
```

### Progress(width=20)

![Picture of a progress](https://raw.githubusercontent.com/hmleal/py-clui/master/docs/progress.png)

__Parameters__

* `width` - The width in characters of progress_bar

__Methods__

* `update(percent)` - Return a progress bar width a this percente filled.

__Example__

```python
from py_clui import Progress

progress = Progress(20)

print(progress.update(.5))
```

## Motivation
  1. [clui](https://github.com/nathanpeck/clui) makes NodeJS even more sexy. Python needed something like it.
formatclass 1.0.2
formatclass(cls,...) - format class representation
Keywords: format,class,inspect

.. image:: https://img.shields.io/pypi/pyversions/formatclass.svg?maxAge=86400
    :target: https://pypi.org/pypi/formatclass/

|

.. image:: https://www.codefactor.io/repository/github/looking-for-a-job/formatclass.py/badge
    :target: https://www.codefactor.io/repository/github/looking-for-a-job/formatclass.py
.. image:: https://codeclimate.com/github/looking-for-a-job/formatclass.py/badges/gpa.svg
    :target: https://codeclimate.com/github/looking-for-a-job/formatclass.py
.. image:: https://img.shields.io/scrutinizer/g/looking-for-a-job/formatclass.py.svg
    :target: https://scrutinizer-ci.com/g/looking-for-a-job/formatclass.py/
.. image:: https://bettercodehub.com/edge/badge/looking-for-a-job/formatclass.py?branch=master
    :target: https://bettercodehub.com/results/looking-for-a-job/formatclass.py
.. image:: https://sonarcloud.io/api/project_badges/measure?project=formatclass.py&metric=code_smells
    :target: https://sonarcloud.io/dashboard?id=formatclass.py

Install
```````


.. code:: bash

    `[sudo] pip install formatclass`

Usage
`````


.. code:: python

    >>> from formatclass import formatclass
    
    >>> formatclass(cls)


Examples
````````


.. code:: python

    >>> class Cls(object): pass
    >>> class Cls2(Cls): 
        def __init__(self,arg,arg2="default"): pass
    
    # default
    >>> formatclass(CLS2)
    'Cls2(__main__.Cls)(arg, arg2="default")'
    
    # args - False/True (default True)
    >>> formatclass(CLS2,args=False)
    'Cls2(__main__.Cls)'
    
    # fullname - False/True (default True)
    >>> formatclass(CLS2,fullname=False)
    'Cls2(Cls)(arg, arg2="default")'



----

.. image:: https://img.shields.io/github/followers/looking-for-a-job.svg?style=social&label=Follow&maxAge=86400
    :target: https://github.com/looking-for-a-job

.. image:: https://img.shields.io/github/stars/looking-for-a-job/formatclass.py.svg?style=social&label=Stars&maxAge=86400
    :target: https://github.com/looking-for-a-job/formatclass.py

.. image:: https://img.shields.io/github/issues/looking-for-a-job/formatclass.py.svg?maxAge=86400
    :target: https://github.com/looking-for-a-job/formatclass.py/issues