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 Distribution

tidy_viewer_py-0.2.93.tar.gz (109.6 kB view details)

Uploaded Source

Built Distributions

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

tidy_viewer_py-0.2.93-cp313-cp313-win_amd64.whl (2.2 MB view details)

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.12Windows x86-64

tidy_viewer_py-0.2.93-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.93-cp312-cp312-macosx_11_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

tidy_viewer_py-0.2.93-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.93-cp311-cp311-macosx_11_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

tidy_viewer_py-0.2.93-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.93-cp310-cp310-macosx_11_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

tidy_viewer_py-0.2.93-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.93-cp39-cp39-macosx_11_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

tidy_viewer_py-0.2.93-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.93-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.93.tar.gz.

File metadata

  • Download URL: tidy_viewer_py-0.2.93.tar.gz
  • Upload date:
  • Size: 109.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.9.3

File hashes

Hashes for tidy_viewer_py-0.2.93.tar.gz
Algorithm Hash digest
SHA256 49cff1448600a76c52a7974a4b81bd879af0a0bea0ade4af8b02ec029a4ba97e
MD5 cb6285fc227b0e89e69d66449e9cc47d
BLAKE2b-256 95e54eeb2a7f16da68ea83c1153331642d5d8d360e1d0fcf5b31cebab5dcfd4f

See more details on using hashes here.

File details

Details for the file tidy_viewer_py-0.2.93-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for tidy_viewer_py-0.2.93-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 874a7a8b6c90ead535f77e5959542a1b831792a5994c767257e1b1f8f4b3ded5
MD5 a3d311af9704743adcc9048ed02756af
BLAKE2b-256 f1165c2d8b274083e1066c0022561e86a0ccb04cf432539e1dba5a6d191ba1c4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tidy_viewer_py-0.2.93-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 6ce82261f8e51537607e8896cb036488c78c329f35c5f062ce04ced8bcae2dab
MD5 80b6f1b978eab7da4f5af36790553124
BLAKE2b-256 a2ee0106ad9789961111385d04f7b5650d0e562af799d9c3935b2083e9d14ba6

See more details on using hashes here.

Provenance

The following attestation bundles were made for tidy_viewer_py-0.2.93-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.93-cp312-cp312-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for tidy_viewer_py-0.2.93-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 db6e516f1aa75f7bb5d8a6c16f880093f591d45c68cb52200b0fd7765c94c689
MD5 2cf416ad1b4daadcd6ee98a99d3b359b
BLAKE2b-256 035721e7d60d4290c8378ec8d955eace94b6ac0d2a57c1a5120849ce62b7f070

See more details on using hashes here.

Provenance

The following attestation bundles were made for tidy_viewer_py-0.2.93-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.93-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for tidy_viewer_py-0.2.93-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5d221ea6932e2ca4a979d8283cacfda0289737cee460f31b09d53dbec33b5ef5
MD5 3c0d618dab66351e671934c209c80b29
BLAKE2b-256 f6b791e1c23a6a1942eb404abe30ef7a84b361a36db6b679e20a00e5041a9e8b

See more details on using hashes here.

Provenance

The following attestation bundles were made for tidy_viewer_py-0.2.93-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.93-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for tidy_viewer_py-0.2.93-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b9557912666939c7364432cba3caf40612f6edf65d6ba39dc6cf9902218b37c4
MD5 3b75dec6ca920635114bc7a0a47271b1
BLAKE2b-256 1353539d8d56440978b1a5cfe83cabfe308b4257551c9c46e26c3141e9535dac

See more details on using hashes here.

Provenance

The following attestation bundles were made for tidy_viewer_py-0.2.93-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.93-cp311-cp311-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for tidy_viewer_py-0.2.93-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 09ee683e11182f6cb1917653b605718f24ffbb851b679eee95c10ee79855b686
MD5 d26fa87fb8225436aff4dd2f347455dc
BLAKE2b-256 58e97d3e99469c64391a063be44c45b6a90ebc400aa5ca9ba1e50ac101001673

See more details on using hashes here.

Provenance

The following attestation bundles were made for tidy_viewer_py-0.2.93-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.93-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for tidy_viewer_py-0.2.93-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ed92d4f3f79570f079f3447648eb7e5b6889f9b251c1006ef545d66aff83bdd8
MD5 a688457bb0af1f604b60ee071bacb50a
BLAKE2b-256 fc729a4beb591afb529986f4928f2b542ac4ed777ebecdcb39206b24848b5768

See more details on using hashes here.

Provenance

