Skip to main content

A cross-platform data pretty printer that uses column styling to maximize viewer enjoyment. Supports CSV, Parquet, Pandas, and Polars DataFrames.

Project description

Tidy Viewer Py

Beautiful terminal table formatting powered by Rust. A Python package that provides fast, feature-rich table pretty-printing with automatic column width optimization, data type detection, and gorgeous color themes.

Features

  • 🚀 Blazing fast - Rust-powered performance
  • 🎨 Beautiful themes - Nord, Gruvbox, Dracula, One Dark, and more
  • 📊 Smart formatting - Automatic column width optimization
  • 🔢 Type detection - Intelligent handling of numbers, dates, and missing values
  • 📁 Multiple formats - CSV, Parquet, and pandas DataFrames
  • 🌈 Colored output - Customizable color themes
  • 📏 Configurable - Fine-tune every aspect of the output

Installation

pip install tidy-viewer-py

Quick Start

CSV File Pretty Printing

import tidy_viewer_py as tv
import pandas as pd
url = "https://raw.githubusercontent.com/mwaskom/seaborn-data/master/iris.csv"
pd.read_csv(url).to_csv("iris.csv", index=False)  # Save to csv for demo
filename = "iris.csv"
tv.print_csv(filename)

Pandas DataFrames Pretty Printing

import pandas as pd
import tidy_viewer_py as tv
df = pd.read_csv(filename)
tv.print_dataframe(df)

Polars DataFrames Pretty Printing

import polars as pl

df_pl = pl.read_csv(filename)
tv.print_polars_dataframe(df_pl)

Method Chaining API

import tidy_viewer_py as tv

tv.tv().color_theme("gruvbox").max_rows(10).print_dataframe(df)

Configuration Options

options = tv.FormatOptions(
    # Display options
    max_rows=25,              # Maximum rows to display (None for all)
    max_col_width=20,         # Maximum column width
    min_col_width=2,          # Minimum column width
    
    # Styling
    use_color=True,           # Enable/disable colored output
    color_theme="nord",       # Color theme
    
    # Data formatting
    delimiter=",",            # CSV delimiter
    significant_figures=3,    # Number of significant figures
    preserve_scientific=False,# Preserve scientific notation
    max_decimal_width=13,     # Max width before scientific notation
    
    # Table elements
    no_dimensions=False,      # Hide table dimensions
    no_row_numbering=False,   # Hide row numbers
    title="My Table",         # Table title
    footer="End of data",     # Table footer
)

Color Themes

Available themes:

  • nord (default) - Arctic, north-bluish color palette
  • gruvbox - Retro groove color scheme
  • dracula - Dark theme with vibrant colors
  • one_dark - Atom One Dark inspired
  • solarized_light - Precision colors for readability

Building from Source

Requirements:

  • Python 3.8+
  • Rust 1.70+
  • uv (recommended) or pip
git clone https://github.com/yourusername/tidy-viewer-py
cd tidy-viewer-py
uv pip install .

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

tidy_viewer_py-0.2.92-cp312-cp312-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.12Windows x86-64

tidy_viewer_py-0.2.92-cp312-cp312-manylinux_2_34_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

tidy_viewer_py-0.2.92-cp312-cp312-macosx_11_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

tidy_viewer_py-0.2.92-cp311-cp311-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.11Windows x86-64

tidy_viewer_py-0.2.92-cp311-cp311-manylinux_2_34_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.34+ x86-64

tidy_viewer_py-0.2.92-cp311-cp311-macosx_11_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

tidy_viewer_py-0.2.92-cp310-cp310-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.10Windows x86-64

tidy_viewer_py-0.2.92-cp310-cp310-manylinux_2_34_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.34+ x86-64

tidy_viewer_py-0.2.92-cp310-cp310-macosx_11_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

tidy_viewer_py-0.2.92-cp39-cp39-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.9Windows x86-64

tidy_viewer_py-0.2.92-cp39-cp39-manylinux_2_34_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.34+ x86-64

tidy_viewer_py-0.2.92-cp39-cp39-macosx_11_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

tidy_viewer_py-0.2.92-cp38-cp38-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.8Windows x86-64

tidy_viewer_py-0.2.92-cp38-cp38-manylinux_2_34_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.34+ x86-64

tidy_viewer_py-0.2.92-cp38-cp38-macosx_11_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

Details for the file tidy_viewer_py-0.2.92-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for tidy_viewer_py-0.2.92-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c91dbb7dbaa4bfc051bd3fc4f2760b4df0536556478e5805496bf193a18fe318
MD5 619cd2b81b586ea5b760fb0db47fdfa3
BLAKE2b-256 86355302f00893b8e3ccd454ccb2316f3ac6bb401281239e4f82b18d55d7d9a6

