Skip to main content

View your data frames in a browser

Project description

Tablescope

A lightweight tool for viewing DataFrames in your browser using Tabulator.js. Supports any DataFrame types that are compatible with Narwhals, including pandas and Polars.

Features

  • Interactive table view of your DataFrame
  • Full-text search across all columns
  • Column-specific filters
  • Column sorting and reordering
  • Cell editing (double-click to edit)
  • Export to CSV or JSON

Installation

pip install tablescope

Usage

Here's a simple example using a Polars DataFrame:

import polars as pl
from tablescope import tablescope

df = pl.DataFrame({
    'name': ['Alice', 'Bob', 'Charlie'],
    'age': [25, 30, 35],
    'city': ['New York', 'London', 'Paris']
})

# Open the table in your browser
tablescope(df)

Development

To set up the development environment:

  1. Clone the repository
  2. Install development dependencies:
rye sync
  1. Download Tabulator.js files:
  2. Download the required Tabulator.js files:
wget https://unpkg.com/tabulator-tables@6.3.1/dist/js/tabulator.min.js -O static/tabulator.min.js
wget https://unpkg.com/tabulator-tables@6.3.1/dist/css/tabulator.min.css -O static/tabulator.min.css

License

MIT License

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

tablescope-0.1.1.tar.gz (106.1 kB view details)

Uploaded Source

Built Distribution

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

tablescope-0.1.1-py3-none-any.whl (107.3 kB view details)

Uploaded Python 3

File details

Details for the file tablescope-0.1.1.tar.gz.

File metadata

  • Download URL: tablescope-0.1.1.tar.gz
  • Upload date:
  • Size: 106.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.1

File hashes

Hashes for tablescope-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b5fd595ab5c17c1588a85d1e37a44552235a32bcf919f7c837eb6de2e19a3033
MD5 a0b78eedf849f85a5e1f38d94506b454
BLAKE2b-256 34223a30907092658a00f7447a70dee56aad2204c2b27d0aab5ec84a33b027f2

See more details on using hashes here.

File details

Details for the file tablescope-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: tablescope-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 107.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.1

File hashes

Hashes for tablescope-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 61ef4f041097533a362af4ab07086a3754f8c2cd6cf806d14d6453868cf637c2
MD5 81ca4e6589c6f214723b7f2cb590ad32
BLAKE2b-256 b7900831d123ae9ea243c8638532f84f13378fa7b1ea04d514cdd54bfec205ea

See more details on using hashes here.

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