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
Metadata
Release files for altex 0.2.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 | |
|---|---|---|---|
| altex-0.2.0.tar.gz | 100.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| altex-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 126.0 kB
Release files / altex-0.2.0.tar.gz
| Download URL | altex-0.2.0.tar.gz |
|---|---|
| Size | 100.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5ed6404af0d242a751111bd78421951d5e7025f9c559b7bcb151d3b4e63299d7
|
|
BLAKE2b-256 checksum How to use checksums |
98bc200768a7faf5fcdbfefbefdbb1528a88fe552a1f6bf26f40097a22e854c7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / altex-0.2.0-py3-none-any.whl
| Download URL | altex-0.2.0-py3-none-any.whl |
|---|---|
| Size | 25.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b831e65f908f0197a1a092daab66c7059648ddfed2db8490bde6a331d524c85a
|
|
BLAKE2b-256 checksum How to use checksums |
84eff94a52c48f8396f07411c8a0a244c4b551a6d57ecbcdc81d5d2345ebbd69
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|