Skip to main content

A Simple ASCII Table Generator

Project description

Home Page: https://github.com/mitnk/asciicells

Install

$ pip install asciicells

High level usages

After installed, an executable asciicells would available for use. If not, please replace following examples with python -m asciicells.

$ asciicells -f demo.csv

+-----+---------+-----------+
| No. | sample  | name      |
|     |         |           |
| 1   | a,b,c   | lettes    |
|     |         |           |
| 2   | + - x / | operators |
+-----+---------+-----------+

With header:

$ asciicells -f demo.csv -H

+-----+---------+-----------+
| No. | sample  | name      |
+-----+---------+-----------+
| 1   | a,b,c   | lettes    |
|     |         |           |
| 2   | + - x / | operators |
+-----+---------+-----------+

Also support TSV: asciicells -f demo.tsv -t -H

Low level usages

>>> import asciicells
>>> ac = asciicells.AsciiCells()
>>> L = [['a', 'b'], ['1', '2']]
>>> print(ac.render(L))
+---+---+
| a | b |
|   |   |
| 1 | 2 |
+---+---+

More information: https://github.com/mitnk/asciicells

Project details


Release history Release notifications

This version
History Node

0.9.2

History Node

0.9.1

History Node

0.9.0

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
asciicells-0.9.2.tar.gz (3.9 kB) Copy SHA256 hash SHA256 Source None Nov 21, 2015

Supported by

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