Metadata-Version: 2.3
Name: tablescope
Version: 0.1.1
Summary: View your data frames in a browser
Author-email: "Samuel S. Watson" <samuel.s.watson@gmail.com>
License: MIT
Requires-Python: >=3.11
Requires-Dist: narwhals>=1.25.2
Description-Content-Type: text/markdown

# 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

```sh
pip install tablescope
```

## Usage

Here's a simple example using a Polars DataFrame:

```python
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:
```bash
rye sync
```

1. Download Tabulator.js files:
1. Download the required Tabulator.js files:

```sh
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
