``pytablewriter-altcol-theme`` is a
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
Close
Hashes for pytablewriter_altcol_theme-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a9719ffe000174eb78a350050afd3994fc6eb4553e7cbd65cb7931172be52eb |
|
MD5 | a4455cc0138850a334bce56fff3cbcac |
|
BLAKE2b-256 | 16723d69f613cfd2adf46fca21f341338dd1fc7003beb039ba06668c91a833fb |
Close
Hashes for pytablewriter_altcol_theme-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93e87a58f08a51bf51c0de42bc3bc3efc099b2d89e39a146057ceb0ccdccfa78 |
|
MD5 | e1cea4fbfac055a9fc1313d40f0b866c |
|
BLAKE2b-256 | ba0ddb0b6bbd8675e5d85fb1652fac95a66ae4b94f1309443384b2362d1e2a84 |