Skip to main content

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 charts
  • bar_chart() - Bar charts
  • area_chart() - Area charts
  • scatter_chart() - Scatter plots
  • hist_chart() - Histograms
  • sparkline_chart() - Sparkline charts
  • sparkbar_chart() - Spark bar charts
  • sparkarea_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)

Source distribution for altex 0.2.0
File Size Uploaded
altex-0.2.0.tar.gz 100.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for altex 0.2.0
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page