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
  • Themes
  • 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.2.tar.gz (123.5 kB view details)

Uploaded Source

Built Distribution

pytabulator-0.2.2-py3-none-any.whl (148.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pytabulator-0.2.2.tar.gz
  • Upload date:
  • Size: 123.5 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.2.tar.gz
Algorithm Hash digest
SHA256 39691b2107eabe5bc90f9b777dbd6ae66a7a41db69900f12149eb317651b6883
MD5 d35e3b8f32fbdbec8a6b9916772adfa0
BLAKE2b-256 b322b67a0da243d1bb27e68acb415d3c1b8ad122e7617b135e7ef06b352eb02e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytabulator-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 148.6 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fd2f5624ae7f78fb77836a5ec922704a028c3c1553fa8bf43a1fd3228dd43c57
MD5 2e8dc5700805291203414046063730f5
BLAKE2b-256 66da9fd9578c4143276f173d931032f051b8a66607e03a028e542f7ceb8b14bc

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