See more details on using hashes here.

Provenance

The following attestation bundles were made for tidy_viewer_py-0.2.92-cp312-cp312-win_amd64.whl:

Publisher: py-release.yml on alexhallam/tv

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tidy_viewer_py-0.2.92-cp312-cp312-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for tidy_viewer_py-0.2.92-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 f902f7889f30e1805891363a21609eb521e427280a4eb33dd99fb2c5823a6840
MD5 9fa556b45fcc54f378793caa4c47f696
BLAKE2b-256 a23171a9548ce9df48f62411bea59a64bb6aacfa11935e4d4713484a3c3da482

See more details on using hashes here.

Provenance

The following attestation bundles were made for tidy_viewer_py-0.2.92-cp312-cp312-manylinux_2_34_x86_64.whl:

Publisher: py-release.yml on alexhallam/tv

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tidy_viewer_py-0.2.92-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for tidy_viewer_py-0.2.92-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 95493dbfc8f7e5e991a92efbe360e9268e66e43e16e057c114b176eacc87431b
MD5 c14836a418a6fc0e75b574ce399c85ed
BLAKE2b-256 4ecbf0fac79e5dfecee57ae690f557fd551f3fc95a223ca995a57a305c15ea62

See more details on using hashes here.

Provenance

The following attestation bundles were made for tidy_viewer_py-0.2.92-cp312-cp312-macosx_11_0_arm64.whl:

Publisher: py-release.yml on alexhallam/tv

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tidy_viewer_py-0.2.92-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for tidy_viewer_py-0.2.92-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 1de71ad347f0795ed578203408327d4dd52793cef387c804c536f6f21d07a28a
MD5 e900d25f4b9751f371a5ad4eea94d416
BLAKE2b-256 6d9da84549d461dc3a3345d103ef217295cb7d90a0504098d794b803e434c824

See more details on using hashes here.

Provenance

The following attestation bundles were made for tidy_viewer_py-0.2.92-cp311-cp311-win_amd64.whl:

Publisher: py-release.yml on alexhallam/tv

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tidy_viewer_py-0.2.92-cp311-cp311-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for tidy_viewer_py-0.2.92-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 61bd29965e7b8b8821535ae7071fdb7ba38c6597bc0a9b10a5b1ee1ee21944d7
MD5 0bc8633c512f4a908edf66db341a0ccd
BLAKE2b-256 37e8c19c56fc4b36b1b3cbcba3e03dbaf39312b75281e5c33e9af3b887cc115b

See more details on using hashes here.

Provenance

The following attestation bundles were made for tidy_viewer_py-0.2.92-cp311-cp311-manylinux_2_34_x86_64.whl:

Publisher: py-release.yml on alexhallam/tv

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tidy_viewer_py-0.2.92-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for tidy_viewer_py-0.2.92-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 502ef4ca3ed3994c3eb411c21f67ecb3715ad7cc8cccac33094c79fe3ac98dbc
MD5 e5e082e38972b83db0c121858806f14f
BLAKE2b-256 38daa4c0e43671091192bbc7c461f1df05f4c971f9eddb1f15bfb4a37d59ce80

See more details on using hashes here.

Provenance

The following attestation bundles were made for tidy_viewer_py-0.2.92-cp311-cp311-macosx_11_0_arm64.whl:

Publisher: py-release.yml on alexhallam/tv

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tidy_viewer_py-0.2.92-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for tidy_viewer_py-0.2.92-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 5b21c28b454bf3db63086b3e1197f238c9ddf680244861085b737c433aff623f
MD5 a2e62f45d9d2b52f7c7371ca0cf4b114
BLAKE2b-256 0b8dd5c17490231b26c36f380ef2fe209f233997c7bd9e5a94fbeeff748297be

See more details on using hashes here.

Provenance

The following attestation bundles were made for tidy_viewer_py-0.2.92-cp310-cp310-win_amd64.whl:

Publisher: py-release.yml on alexhallam/tv

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tidy_viewer_py-0.2.92-cp310-cp310-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for tidy_viewer_py-0.2.92-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 3e3741a5d3a7e3ea1b8d2e7c65b569934f8258855980dd57e04cd14de3e6fb7b
MD5 edba99878c98a9fd0f9659b41915e6c1
BLAKE2b-256 563dd0ffeb4ae611a4cebe28b4b310d3f78e2a805b8edb57f1c9abbbd7ac42d3

See more details on using hashes here.

Provenance

The following attestation bundles were made for tidy_viewer_py-0.2.92-cp310-cp310-manylinux_2_34_x86_64.whl:

