pytae
Fast, ergonomic tabular data manipulation, feature engineering, and visualization powered natively by Polars for multithreaded SIMD vector computation and backed by Pandas & Matplotlib for plotting across command-line, interactive shell, and Python library.
pytae provides one and only one obvious way to work with tabular data across three unified modalities:
- Unix Pipeline CLI (
pytae): Fast one-shot command-line data processing, format conversion, and terminal visualizations. - Interactive REPL Shell (
pytae -i): Stateful in-memory workbench with $O(1)$ pointer-reassignment undo/redo, multi-table joins, and ANSI SQL. - Python & Jupyter SDK (
pt.DataFrame/df.pt): High-performance Polars-native DataFrame library with.ptaccessor for pandas/polars DataFrames.
👉 Quick Links: CLI Cheat Sheet & Cookbook | Interactive REPL Guide | Standalone Binaries (Zero-Python) | Master Reference & Architecture Hub | vs. Pandas | vs. dplyr | vs. SAS
Installation
Option 1: Standalone Portable Binary (Zero Python Required)
For locked-down corporate laptops, air-gapped environments, or instant setup without installing Python, download the single-file executable from GitHub Releases:
- Windows:
pytae-windows-x64.zip(Fast pre-extracted folder bundle) - macOS:
pytae-macos-arm64(Apple Silicon) - Linux:
pytae-linux-x86_64
See Standalone Binary Distribution for details.
Option 2: Via Python Package Managers
pip install pytae # Polars-native CLI, REPL, and Python library
pip install "pytae[plot]" # Includes matplotlib for plotting & dashboards
Interactive REPL Shell (pytae -i)
Instead of re-reading multi-gigabyte files from disk on every command, the Pytae REPL loads datasets into memory once and provides an instantaneous interactive workbench with zero syntax bloat:
# Launch the interactive workbench
pytae -i
In-Memory Multi-Table Workbench
Load datasets interactively (local files or bundled sample:<name>), explore with instant previews, and transform data:
pytae> df1 = sample:penguins
Loaded penguins.parquet as 'df1' (344 rows x 7 cols).
# Fast non-destructive inspection (does not truncate active data)
pytae [df1: 344x7]> -schema
pytae [df1: 344x7]> -head 3
pytae [df1: 344x7]> -sample 5%
# Exploratory previews (safe, non-mutating preview matching CLI output)
pytae [df1: 344x7]> -filter "species == 'Gentoo' and body_mass_g > 5000"
# State mutation via explicit assignment
pytae [df1: 344x7]> df1 = -filter "species in ['Adelie', 'Gentoo'] and body_mass_g >= 3500"
Updated 'df1' (188 rows x 7 cols).
pytae [df1: 188x7]> df1 = -mutate "mass_kg = body_mass_g / 1000" -select "species,island,mass_kg"
Updated 'df1' (188 rows x 3 cols).
# Multi-table workflows, relational joins & ANSI SQL
pytae [df1: 188x3]> df2 = sample:tips
pytae [df1, df2]> df3 = -join "left=df1,right=df2,how=cross"
pytae [df1, df2, df3]> df4 = -sql "SELECT df1.species, count(*) as n FROM df1 GROUP BY 1"
# Instant $O(1)$ rollback, checkpoints & reproducible history
pytae> undo # Revert last step
pytae> checkpoint baseline # Save named snapshot
pytae> restore baseline # Revert to snapshot
pytae> exit -s # Save self-contained session history to ./history.txt
👉 Read the Full REPL Manual: Interactive REPL Guide
Quick Start: Command-Line (CLI)
Flags execute from left to right as an in-memory pipeline powered natively by Polars multithreading:
# 1. Zero-cost inspection & schema summary (columns, types, nulls %, unique count)
pytae penguins.parquet -schema
pytae penguins.parquet -head 5
pytae penguins.parquet -sample 5% -seed 42
# 2. In-memory pipeline: filter, engineer features, sort, and export
pytae penguins.parquet \
-filter "species == 'Adelie' and body_mass_g > 3500" \
-mutate "mass_kg = body_mass_g / 1000" \
-arrange "mass_kg desc" \
-select "species,island,mass_kg" \
-o heavy_adelie.parquet
# 3. Frequency tables, terminal ASCII visualizations & ANSI SQL
pytae penguins.parquet -freq species -bar
pytae sales.parquet -sql "SELECT region, sum(revenue) FROM data GROUP BY 1"
# 4. Multi-file relational operations (-join, -concat)
pytae -file "orders.parquet=ord; customers.csv=cust" \
-join "left=ord,right=cust,on=customer_id,how=left" -head 5
# 5. Instant format conversion & dataset diff
pytae legacy.sas7bdat -o clean.parquet
pytae yesterday.parquet -diff today.parquet -tol 1e-4
# 6. Sensitive PII masking and encryption
pytae users.csv -mask "email=hash, ssn=encrypt" -key "SecretKey123" -o secure.parquet
👉 CLI Quick Reference: Cheat Sheet & Cookbook or run pytae -cheatsheet in your terminal! | Full CLI Manuals: docs/detailed_docs/cli/
Quick Start: Python & Jupyter SDK
Need the same expressive verbs in Python scripts, Airflow, or Jupyter? import pytae as pt gives you the exact same superpowers:
import pytae as pt
# Read directly with Polars-powered fast auto-detection
df = pt.read_parquet("sales_report.parquet")
# Or chain directly off pandas or polars - only one .pt call needed!
summary = (
df.filter("amount > 0")
.by("region")
.mutate(pct_total="amount / sum(amount)", prev_sale="shift(amount, 1)")
.arrange("amount desc")
.to_pandas() # or .to_polars(), .to_clip()
)
Visualizations & Dashboards (Compute in Polars, Visualize in Pandas)
While Polars provides multithreaded SIMD speed for transformations, Pandas and Matplotlib provide the richest visualization ecosystem. Calling .plot() automatically converts prepared data into Pandas and delegates directly to pandas.DataFrame.plot():
import pytae as pt
penguins = pt.sample("penguins")
# 1. Fluent method chaining
(
penguins
.filter("body_mass_g.is_not_null()")
.by("species")
.agg(avg_mass="body_mass_g:mean")
.plot(kind="bar", x="species", y="avg_mass", title="Average Penguin Mass (g)")
.finalize(save="mass_by_species.png")
)
# 2. Multi-panel dashboard layouts with pt.Plotter
plotter = pt.Plotter("""
AAAB
AAAC
""", figsize=(12, 6))
plotter.add("A", penguins, kind="scatter", x="bill_length_mm", y="bill_depth_mm", color="species")
plotter.add("B", penguins.by("species").count(), kind="bar", x="species", y="n")
plotter.add("C", penguins, kind="box", y="body_mass_g", by="species")
plotter.finalize(title="Penguin Morphology Dashboard", save="dashboard.png")
👉 Plotting Guide: Plotting Notebook | CLI Plotting Guide
Documentation Directory
Architecture & Comparisons
- Master Reference & Architecture Hub: docs/pytae.md
- Ecosystem Comparisons: vs. Pandas | vs. dplyr | vs. SAS
- Interactive Shell Manual: Interactive REPL Guide
- Command-Line Quick Reference: CLI Cheat Sheet & Cookbook
License
MIT License. See LICENSE for details.
Metadata
Release files for pytae 3.13.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pytae-3.13.0.tar.gz | 4.0 MB | Without provenance | Details for pytae-3.13.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pytae-3.13.0-py3-none-any.whl | Python 3 | none | any | Details for pytae-3.13.0-py3-none-any.whl |
Total release size: 6.6 MB
Release files / pytae-3.13.0.tar.gz
| Download URL | pytae-3.13.0.tar.gz |
|---|---|
| Size | 4.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a505a2378dd02a7aece5f172047a84a7228cbcf9b5a9725110674a9e26e36bd3
|
|
BLAKE2b-256 checksum How to use checksums |
33b0ae9d0c7b09fb43c70acd01b9eec6c4702ec39b14834f042b476ab7545bde
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / pytae-3.13.0-py3-none-any.whl
| Download URL | pytae-3.13.0-py3-none-any.whl |
|---|---|
| Size | 2.6 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
459219cfb9b518690a1ac186ae525652b668651e91b64983debdc81a3026b1cf
|
|
BLAKE2b-256 checksum How to use checksums |
42dd864fabc83d6a54876aa377eda00c8d65c8735500ab2afcfc8418754afc07
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Security for pytae 3.13.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.