Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/madeindjs/writer
A class to normalize all outputs in console
https://github.com/madeindjs/writer
Last synced: 20 days ago
JSON representation
A class to normalize all outputs in console
- Host: GitHub
- URL: https://github.com/madeindjs/writer
- Owner: madeindjs
- Created: 2016-08-29T08:59:04.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2016-08-29T12:18:18.000Z (about 8 years ago)
- Last Synced: 2024-02-20T17:13:43.692Z (9 months ago)
- Language: Python
- Size: 7.81 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Writer
=======A simply class to normalize all outputs in console
Instalation
-----------### Old School
git clone https://github.com/madeindjs/writer.git
cd writter
python setup.py install### New School
pip install writer
### API usage
~~~Python
>>> from writer import Writer
>>> Writer.title('Hellow World!')
--------------------------------------------------------------------------------
Hellow World!
--------------------------------------------------------------------------------
>>> Writer.unsorted_list('hello', 'world', 'how r U?')
- hello
- world
- how r U?
>>> Writer.sorted_list('hello', 'world', 'how r U?')
0 - hello
1 - world
2 - how r U?
>>> Writer.ask_int('give me an integer!')
give me an integer! (must be an integer)? ...a
give me an integer! (must be an integer)? ...b
give me an integer! (must be an integer)? ...1
>>> Writer.event('Something hapend..')
[x] Something hapend..
>>> Writer.event('Something goes wrong..', False)
[ ] Something goes wrong..
~~~To Do
-----* add units test (I know. I should begin with this..)
* support colorsAuthor
------[Rousseau Alexandre][madeindjs]
License
-------[MIT](https://opensource.org/licenses/MIT)
[madeindjs]: https://github.com/madeindjs/