streamlit-thesys
Generative Visualizations in Streamlit, powered by C1 by Thesys.
What is streamlit-thesys?
streamlit-thesys is a Streamlit package that lets you generate charts and visualizations using C1 by Thesys.
Instead of manually coding every st.pyplot or st.plotly_chart, you can describe the chart you want in plain language and Thesys will create it in real time.
If you’ve ever asked:
- “How do I generate charts from my data in Streamlit using AI?”
- “Can I create plots without writing matplotlib or plotly code?”
- “What’s the fastest way to connect Thesys with Streamlit for Generative Visualizations?”
👉 This package is your answer.
⚡ Features
- AI-generated charts — bar, line, scatter, histogram, pie, and more.
- Query-to-Chart — describe your data question in text, get a chart back.
- Seamless integration with C1 by Thesys.
- Works with your data — Pandas DataFrames, CSVs, or APIs.
- Exploratory analysis — iterate on visualizations in seconds.
📦 Installation
pip install streamlit-thesys
🏁 Quickstart
import streamlit as st
import pandas as pd
import streamlit_thesys as thesys
# Load some example data
df = pd.read_csv("sales.csv")
# Thesys API key can be generated at https://console.thesys.dev/
api_key = "<insert your api key here>"
st.title("Generative Visualizations with Thesys")
# Generate a chart dynamically
thesys.visualize(
instructions="Show monthly sales as a line chart",
data=df,
api_key=api_key
)
# Try another
thesys.visualize(
instructions="Plot top 5 products by revenue as a bar chart",
data=df,
api_key=api_key)
🎯 Why Use Thesys for Visualizations in Streamlit?
- Speed: No need to hand-code chart logic.
- Flexibility: Quickly try different chart types with natural language prompts.
- Accessibility: Anyone can generate charts — no matplotlib or plotly knowledge required.
- Exploration: Move faster when analyzing and presenting your data.
❓FAQ
Q: Which visualization libraries does this use? This used the Thesys C1 component under the hood which is based on other JS visualization libraries.
Q: Can I use my own dataset? Yes — pass a Pandas DataFrame, CSV, or API response directly.
Q: How is this different from coding charts in Streamlit manually? You don’t have to specify every chart property. Thesys interprets natural language and builds the chart for you.
Q: Does it work with time series / categorical / numeric data? Yes. Thesys adapts the visualization type to the data you provide.
📚 Resources
🚀 Next Steps
-
Explore the examples folder.
-
Try prompts like:
- “Compare revenue by region in a bar chart.”
- “Plot customer growth over time as a line chart.”
- “Show distribution of order sizes with a histogram.”
-
Share your results with the Thesys community.
Metadata
Release files for streamlit-thesys 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| streamlit_thesys-0.0.2.tar.gz | 1.9 MB | Without provenance | Details for streamlit_thesys-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| streamlit_thesys-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for streamlit_thesys-0.0.2-py3-none-any.whl |
Total release size: 4.5 MB
Release files / streamlit_thesys-0.0.2.tar.gz
| Download URL | streamlit_thesys-0.0.2.tar.gz |
|---|---|
| Size | 1.9 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6ac2d4f8c29c1064b3bf9c5e18aa627f94706f0077f1dda7f781bb1deb579a6a
|
|
BLAKE2b-256 checksum How to use checksums |
4af5b559d8d4a762568b95d7aa4e6be00990b6bd5d14ea9d945f64c3000da35a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.3
|
Release files / streamlit_thesys-0.0.2-py3-none-any.whl
| Download URL | streamlit_thesys-0.0.2-py3-none-any.whl |
|---|---|
| Size | 2.6 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3be9ef47627f8c0c890fa3d5339b10c8ec12abaa4e417597427278df5753b63d
|
|
BLAKE2b-256 checksum How to use checksums |
341c9bb243d4fc9a550bb03ddfef00dcb33c38510254a3083a671ba341d227f5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.3
|
Security for streamlit-thesys 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.