Skip to main content

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:

  1. TableData: Organizes raw Python data structures (dicts and lists of dicts) into a structured table format
  2. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tableviz-0.1.0.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tableviz-0.1.0-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file tableviz-0.1.0.tar.gz.

File metadata

  • Download URL: tableviz-0.1.0.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.18

File hashes

Hashes for tableviz-0.1.0.tar.gz
Algorithm Hash digest
SHA256 966f401b1cfabfebaddfe2be68a5f5e4fa4f809e7ba5f3c5c9719b54591297b8
MD5 cd15320321a2487fc8121796b4fe79e2
BLAKE2b-256 751ce26ba51843872c2fcb377a92dc5f795934a41e87953eb4962ebf36871cda

See more details on using hashes here.

File details

Details for the file tableviz-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: tableviz-0.1.0-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

Hashes for tableviz-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3f3a53a9ed8e63e5904b3a291a9d3583a1f55dec8988bad8a604ee98f237af62
MD5 39e42e531900605e6d88b84338cb0782
BLAKE2b-256 86026350757bd7ff44430b61bb51e23848b6520ba39b96f2117b42721fcffb77

See more details on using hashes here.

Supported by

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