Metadata-Version: 2.4
Name: streamlit
Version: 1.68.0
Summary: The agent-native framework for data apps and dashboards
Author-email: Snowflake Inc <hello@streamlit.io>
License-Expression: Apache-2.0
Project-URL: Homepage, https://streamlit.io
Project-URL: Documentation, https://docs.streamlit.io/
Project-URL: Source Code, https://github.com/streamlit/streamlit
Project-URL: Bug Tracker, https://github.com/streamlit/streamlit/issues
Project-URL: Release Notes, https://docs.streamlit.io/develop/quick-reference/changelog
Project-URL: Community, https://discuss.streamlit.io/
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Console
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Python :: 3.15
Classifier: Topic :: Database :: Front-Ends
Classifier: Topic :: Office/Business :: Financial :: Spreadsheet
Classifier: Topic :: Scientific/Engineering :: Information Analysis
Classifier: Topic :: Scientific/Engineering :: Visualization
Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
Classifier: Topic :: Software Development :: Widget Sets
Requires-Python: >=3.11
Description-Content-Type: text/markdown
Requires-Dist: altair!=5.4.0,!=5.4.1,<7,>=5.0.0
Requires-Dist: click<9,>=7.0
Requires-Dist: numpy<3,>=1.25.0
Requires-Dist: packaging>=20
Requires-Dist: pandas<4,>=1.5.3
Requires-Dist: pillow<14,>=9.2.0
Requires-Dist: pydeck<1,>=0.8.0b4
Requires-Dist: protobuf<8,>=5.26.1
Requires-Dist: pyarrow!=25.0.0,<27,>=12.0.0
Requires-Dist: requests<3,>=2.27
Requires-Dist: typing-extensions<5,>=4.10.0
Requires-Dist: starlette<2,>=0.46.0
Requires-Dist: uvicorn<1,>=0.30.0
Requires-Dist: anyio<5,>=4.0.0
Requires-Dist: python-multipart<1,>=0.0.10
Requires-Dist: websockets<18,>=12.0.0
Requires-Dist: itsdangerous<3,>=2.1.2
Requires-Dist: watchdog<8,>=2.1.5; platform_system != "Darwin"
Provides-Extra: snowflake
Requires-Dist: snowflake-snowpark-python[modin]>=1.17.0; extra == "snowflake"
Requires-Dist: snowflake-connector-python>=3.3.0; extra == "snowflake"
Provides-Extra: pdf
Requires-Dist: streamlit-pdf>=2.1.0; extra == "pdf"
Provides-Extra: auth
Requires-Dist: Authlib>=1.3.2; extra == "auth"
Requires-Dist: httpx>=0.24.1; extra == "auth"
Provides-Extra: charts
Requires-Dist: matplotlib>=3.0.0; extra == "charts"
Requires-Dist: graphviz>=0.19.0; extra == "charts"
Requires-Dist: plotly>=4.0.0; extra == "charts"
Requires-Dist: orjson>=3.5.0; extra == "charts"
Provides-Extra: sql
Requires-Dist: SQLAlchemy>=2.0.0; extra == "sql"
Provides-Extra: performance
Requires-Dist: httptools>=0.6.3; extra == "performance"
Requires-Dist: orjson>=3.5.0; extra == "performance"
Requires-Dist: uvloop>=0.15.2; (sys_platform != "win32" and sys_platform != "cygwin" and platform_python_implementation != "PyPy") and extra == "performance"
Provides-Extra: all
Requires-Dist: streamlit[auth,charts,pdf,performance,snowflake,sql]; extra == "all"
Requires-Dist: rich>=11.0.0; extra == "all"

<br>

<img src="https://user-images.githubusercontent.com/7164864/217935870-c0bc60a3-6fc0-4047-b011-7b4c59488c91.png" alt="Streamlit logo" style="margin-top:50px"></img>

# Streamlit

### Built in Python. Made for people and agents.

**Streamlit is the agent-native data app framework.** Use it for dashboards, forecasting
apps, workflow apps, and any other app built around your data.

