Skip to main content

pytablewriter-altcol-theme is a pytablewriter plugin to provide a terminal theme.

Project description

Summary

CI status of Linux/macOS/Windows Test coverage: coveralls CodeQL

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

Dependencies

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytablewriter-altcol-theme-0.1.1.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file pytablewriter-altcol-theme-0.1.1.tar.gz.

File metadata

File hashes

Hashes for pytablewriter-altcol-theme-0.1.1.tar.gz
Algorithm Hash digest
SHA256 20e052c42150726d8c6b4196128622a575293e99b5ac9ee92a7b971dfac7ab25
MD5 313a989c7ae1b43113dced566d5e0d78
BLAKE2b-256 ad68cca305c2c6e783702695c857181b5b1d973f40dda660d621b8944db52a3c

See more details on using hashes here.

File details

Details for the file pytablewriter_altcol_theme-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for pytablewriter_altcol_theme-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b35b0aa1f0c351552bdf538b8f5a582d2141acc70c4eb6ffecf561db59da899b
MD5 cdc1fa1a9f55b4aa31923b8463891439
BLAKE2b-256 eadac91ffeff4e84a08aed10d95a40594e088fa1901058c238679c51660d5027

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page