Skip to main content

Pylsy is a simple library that draws tables in the Terminal.

Project description


[![Build Status](](
[![PyPI version](](

Pylsy is a simple Python library for drawing tables in the terminal/console. Just two lines of code!



pip install pylsy

Sample Usage

# In the very first, pylsy needs to be imported
from pylsy import pylsytable

# First, you need to create a list, which will contain the table attributes:

# Then feed it to PylsyTable to create the table object:

# Now populate the attributes with values. Prepare a list for the names:

# Add the data into it:

# If you want to insert some extra values to the same column,
# you can pass a list as a parameter:

# Just a single value is OK too:
table.append_data("name",u"小明") # Note: everything will be coerced to unicode strings.

# Now with all your attributes and values, we can create our table:

# With Python 2 things are a bit trickier, since str() is ascii-only and our dear 小明 requires unicode:
print(table.__str__()) # The raw unicode-enabled string. Think as `table.__unicode__()`.


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
Pylsy-3.6.tar.gz (3.4 kB) Copy SHA256 hash SHA256 Source None Apr 5, 2018

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