altex
A simple wrapper on top of Altair to make charts with an express API
What it is and what it does
Altex is a thin wrapper around Altair that reduces boilerplate when building charts for Streamlit dashboards. Instead of writing full Altair specifications, you call simple functions like `line_chart()`, `bar_chart()`, or `scatter_chart()` with your data and column names, and Altex handles the chart construction and Streamlit integration. It is designed for developers who want the expressiveness of Altair but prefer a more concise, plotly-express-like interface.
The package depends on altair, pandas, and streamlit as runtime dependencies. It supports modern Python versions and installs as a pure Python wheel with low friction. The codebase is permissively licensed under Apache-2.0, making it suitable for both open and commercial projects. However, the package is aging—it has not been updated since its initial release, and adoption remains modest.
Use it for:
- Build interactive Streamlit dashboards with minimal chart configuration code.
- Quickly prototype data visualizations without writing full Altair specifications.
- Add sparklines and spark bar charts to dashboard summaries for compact trend display.
- Create multi-chart layouts in Streamlit apps using a consistent, simple API.
- Visualize pandas DataFrames in Streamlit with one-line chart calls.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Altex wraps Altair to provide a simple, express-style API for creating charts directly in Streamlit applications with minimal boilerplate.
Yes, if you are building a Streamlit dashboard and want a faster, simpler charting API than raw Altair. Install friction is minimal and the license is permissive. However, be aware that the package is aging with no updates since its initial release, so consider it suitable for straightforward charting tasks rather than as a long-term dependency for complex visualization needs. Check the demo app to confirm it covers your chart types before committing.
Install
altex on PyPI
pip
pip install altexuv
uv add altexpoetry
poetry add altexInstalling altex
Before you install
Low friction: pure Python wheel with three straightforward dependencies (altair, pandas, streamlit). Package is aging—last release was 2025-06-30 with no commits since, and adoption remains modest.
License in practice
Apache-2.0 is permissive; you can use, modify, and distribute this package freely in commercial and private projects, provided you include a copy of the license and state significant changes.
Quickstart
pip install altex
import streamlit as st
import altex
import pandas as pd
data = pd.DataFrame({'x': range(10), 'y': [i**2 for i in range(10)]})
altex.line_chart(data=data, x='x', y='y', title='My Chart')
Requires Streamlit to be installed and running; intended for use within a Streamlit application context.
Verify before relying
- Whether the package is actively maintained beyond its initial release or if development has stalled.
- Performance characteristics when handling large datasets or many concurrent charts.
- Completeness of the API surface relative to Altair's full capabilities.
- Python version support upper bound and compatibility with current Streamlit versions.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (<3.14,>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — altair, pandas, streamlit |
| Maintenance | aging — 410 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 180,324/month — #10,147 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: altex-0.2.0-py3-none-any.whl
Keywords: altair, charts, python, streamlit, visualization
Tags
More Graphics packages
Pillow adds image processing capabilities to…
permissive · top 100 on PyPI
fonttoolsfonttools manipulates font files in multiple…
permissive · top 1,000 on PyPI
matplotlib-inlineEnables matplotlib figures to display inline…
permissive · top 1,000 on PyPI
pymupdfPyMuPDF extracts, renders, converts, and…
agpl · top 1,000 on PyPI
pypdfium2pypdfium2 is a Python binding to PDFium that…
permissive · top 1,000 on PyPI
altairAltair is a declarative Python library for…
permissive · top 1,000 on PyPI
streamlit-echartsRenders interactive ECharts visualizations in…
permissive · top 15,000 on PyPI
streamlit-plotly-eventsCaptures click, select, and hover events from…
unclear · top 15,000 on PyPI
plotly-expressPlotly Express is now a compatibility shim that…
permissive · top 5,000 on PyPI
leatherLeather is a lightweight Python charting…
permissive · top 1,000 on PyPI
streamlitStreamlit transforms Python scripts into…
permissive · top 1,000 on PyPI
vl-convert-pythonConverts Vega-Lite chart specifications to…
permissive · top 5,000 on PyPI
streamlit-extrasProvides a collection of reusable UI components…
permissive · top 15,000 on PyPI
streamlit-code-editorEmbeds an interactive code editor component…
unclear · top 15,000 on PyPI
sparklinesSparklines renders compact Unicode bar charts…
permissive · top 5,000 on PyPI