Skip to main content

A simple package for printing text to the terminal in columns

Example

from print_columns import print_columns


if __name__ == "__main__":
    lorem_ipsum = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
    value = 3
    notes = "This is Lorem Ipsum. It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout."

    print_columns(
        string=[lorem_ipsum, str(value), notes],
        column_widths=[50, 2, 50],
        colors=["red", "green", "blue"],
    )

See the examples/ folder for more.

Metadata

Release files for print-columns 1.0.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 print-columns 1.0.0
File Size Uploaded Provenance Actions
print_columns-1.0.0.tar.gz 1.6 kB Without provenance Details for print_columns-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for print-columns 1.0.0
File Interpreter ABI Platform Actions
print_columns-1.0.0-py3-none-any.whl Python 3 none any Details for print_columns-1.0.0-py3-none-any.whl

Total release size: 3.5 kB

Security for print-columns 1.0.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.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

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