Tabloom
A Python library for visually appealing tables, charts, and reports with minimal configuration.
Designed around pandas and matplotlib, Tabloom combines sensible visual defaults with access to the underlying libraries for advanced customization.
Features
Tabloom provides:
- Convenient tabular data creation, rows, and records
- Dataset imports from CSV, Excel (.xlsx), and JSON
- Integration with pandas for data manipulation
- Attractive tables and matplotlib charts with sensible defaults
- Advanced customization through pandas and matplotlib
- Table and chart exports and PDF reports combining generated visuals
Installation
pip install tabloom
Python 3.12+ is required. pandas, matplotlib, openpyxl, and pypdf are installed automatically.
For the notebook dependencies:
pip install "tabloom[example]"
Quick start
Create a table, add rows, generate a chart, and combine them into a PDF:
from tabloom import Chart, Report, Table
table = Table(columns=["Model", "Accuracy"], title="Model Results")
table.add_row(["Model A", 0.85])
table.add_row(["Model B", 0.91])
table.add_row({"Model": "Model C", "Accuracy": 0.88})
table.save("results.png")
chart = Chart.bar(
data=table,
x="Model",
y="Accuracy",
title="Model Comparison",
ylabel="Accuracy",
)
chart.save("comparison.png")
report = Report(title="Experiment Report")
report.add_text("Comparison of machine learning models.")
report.add_table(table).add_chart(chart)
report.save("experiment_report.pdf")
Report content fills available page space in order, with automatic pagination.
Long tables continue across pages with repeated headers; use paginate=False
on add_table() to fit a table as one block instead.
Use report.add_page_break() when you want an explicit fresh page.
Tables and charts fill the printable width by default; pass resize=0.5 for
half width or resize="original" for native size. add_text() accepts font,
size, color, alignment, and spacing options.
Tables are plain black and white by default. Select theme="blue" for the
original colored table style, or choose "soft_blue" or "dark_blue". Charts keep their
colored defaults; theme="plain" is also available for monochrome charts.
Use table.df, chart.fig, and chart.ax for pandas/matplotlib customization.
Table and chart save() support PNG, PDF, and SVG; to_csv(), to_excel(),
and to_json() export table data without graphical styling.
Documentation
Examples
| Example | Description | Notebook | Colab |
|---|---|---|---|
| Basic usage | Create tables, charts, and a PDF report | basic_usage.ipynb | |
| Wine quality report | Download 1,599 rows, build plain tables, explore three chart types, and export all data in a report | wine_quality_report.ipynb | |
| Excel sales report | Read an Excel worksheet, summarize monthly sales, create line and pie charts, and export Excel/PDF results | excel_sales_report.ipynb |
Development
See CONTRIBUTING.md for environment setup, quality checks, and the release workflow. Issues and feature requests are welcome in the GitHub repository.
Metadata
Release files for tabloom 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tabloom-0.1.0.tar.gz | 34.5 kB | Without provenance | Details for tabloom-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tabloom-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for tabloom-0.1.0-py3-none-any.whl |
Total release size: 79.1 kB
Release files / tabloom-0.1.0.tar.gz
| Download URL | tabloom-0.1.0.tar.gz |
|---|---|
| Size | 34.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ee915cc0bba67b5c720ae5d7b664750e926237eb865477b722c472f002fe9b79
|
|
BLAKE2b-256 checksum How to use checksums |
c0a817d60d2b069002020d38df7429fabdfed850cdf040d1696f7e71f056ab57
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.15
|
Release files / tabloom-0.1.0-py3-none-any.whl
| Download URL | tabloom-0.1.0-py3-none-any.whl |
|---|---|
| Size | 44.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3702fc42fc6130490603fd66b59c5746c554eecd78669ca3652cb905550a11ed
|
|
BLAKE2b-256 checksum How to use checksums |
924e017326fa06391dbb6ea3948c8c17b55f1628b0142a1c6c28d34e947267f3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.15
|
Security for tabloom 0.1.0
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.