Skip to main content

Shiny bindings for Tabulator JS

Project description

py-tabulator: Tabulator for Python

Release pypi Build status License

Shiny for Python bindings for Tabulator JS

Features

  • Support for Shiny core and Shiny Express
  • Pagination
  • Filters
  • Editor with undo and redo (History interaction)
  • Grouping
  • Sorting
  • Column calculations
  • Downloads
  • Reactivity

Installation

# Stable
pip install pytabulator

# Dev
pip install git+https://github.com/eodaGmbH/py-tabulator

Docs

Basic usage

Using Shiny Express:

import pandas as pd
from pytabulator import TableOptions, render_data_frame
from shiny import render
from shiny.express import input, ui

ui.div("Click on row to print name", style="padding: 10px;")


@render.code
async def txt():
    print(input.tabulator_row_clicked())
    return input.tabulator_row_clicked()["Name"]


@render_data_frame(table_options=TableOptions(height=500))
def tabulator():
    return pd.read_csv(
        "https://raw.githubusercontent.com/datasciencedojo/datasets/master/titanic.csv"
    )

Run detailed example:

shiny run docs/examples/getting_started/shiny_express_all.py

Development

Python

poetry install

poetry run pytest

JavaScript

npm install

npm run prettier

npm run build

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

pytabulator-0.2.1.tar.gz (100.0 kB view details)

Uploaded Source

Built Distribution

pytabulator-0.2.1-py3-none-any.whl (101.7 kB view details)

Uploaded Python 3

File details

Details for the file pytabulator-0.2.1.tar.gz.

File metadata

  • Download URL: pytabulator-0.2.1.tar.gz
  • Upload date:
  • Size: 100.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.8.10 Linux/5.15.0-91-generic

File hashes

Hashes for pytabulator-0.2.1.tar.gz
Algorithm Hash digest
SHA256 98b0de0f895b12ad1d895c7220f17145a032bb49a34b775063df304e804a61df
MD5 9624d1740fd062b3c516af90292b961d
BLAKE2b-256 c8309b273b16041f087ccd398c0b2ce6ee3deb29b32a1b7d4d28f4c43a90e410

See more details on using hashes here.

File details

Details for the file pytabulator-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: pytabulator-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 101.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.8.10 Linux/5.15.0-91-generic

File hashes

Hashes for pytabulator-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fbaf6a5d011ef5d07d382d96859e7c63cd015ad5c52812c6d8c68072cf5b7f7f
MD5 c6ae20854c18999519d00d988c5931a2
BLAKE2b-256 ba6a19ac22197d0f37b5d2de8a18aaae1e57ef0a8ff652710d1ae66c84e9a46d

See more details on using hashes here.

Supported by

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