Flex Text Table
#####.##....#####.##...##...######.#####.##...##.######...######...#....#####..##....#####
##....##....##.....##.##......##...##.....##.##....##.......##....###...##..##.##....##...
##....##....##......###.......##...##......###.....##.......##...##.##..##..##.##....##...
####..##....####.....#........##...####.....#......##.......##..##...##.#####..##....####.
##....##....##......###.......##...##......###.....##.......##..#######.##..##.##....##...
##....##....##.....##.##......##...##.....##.##....##.......##..##...##.##..##.##....##...
##....#####.#####.##...##.....##...#####.##...##...##.......##..##...##.#####..#####.#####
Fast and flexible Pyhon library for text tables.
There's also PHP version of ths library.
Features
- Simple API, easy to use,
- Lightweight (no additional dependencies),
- Production ready.
Usage example
Simplest possible usage:
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:
┌────┬───────┬───────┐
│ ID │ NAME │ SCORE │
├────┼───────┼───────┤
│ 1 │ John │ 12 │
│ 2 │ Tommy │ 15 │
└────┴───────┴───────┘
See more usage examples in project docs.
License
- Written and copyrighted ©2023 by Marcin Orlowski <mail (#) marcinorlowski (.) com>
- Flex Text Table is open-sourced software licensed under the MIT license
Metadata
Release files for flex-text-table 2.7.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| flex-text-table-2.7.0.tar.gz | 17.8 kB | Without provenance | Details for flex-text-table-2.7.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| flex_text_table-2.7.0-py3-none-any.whl | Python 3 | none | any | Details for flex_text_table-2.7.0-py3-none-any.whl |
Total release size: 43.8 kB
Release files / flex-text-table-2.7.0.tar.gz
| Download URL | flex-text-table-2.7.0.tar.gz |
|---|---|
| Size | 17.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fe9b38456b5a5b12d213f4e73d4e9d37958aef12fbc309f3cbda34512c2c5377
|
|
BLAKE2b-256 checksum How to use checksums |
a93936ef66cbe770e33139c8bee2db78950ee670b7318f3de1e4583a60c067a3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.7
|
Release files / flex_text_table-2.7.0-py3-none-any.whl
| Download URL | flex_text_table-2.7.0-py3-none-any.whl |
|---|---|
| Size | 26.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4ae2eb7fdb021f67e251165648df92bd90dc9cac16f77806801f1e1f20aca4c9
|
|
BLAKE2b-256 checksum How to use checksums |
460c9c995fdd7736f5caf2a3daeccec354871aed64ea12439da5694a3e5a80dd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.7
|
Security for flex-text-table 2.7.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.