Skip to main content

Summary

PyPI package version Supported Python versions Supported Python implementations CI status of Linux/macOS/Windows Test coverage: coveralls

pytablewriter-altrow-theme is a pytablewriter plugin to provide a theme that colored rows alternatively.

Installation

pip install pytablewriter-altrow-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="altrow",
)
writer.write_table()
Output:
https://github.com/thombashi/pytablewriter-altrow-theme/blob/master/ss/ptw-altrow-theme_example_default.png

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("altrow", color="yellow")

writer.write_table()
Output:
https://github.com/thombashi/pytablewriter-altrow-theme/blob/master/ss/ptw-altrow-theme_example_yellow.png

Other Examples

Dependencies

Metadata

Release files for pytablewriter-altrow-theme 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pytablewriter-altrow-theme 0.2.0
File Size Uploaded
pytablewriter-altrow-theme-0.2.0.tar.gz 6.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pytablewriter-altrow-theme 0.2.0
File Interpreter ABI Platform
pytablewriter_altrow_theme-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 11.1 kB

Release files / pytablewriter-altrow-theme-0.2.0.tar.gz

Download URL pytablewriter-altrow-theme-0.2.0.tar.gz
Size 6.4 kB
Tags Source
SHA-256 checksum
How to use checksums
f30617d423259a02081182677bc0abefe0a91015da44b71f7c0f8324dc480a4d
BLAKE2b-256 checksum
How to use checksums
9d8d144c978726e61b0b30a065ce3cb2ed9810fa08a8102a59029b447272c9e4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release files / pytablewriter_altrow_theme-0.2.0-py3-none-any.whl

Download URL pytablewriter_altrow_theme-0.2.0-py3-none-any.whl
Size 4.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d508866d2904130f6d3164067386d8442fb22ab4bf1a14f2c2fdd7083ec81084
BLAKE2b-256 checksum
How to use checksums
2f18f55b6f7bce415245eb98b5b3162220158ae767040beeda3da538138fb652
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page