asciicells-0.9.2
توضیحات
A Simple ASCII Table Generator
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | asciicells-0.9.2 |
| نام | asciicells |
| نسخه کتابخانه | 0.9.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | mitnk |
| ایمیل نویسنده | w@mitnk.com |
| آدرس صفحه اصلی | https://github.com/mitnk/asciicells |
| آدرس اینترنتی | https://pypi.org/project/asciicells/ |
| مجوز | MIT |
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
نحوه نصب
نصب پکیج whl asciicells-0.9.2:
pip install asciicells-0.9.2.whl
نصب پکیج tar.gz asciicells-0.9.2:
pip install asciicells-0.9.2.tar.gz