TableViz is a Python project that provides tools for organizing and visualizing tabular data in HTML format.
Project description
TableViz
Overview
TableViz is a Python project that provides tools for organizing and visualizing tabular data in HTML format. The project consists of two main components:
- TableData: Organizes raw Python data structures (dicts and lists of dicts) into a structured table format
- Table: Renders the structured TableData into HTML for display in web pages
Features
- Convert Python dictionaries and lists of dictionaries into structured table data
- Customizable HTML rendering of tables
- Support for various table attributes (headers, styles, etc.)
- Easy integration with web applications
Installation
pip install tableviz
Usage
Basic Example
from tableviz import TableData, Table
# Create from a list of dictionaries
data = [
{"name": "Alice", "age": 25, "department": "Engineering"},
{"name": "Bob", "age": 30, "department": "Marketing"},
{"name": "Charlie", "age": 28, "department": "Sales"}
]
# Organize the data
table_data = TableData(data)
# Render to HTML
table = Table(table_data)
html_output = table.render()
# Save or display the HTML
with open("output.html", "w") as f:
f.write(html_output)
Requirements
- Python 3.6+
- jinjia2
- Pillow
License
MIT License
Contributing
Contributions are welcome! Please fork the repository and submit a pull request.
Support
For issues or questions, please open an issue on GitHub.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tableviz-0.1.1.tar.gz.
File metadata
- Download URL: tableviz-0.1.1.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
77dfc8cb6896fdddf373ff7456e9794c07ab67f65350c00f2c6ca91684f12a60
|
|
| MD5 |
97548e699e8220e00ab466bd714024e7
|
|
| BLAKE2b-256 |
60ec8e164a1308b859ffb0de23ba52b5025b801a5c9936cfa18ce2d23a807231
|
File details
Details for the file tableviz-0.1.1-py3-none-any.whl.
File metadata
- Download URL: tableviz-0.1.1-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
267ac01aacbb41561b0bc1c44999922c4ea509fffda0b44a77b334600f64ba0b
|
|
| MD5 |
cd6c8425a08423649a641e1edde44792
|
|
| BLAKE2b-256 |
5baa4a9009a3e0a788dde9caad5d79604df1e6dc25f4ea51973d41bbb3da8ca7
|