Skip to main content

Data Grid

Data Grid is a Python package that allows you to effortlessly present tabular data in a visually appealing format. With built-in features such as client-side filtering, pagination, and export options, it provides a comprehensive solution for displaying and manipulating data.

Features

  • Tabular Data Display: Easily present data in a grid-like structure for clear and organized visualization.
  • Client-Side Filtering: Enable users to quickly search and filter data within the grid, improving data exploration and analysis.
  • Pagination: Divide large datasets into manageable chunks, enabling smooth navigation and enhanced performance.
  • Export Options: Provide users with the ability to export grid data to various formats such as CSV or Excel, facilitating data sharing and external analysis.
  • Data Masking: Ensure data security by incorporating data masking capabilities during export, safeguarding sensitive information from unauthorized access.

Installation

You can install the Data Grid package from PyPI using pip:

pip install bp-data-grid

Usage

To use the Data Grid component in your Streamlit application, follow these steps:

  1. Import the necessary modules:
import data_grid as dg
  1. Add the Data Grid component to your application:
dg.data_grid(
    title="Results",
    rows=rows,
    columns=columns,
)
  1. Run your Streamlit application:
streamlit run your_app.py

Example

import data_grid as dg

columns = [
  {
    "field": "id",
    "headerName": "ID",
    "width": 90
  },
  {
    "field": "firstName",
    "headerName": "First Name",
    "width": 150,
    "editable": True
  },
  {
    "field": "lastName",
    "headerName": "Last Name",
    "width": 150,
    "editable": True
  },
  {
    "field": "age",
    "headerName": "Age",
    "type": "number",
    "width": 110,
    "editable": True
  }
]

rows = [
    {"id": 1, "lastName": "Snow", "firstName": "Jon", "age": 35},
    {"id": 2, "lastName": "Lannister", "firstName": "Cersei", "age": 42},
    {"id": 3, "lastName": "Lannister", "firstName": "Jaime", "age": 45},
    {"id": 4, "lastName": "Stark", "firstName": "Arya", "age": 16},
    {"id": 5, "lastName": "Targaryen", "firstName": "Daenerys", "age": 90},
    {"id": 6, "lastName": "Melisandre", "firstName": "Tom", "age": 150},
    {"id": 7, "lastName": "Clifford", "firstName": "Ferrara", "age": 44},
    {"id": 8, "lastName": "Frances", "firstName": "Rossini", "age": 36},
    {"id": 9, "lastName": "Roxie", "firstName": "Harvey", "age": 65},
]

dg.data_grid(
     title="Results",
     rows=rows,
     columns=columns,
     key="data_grid",
)

Screenshot

Screenshot

Metadata

Release files for bp-data-grid 1.0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bp-data-grid 1.0.8
File Size Uploaded Provenance Actions
bp_data_grid-1.0.8.tar.gz 603.9 kB Without provenance Details for bp_data_grid-1.0.8.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bp-data-grid 1.0.8
File Interpreter ABI Platform Actions
bp_data_grid-1.0.8-py3-none-any.whl Python 3 none any Details for bp_data_grid-1.0.8-py3-none-any.whl

Total release size: 1.2 MB

Release files / bp_data_grid-1.0.8.tar.gz

Download URL bp_data_grid-1.0.8.tar.gz
Size 603.9 kB
Tags Source
SHA-256 checksum
How to use checksums
fcee2c1a8b7422b612c5f309b1828b75f8289b0065a638e33ec82fbee18aae9a
BLAKE2b-256 checksum
How to use checksums
51d69dce89e531939ac0940e2257cde44d7ef78af3f27c29435b1819127704d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.10

Release files / bp_data_grid-1.0.8-py3-none-any.whl

Download URL bp_data_grid-1.0.8-py3-none-any.whl
Size 606.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
444bea922d71f2160578974cb556ac995806100e58de587ca2bc4f9a5dcc2f0b
BLAKE2b-256 checksum
How to use checksums
79b71f0433f861f1084e28e34a30cc7fb297f1c80309b89f49564814365ac64b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.10

Security for bp-data-grid 1.0.8

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page