pytablewriter-altcol-theme is a pytablewriter plugin to provide a terminal theme.
Project description
Summary
pytablewriter-altcol-theme is a pytablewriter plugin to provide a terminal theme.
Installation
pip install pytablewriter-altcol-theme
Usage
- Sample Code:
import pytablewriter as ptw writer = ptw.TableWriterFactory.create_from_format_name( "markdown", headers=["INT", "STR"], value_matrix=[ [1, "hoge"], [2, "foo"], [3, "bar"], ], margin=1, theme="altcol", ) writer.write_table()
You can change the color of the theme by using the color parameter:
- Sample Code:
import pytablewriter as ptw writer = ptw.TableWriterFactory.create_from_format_name( "markdown", headers=["INT", "STR"], value_matrix=[ [1, "hoge"], [2, "foo"], [3, "bar"], ], margin=1, ) writer.set_theme("altcol", color="yellow") writer.write_table()
Other Examples
Generate HTML example: source file and the output
Dependencies
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pytablewriter-altcol-theme-0.1.1.tar.gz
.
File metadata
- Download URL: pytablewriter-altcol-theme-0.1.1.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 20e052c42150726d8c6b4196128622a575293e99b5ac9ee92a7b971dfac7ab25 |
|
MD5 | 313a989c7ae1b43113dced566d5e0d78 |
|
BLAKE2b-256 | ad68cca305c2c6e783702695c857181b5b1d973f40dda660d621b8944db52a3c |
File details
Details for the file pytablewriter_altcol_theme-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: pytablewriter_altcol_theme-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b35b0aa1f0c351552bdf538b8f5a582d2141acc70c4eb6ffecf561db59da899b |
|
MD5 | cdc1fa1a9f55b4aa31923b8463891439 |
|
BLAKE2b-256 | eadac91ffeff4e84a08aed10d95a40594e088fa1901058c238679c51660d5027 |