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.2.tar.gz (58.9 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.2-py3-none-any.whl (62.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tableviz-0.1.2.tar.gz
  • Upload date:
  • Size: 58.9 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.2.tar.gz
Algorithm Hash digest
SHA256 5b352562bb7332a348cf6b6743d03b3b4863df65cbb685a7d59ab925f41d9f35
MD5 d04b4bfb5be57288bb5b0a1c32723176
BLAKE2b-256 ea13027fbd8cf4e52c036286a6232dfb4e026ff794adadd469861eed4a1d58d0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tableviz-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 62.7 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 56dac4c8a854f15e2b82925c48f0238dcbc30614b4895ac99c66301ec8d3381a
MD5 4a67b1db91aeeb6e4fa7ef89b015d812
BLAKE2b-256 1a92149e41f150ed5769249c64c4eaa28393f0c3620f21df9d9e5d660f5a45c6

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