The following attestation bundles were made for tidy_viewer_py-0.2.93-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.93-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for tidy_viewer_py-0.2.93-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 cd0ecff804ea9cefe734ea4accc1cd322218828ad676e137c96b6265cb3c498a
MD5 109e9391aa794051911545eb31c94f76
BLAKE2b-256 8da7c9eb48d8ed1647a84d94ccd1240046aa24af195afda3afabdfc860b9e013

See more details on using hashes here.

Provenance

The following attestation bundles were made for tidy_viewer_py-0.2.93-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.93-cp310-cp310-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for tidy_viewer_py-0.2.93-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 0311f817a58a814dafc100afe331f98ac9bdeb14cf089e75f3b2ab657e3c2acf
MD5 861658fa0700605f21f7ef306b74f83a
BLAKE2b-256 e363da1b0b4e1b15c72fa47af9381f6f770c505db782cc0cd658b6cd71ba70c6

See more details on using hashes here.

Provenance

The following attestation bundles were made for tidy_viewer_py-0.2.93-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.93-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for tidy_viewer_py-0.2.93-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 59017446125a329c98f17177d505c9a72fe327f29d502ccdd0d9457f6a4fee36
MD5 f1d0836be5c875b88cbb54fdbe2d6dca
BLAKE2b-256 8b234a7a2854044e5ac83c72c432788a9193c7b49a3686823b1ee500f92e7c71

See more details on using hashes here.

Provenance

The following attestation bundles were made for tidy_viewer_py-0.2.93-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.93-cp39-cp39-win_amd64.whl.

File metadata

File hashes

Hashes for tidy_viewer_py-0.2.93-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 5851fca66d49d25a8b2e49c7e1b379d5404f16503343c64356440b6fd2788b6e
MD5 01eae3fa705bb020258a00d2aee8fdca
BLAKE2b-256 8e7025273af19bf030c75e92fa45cceac13a46c51af6f0e2fad3bf890d22bd07

See more details on using hashes here.

Provenance

The following attestation bundles were made for tidy_viewer_py-0.2.93-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.93-cp39-cp39-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for tidy_viewer_py-0.2.93-cp39-cp39-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 b91af849fa7eb3fa3605f709a4538e30ce2438e6011cea5a40739b61764950fb
MD5 d3320380d7c4f0f3de85447e434e54da
BLAKE2b-256 d6f91d067d76eb04531329cafff21741aaa97648f9b39700eae35997db0547e7

See more details on using hashes here.

Provenance

The following attestation bundles were made for tidy_viewer_py-0.2.93-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.93-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for tidy_viewer_py-0.2.93-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8aece01f10f2f9c3cf5c902a75ff72567bdf39c5fb5b2ad701cae3ed44da2d3b
MD5 a10a90b7f7e934418b72f854924a99d0
BLAKE2b-256 9340b9d0133218d0c4dd73d4668440f1aad03f7e78fea2aa7ed9a0ac32f94bed

See more details on using hashes here.

Provenance

The following attestation bundles were made for tidy_viewer_py-0.2.93-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.93-cp38-cp38-win_amd64.whl.

File metadata

File hashes

Hashes for tidy_viewer_py-0.2.93-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 dd228f856f448c3aa5cbeb4750ab2375e0e606720b501428e84533ad2d9644ee
MD5 1d6cc52e8284d90bbb183f038a63db47
BLAKE2b-256 6c933602b58af00e91d77d92528788e4a258cea443764d2463c6e02cf8b77dec

See more details on using hashes here.

Provenance

The following attestation bundles were made for tidy_viewer_py-0.2.93-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.93-cp38-cp38-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for tidy_viewer_py-0.2.93-cp38-cp38-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 b05e305a86d8ded058f8cdad2ef0d1cd5452c5c6e380c704ab9ee4b1a014f0cb
MD5 f9de4b1c477740739a2dd43185e7d8a4
BLAKE2b-256 5fe71da96d95f526548efd8fdfad1fd93229506ecaad7d1a2b61ef3a593eeb85

See more details on using hashes here.

Provenance

The following attestation bundles were made for tidy_viewer_py-0.2.93-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.93-cp38-cp38-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for tidy_viewer_py-0.2.93-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 648facdd60b8da14790fff5eea7124974b50cee2e2e074851fe694e2b8976256
MD5 4acc132cfa55513d7ec34e826b5f1a5d
BLAKE2b-256 42ada92f99c8e21142e8c70b000453332b6c4876efa4f8ec710e9032852eaaf5

See more details on using hashes here.

Provenance

The following attestation bundles were made for tidy_viewer_py-0.2.93-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