Publisher: py-release.yml on alexhallam/tv

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tidy_viewer_py-0.2.92-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for tidy_viewer_py-0.2.92-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f8b276f2188a296ea3a285dc456a214431278ecf2263c047076d4d5f0ce467c7
MD5 8a1c7fd61cc2022da6596d383a29f908
BLAKE2b-256 7c0a0cfc89d1af8f2196a88191794743930401eff831d4af5f0dc7e81b10026b

See more details on using hashes here.

Provenance

The following attestation bundles were made for tidy_viewer_py-0.2.92-cp310-cp310-macosx_11_0_arm64.whl:

Publisher: py-release.yml on alexhallam/tv

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tidy_viewer_py-0.2.92-cp39-cp39-win_amd64.whl.

File metadata

File hashes

Hashes for tidy_viewer_py-0.2.92-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 7f999b10a76a41d9bb7ecb6f5d678877884fc47b6daa056b9423bff6fd1815db
MD5 6d82ef753fc160e42d41cde306d1fb19
BLAKE2b-256 8e408fd929f4589ad2a9eb9de8981a7ed1e0b7adc731e51a831782f611ce6c25

See more details on using hashes here.

Provenance

The following attestation bundles were made for tidy_viewer_py-0.2.92-cp39-cp39-win_amd64.whl:

Publisher: py-release.yml on alexhallam/tv

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tidy_viewer_py-0.2.92-cp39-cp39-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for tidy_viewer_py-0.2.92-cp39-cp39-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 a309d9ee375e5ac556a4cbe8dc8703832c7ea3bef15ebd7458ffffae71c300f7
MD5 1052d1cad105617aa3daa805bd4f4c22
BLAKE2b-256 891b12960e3e2d1f3ce2af551f3a555bc092f88ad1ee2dfb01f3bebeb5a3ac09

See more details on using hashes here.

Provenance

The following attestation bundles were made for tidy_viewer_py-0.2.92-cp39-cp39-manylinux_2_34_x86_64.whl:

Publisher: py-release.yml on alexhallam/tv

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tidy_viewer_py-0.2.92-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for tidy_viewer_py-0.2.92-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 89cbabec5e2ba388c5c1d5537ba8dd747b41fa7c52d3aefbf66bc972dbf087e5
MD5 2f51fe3d2c0444c492c9491256af1bd2
BLAKE2b-256 996f189380f09d3e28d1cfb03a7f36ca1d631f5ec53000f5ba46486d3ae54ec3

See more details on using hashes here.

Provenance

The following attestation bundles were made for tidy_viewer_py-0.2.92-cp39-cp39-macosx_11_0_arm64.whl:

Publisher: py-release.yml on alexhallam/tv

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tidy_viewer_py-0.2.92-cp38-cp38-win_amd64.whl.

File metadata

File hashes

Hashes for tidy_viewer_py-0.2.92-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 88b2fa8d371626819d3fa9da8a5469a72b94c5afc927b54b265ec73addb1fa24
MD5 9c532e0a2700ab1a75097569ff182be0
BLAKE2b-256 2749734b974aa1ab72b7870a5fbbfe65e1e473b3f5bc31b0cb4b1302997d18f7

See more details on using hashes here.

Provenance

The following attestation bundles were made for tidy_viewer_py-0.2.92-cp38-cp38-win_amd64.whl:

Publisher: py-release.yml on alexhallam/tv

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tidy_viewer_py-0.2.92-cp38-cp38-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for tidy_viewer_py-0.2.92-cp38-cp38-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 e4f30e510cceed84df9011f23e5f13e98bef76230ee751ac90eae49cd85bbd09
MD5 c6c859f4ac85a66d76a672412d338a41
BLAKE2b-256 46c95b7fcb03c027c3a3ea4ef758f7297810d4fb7220370e2321febc48ab79fa

See more details on using hashes here.

Provenance

The following attestation bundles were made for tidy_viewer_py-0.2.92-cp38-cp38-manylinux_2_34_x86_64.whl:

Publisher: py-release.yml on alexhallam/tv

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tidy_viewer_py-0.2.92-cp38-cp38-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for tidy_viewer_py-0.2.92-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3812739eb304e4ed53ebd53ae56587bb19efe861ef88adf538fe2ac88c34add0
MD5 e8c4a1a873fb46a4f58a6d28c269b98a
BLAKE2b-256 e4adbf4bd6fdb04cc17608240f7ddc822027dd7e4363d673154248a8f8cdddd1

See more details on using hashes here.

Provenance

The following attestation bundles were made for tidy_viewer_py-0.2.92-cp38-cp38-macosx_11_0_arm64.whl:

Publisher: py-release.yml on alexhallam/tv

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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