flex-text-table-2.6.0
توضیحات
Fast and flexible Pyhon library for text tables.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | flex-text-table-2.6.0 |
| نام | flex-text-table |
| نسخه کتابخانه | 2.6.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Marcin Orlowski |
| ایمیل نویسنده | mail@marcinOrlowski.com |
| آدرس صفحه اصلی | https://github.com/MarcinOrlowski/python-flex-text-table/ |
| آدرس اینترنتی | https://pypi.org/project/flex-text-table/ |
| مجوز | MIT License |
# Flex Text Table
```ascii
#####.##....#####.##...##...######.#####.##...##.######...######...#....#####..##....#####
##....##....##.....##.##......##...##.....##.##....##.......##....###...##..##.##....##...
##....##....##......###.......##...##......###.....##.......##...##.##..##..##.##....##...
####..##....####.....#........##...####.....#......##.......##..##...##.#####..##....####.
##....##....##......###.......##...##......###.....##.......##..#######.##..##.##....##...
##....##....##.....##.##......##...##.....##.##....##.......##..##...##.##..##.##....##...
##....#####.#####.##...##.....##...#####.##...##...##.......##..##...##.#####..#####.#####
```
Fast and flexible Pyhon library for text tables.
[](https://badge.fury.io/py/flex-text-table)
[](https://pypi.org/project/flex-text-table/)
[](https://pypi.org/project/flex-text-table/)
[](https://opensource.org/licenses/MIT)
There's also [PHP version of ths library](https://github.com/MarcinOrlowski/php-text-table).
---
## Features
1. Simple API, easy to use,
2. Lightweight (no additional dependencies),
3. Production ready.
---
## Usage example
Simplest possible usage:
```python
from flextable.table import FlexTable # Import FlexTable root class
table = FlexTable(['ID', 'NAME', 'SCORE']) # Define table with 3 columns
table.add_rows([
[1, 'John', 12], # Add 2 rows, 3 columns each
[2, 'Tommy', 15],
])
print(table.render()) # Render table as string and print
```
would produce nice text table:
```ascii
┌────┬───────┬───────┐
│ ID │ NAME │ SCORE │
├────┼───────┼───────┤
│ 1 │ John │ 12 │
│ 2 │ Tommy │ 15 │
└────┴───────┴───────┘
```
See more usage examples in [project docs](https://github.com/MarcinOrlowski/python-flex-text-table/).
---
## License
* Written and copyrighted ©2023 by Marcin Orlowski <mail (#) marcinorlowski (.) com>
* Flex Text Table is open-sourced software licensed under
the [MIT license](http://opensource.org/licenses/MIT)
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8 | Python |
نحوه نصب
نصب پکیج whl flex-text-table-2.6.0:
pip install flex-text-table-2.6.0.whl
نصب پکیج tar.gz flex-text-table-2.6.0:
pip install flex-text-table-2.6.0.tar.gz