Skip to content

gaccardo/pybles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

=========== Pybles

This is a module designed to make table representations very easy and fast. This is how to use it:

#!/usr/bin/env python

import pybles

>>> PB = pybles.Pyble()
>>> PB.set_header(['Product', 'Cost'])
>>> PB.add_line(['PC', 1000])
>>> PB.add_line(['Mouse', 10])
>>> PB.add_separator()
>>> PB.add_line(['TOTAL', 1010])
>>> PB.show_table()
----------------------
| PRODUCT     | COST |
----------------------
| PC          | 1000 |
| Mouse       | 10   |
----------------------
| TOTAL       | 1010 |
----------------------

About

Module to represent tables in the terminal using python

Resources

License

GPL-2.0, GPL-3.0 licenses found

Licenses found

GPL-2.0
LICENSE
GPL-3.0
LICENSE.txt

Stars

Watchers

Forks

Packages

No packages published

Languages