[![PyPI downloads](https://img.shields.io/pypi/dm/streamlit?label=PyPI%20downloads)](https://pypi.org/project/streamlit/)
[![GitHub stars](https://img.shields.io/github/stars/streamlit/streamlit?style=flat)](https://github.com/streamlit/streamlit/stargazers)
[![License](https://img.shields.io/badge/license-Apache%202.0-blue)](https://github.com/streamlit/streamlit/blob/develop/LICENSE)

Each app is plain Python, written by you or your coding agent, with no separate frontend
or API layer. Streamlit is batteries-included and takes care of the hard parts: a
consistent, well-designed interface, state, caching, sign-in, theming, and upgrades. Your
team keeps only its own logic, written in a language it already reads every day.

**The No. 1 Python framework for data apps and dashboards.**
[More than a million repositories](https://github.com/streamlit/streamlit/network/dependents)
on GitHub depend on it. Used by millions. Trusted by thousands of companies, from startups
to global enterprises.

## What teams build

<table>
  <tr>
    <td width="33%" align="center">
      <a href="https://advanced-dashboard-demo.streamlit.app/"><img src="https://raw.githubusercontent.com/streamlit/demos/main/bi-dashboard/preview.png?v=2" width="240" alt="Revenue dashboard with KPI cards, a stacked area chart, and an MRR bridge"></a>
    </td>
    <td width="33%" align="center">
      <a href="https://forecasting-app-demo.streamlit.app/"><img src="https://raw.githubusercontent.com/streamlit/demos/main/forecasting-app/preview.png?v=2" width="240" alt="Demand forecast app with scenario levers, KPI cards, and a forecast chart"></a>
    </td>
    <td width="33%" align="center">
      <a href="https://workflow-app-demo.streamlit.app/"><img src="https://raw.githubusercontent.com/streamlit/demos/main/workflow-app/preview.png?v=2" width="240" alt="Review queue where planners approve purchase orders proposed by an AI agent"></a>
    </td>
  </tr>
  <tr>
    <td width="33%" valign="top">
      <sub>DASHBOARDS</sub><br>
      <b>KPI dashboards with drill-down and cross-filtering</b><br>
      Revenue, product metrics, and operating dashboards that stay fast over large data.
      Coming from a BI tool?
      <a href="https://streamlit.io/dashboards">Move your dashboards to Streamlit</a>, and
      modernize them on the way.<br>
      <a href="https://advanced-dashboard-demo.streamlit.app/">Try the live demo →</a>
    </td>
    <td width="33%" valign="top">
      <sub>FORECASTING APPS</sub><br>
      <b>Simulations and models with what-if levers</b><br>
      Forecasts, scenario planning, pricing and demand simulators, and risk models. The
      computation and the interface are the same Python.<br>
      <a href="https://forecasting-app-demo.streamlit.app/">Try the live demo →</a>
    </td>
    <td width="33%" valign="top">
      <sub>WORKFLOW APPS</sub><br>
      <b>Review queues, approvals, sign-offs, and writeback</b><br>
      Approve what an AI agent proposes, sign off on a forecast, or triage data quality.
      Editable tables (<code>st.data_editor</code>) and forms put the decision in the same
      app as the data.<br>
      <a href="https://workflow-app-demo.streamlit.app/">Try the live demo →</a>
    </td>
  </tr>
</table>

The source for all three is in [streamlit/demos](https://github.com/streamlit/demos).
Streamlit is also great for [AI chat and agent apps](https://streamlit.io/generative-ai)
over your data (`st.chat_input`, `st.write_stream`, `st.status`), ML and model tools, and
internal data tools. For more ideas, see
[the apps each team asks for](https://streamlit.io/use-cases), from finance to supply
chain.

## Get started

```bash
pip install streamlit
```

### Build with your coding agent

Run [`streamlit skills`](https://docs.streamlit.io/develop/api-reference/cli/skills) in
your project folder. It installs our expert skills for Claude Code and any agent that
reads the shared `.agents` skills folder, matched to your Streamlit version. So your agent
follows current best practices instead of whatever it memorized two versions ago.

Then ask, and mention Streamlit so the agent picks up the skills (in Claude Code,
`/developing-with-streamlit` works too):

> Build a Streamlit app that forecasts demand from `sales.csv`, with what-if levers for
> price and growth.

### Or write it yourself

Here's a complete app: a demand forecast that planners can adjust and submit for sign-off.
Save it as `streamlit_app.py` and run `streamlit run streamlit_app.py`:

```python
import sqlite3

import numpy as np
import pandas as pd
import streamlit as st

st.title("Demand plan")


@st.cache_data
def load_actuals() -> pd.DataFrame:
    # Swap in your own query, e.g. st.connection("snowflake").query("...")
    months = pd.date_range("2025-01-01", periods=12, freq="MS")
    units = 1_000 + 40 * np.arange(12) + np.random.default_rng(0).normal(0, 50, 12)
    return pd.DataFrame({"month": months, "actual": units.round()})


actuals = load_actuals()
growth = st.slider("Monthly growth (%)", -5.0, 10.0, 2.0, step=0.5)

months = pd.date_range("2026-01-01", periods=6, freq="MS")
baseline = actuals["actual"].iloc[-1] * (1 + growth / 100) ** np.arange(1, 7)
forecast = pd.DataFrame({"month": months, "forecast": baseline.round()})

# Planners edit the forecast, and the chart follows
plan = st.data_editor(forecast, disabled=["month"], hide_index=True)
st.line_chart(pd.concat([actuals, plan]), x="month")

if st.button("Submit for sign-off", type="primary"):
    with sqlite3.connect("plans.db") as db:  # Or your warehouse
        plan.to_sql("plans", db, if_exists="append", index=False)
    st.success(f"Submitted {len(plan)} months for sign-off.")
```

## Why Streamlit

**Generating an app is cheap. Owning it isn't.** An agent can write a React frontend, a
Python backend, and the API between them in an afternoon. Then someone has to review all
three, keep them in sync, and patch them for years. With Streamlit, it's one layer of
Python, and the plumbing is our job. See
[how it compares](https://streamlit.io/why-streamlit) to custom stacks and BI tools.

- **Made for data.** Hand a pandas, Polars, Snowpark, or PySpark dataframe straight to a
  table or chart. Tables load rows as you scroll, so they stay fast on large data. Native
  charts cover nearly every visualization, from KPI sparklines to maps and diagrams, and
  ECharts, Altair, and built-in charts switch to faster rendering on their own as the
  data grows.
- **Fast dashboards.** Wrap a section in `@st.fragment`, and only that section reruns when
  people use it. Cached queries can refresh in the background
  (`@st.cache_data(ttl=..., refresh_mode="background")`), so nobody waits on a stale
  query. Chart and table selections (`on_select`) let people cross-filter and drill down,
  and filters bound to the URL (`bind="query-params"`) make every view shareable.
- **Free on the logic. Opinionated on the design.** Write any logic you like, with any
  Python library. The look comes from Streamlit: native charts, tables, and filters,
  styled by one [brand theme](https://docs.streamlit.io/develop/concepts/configuration/theming)
  that all your apps share. App number 200 looks like it belongs with app number one, no
  matter who, or what, built it.
- **Stable for years.** Breaking changes are extremely rare. Most apps written years ago
  still run on the latest release, and every upgrade brings them new features, speed, and
  security fixes.
- **Built for agents.** Agents drive the running app without a browser, read the numbers
  back as data, and leave tests behind for CI
  ([`AppTest`](https://docs.streamlit.io/develop/concepts/app-testing)). And every app is
  also a tool: Claude, ChatGPT, Cursor, or any other MCP client can use it with the same
  logic and access rules as a person in the browser. There's no second API to build. More
  in [Streamlit for agents](https://streamlit.io/agents).
- **Enterprise-ready.** Sign-in is built in (`st.login`), and security scans run on every
  change, with fixes in regular releases. Streamlit targets WCAG 2.2 Level A and AA for its
  commands and default themes, and publishes an
  [ongoing audit](https://github.com/streamlit/streamlit/blob/develop/wiki/accessibility-wcag.md),
  known gaps included. Run it in your own cloud, on
  [Community Cloud](https://streamlit.io/cloud), or natively
  [inside Snowflake](https://docs.streamlit.io/deploy/snowflake). More in
  [Streamlit for the enterprise](https://streamlit.io/enterprise).
- **Escape hatches.** Need a bespoke screen? Drop in a
  [custom component](https://docs.streamlit.io/develop/concepts/custom-components/components-v2)
  written in React or anything else. Need a webhook or your own API route? Add it with
  [`st.App`](https://docs.streamlit.io/develop/api-reference/server/st.app).

## Community Cloud

Deploy, manage, and share your apps for free on
[Community Cloud](https://streamlit.io/cloud). Connect a GitHub repository, pick your app
file, and your app gets its own `streamlit.app` URL.
[Sign up here](https://share.streamlit.io/signup).

<img src="https://user-images.githubusercontent.com/7164864/214965336-64500db3-0d79-4a20-8052-2dda883902d2.gif" width="400" alt="Deploying an app from a GitHub repository on Community Cloud">

## Resources

- [Docs](https://docs.streamlit.io) to learn how Streamlit works
- [Community forum](https://discuss.streamlit.io) for questions and help
- [Blog](https://blog.streamlit.io) for tips from developers and creators
- [Components](https://streamlit.io/components) to extend Streamlit

## Contribute

Thanks for your interest in helping improve Streamlit!

We have paused accepting pull requests from outside the Streamlit maintainer team. You can still
make a valuable contribution by [reporting bugs](https://github.com/streamlit/streamlit/issues/new?template=bug_report.yml),
[requesting features](https://github.com/streamlit/streamlit/issues/new?template=feature_request.yml),
[improving or upvoting existing issues](https://github.com/streamlit/streamlit/issues?q=is%3Aissue%20state%3Aopen%20sort%3Areactions-%2B1-desc),
[commenting on open specs](https://github.com/streamlit/streamlit/issues?q=state%3Aopen%20label%3Achange%3Aspec), creating
[custom components](https://docs.streamlit.io/develop/concepts/custom-components/components-v2),
and contributing to [streamlit-extras](https://github.com/arnaudmiribel/streamlit-extras).

Read our [contribution guide](https://github.com/streamlit/streamlit/blob/develop/CONTRIBUTING.md)
for details.

## License

Streamlit is completely free and open-source and licensed under the [Apache 2.0](https://www.apache.org/licenses/LICENSE-2.0) license.
