https://github.com/canadaluke888/speedtable
Ultra-fast terminal table renderer written in C
https://github.com/canadaluke888/speedtable
c data datasets fast python python-wrapper python3 tables
Last synced: 27 days ago
JSON representation
Ultra-fast terminal table renderer written in C
- Host: GitHub
- URL: https://github.com/canadaluke888/speedtable
- Owner: canadaluke888
- License: mit
- Created: 2025-03-23T04:27:22.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2025-05-09T03:22:19.000Z (11 months ago)
- Last Synced: 2025-09-20T17:03:35.237Z (6 months ago)
- Topics: c, data, datasets, fast, python, python-wrapper, python3, tables
- Language: C
- Homepage: https://pypi.org/project/speedtable/
- Size: 335 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# β‘ speedtable
**speedtable** is an ultra-fast, C-based terminal table renderer for Python.
Designed for large datasets and low-latency rendering β with beautiful Rich-style Unicode output.
> π‘ Perfect for CLI tools, dataset previews, or any place you need fast + styled tables.
---
## π Features
- Blazing-fast C implementation π₯
- Unicode box-style table formatting (like Richβs `HEAVY_HEAD`)
- Bold, colored headers with optional column type labels
- Customizable:
- Header color
- Border color
- Body text color
- Type label color
- Title text and color (italicized, centered above the table)
---
## π¦ Installation
```bash
pip install speedtable
```
---
## π§ͺ Example Usage
```python
import speedtable
table_data = {
"columns": [
{"name": "ID", "type": "int"},
{"name": "Name", "type": "str"},
{"name": "Age", "type": "int"}
],
"rows": [
{"ID": 1, "Name": "Luke", "Age": 21},
{"ID": 2, "Name": "Joe", "Age": 45},
{"ID": 3, "Name": "Alice", "Age": 56}
]
}
print(speedtable.render_table(
table_data,
header_color="green",
border_color="magenta",
body_color="white",
type_color="red",
title_text="Test Table",
title_color="cyan"
))
```
---
## π· Output

---
## π¨ Supported Color Names
| Name | Description |
|------------------|---------------------------|
| `black` | Standard black |
| `red` | Standard red |
| `green` | Standard green |
| `yellow` | Standard yellow |
| `blue` | Standard blue |
| `magenta` | Standard magenta |
| `cyan` | Standard cyan |
| `white` | Standard white |
> β¨ Headers are always bold, and titles are always italicized.
---
## π‘ Why speedtable?
The Python `rich` library is beautiful, but may be too slow for rendering large tables in CLI environments.
`speedtable` gives you the same polished aesthetic β at native speed.
---
## π License
MIT Β© [Luke Canada](https://github.com/canadaluke888)