A simple wrapper on top of Altair to make charts with an express API
Project description
Altex
A simple wrapper on top of Altair to make charts in Streamlit with an express API.
If you're lazy and/or familiar with Altair, this is probably a good fit! Inspired by tvst/plost and plotly-express.
Installation
pip install altex
Or with uv (recommended):
uv add altex
Quick Start
import streamlit as st
import altex
import pandas as pd
# Create sample data
data = pd.DataFrame({
'x': range(10),
'y': [i**2 for i in range(10)]
})
# Create and display charts in Streamlit
altex.line_chart(data=data, x='x', y='y', title='My Chart')
altex.bar_chart(data=data, x='x', y='y', color='x')
altex.scatter_chart(data=data, x='x', y='y', opacity=0.7)
🎨 Demo App
Try the interactive demo:
# Clone this repository
git clone https://github.com/arnaudmiribel/altex.git
cd altex
uv sync
uv run streamlit run streamlit_app.py
The demo showcases:
- 📊 Beautiful chart examples
- ✨ Sparklines for dashboards
- 🚀 Quick start guide
- 📝 Simple API examples
Chart Types
line_chart()- Line chartsbar_chart()- Bar chartsarea_chart()- Area chartsscatter_chart()- Scatter plotshist_chart()- Histogramssparkline_chart()- Sparkline chartssparkbar_chart()- Spark bar chartssparkarea_chart()- Spark area charts
Features
- Simple, express-like API
- Built on top of Altair
- Automatic Streamlit integration when available
- Sample data utilities
- Support for rolling averages, custom styling, and more
License
Apache-2.0
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 altex-0.2.0.tar.gz.
File metadata
- Download URL: altex-0.2.0.tar.gz
- Upload date:
- Size: 100.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5ed6404af0d242a751111bd78421951d5e7025f9c559b7bcb151d3b4e63299d7
|
|
| MD5 |
382e44b268cd8d8262f1d862cca37d39
|
|
| BLAKE2b-256 |
98bc200768a7faf5fcdbfefbefdbb1528a88fe552a1f6bf26f40097a22e854c7
|
File details
Details for the file altex-0.2.0-py3-none-any.whl.
File metadata
- Download URL: altex-0.2.0-py3-none-any.whl
- Upload date:
- Size: 25.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b831e65f908f0197a1a092daab66c7059648ddfed2db8490bde6a331d524c85a
|
|
| MD5 |
d68aeec5132823f19a5031bb0a092ab2
|
|
| BLAKE2b-256 |
84eff94a52c48f8396f07411c8a0a244c4b551a6d57ecbcdc81d5d2345ebbd69
|