Skip to main content

Generative UI for Streamlit powered by C1 by Thesys

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

streamlit_thesys-0.0.2.tar.gz (1.9 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

streamlit_thesys-0.0.2-py3-none-any.whl (2.6 MB view details)

Uploaded Python 3

File details

Details for the file streamlit_thesys-0.0.2.tar.gz.

File metadata

  • Download URL: streamlit_thesys-0.0.2.tar.gz
  • Upload date:
  • Size: 1.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for streamlit_thesys-0.0.2.tar.gz
Algorithm Hash digest
SHA256 6ac2d4f8c29c1064b3bf9c5e18aa627f94706f0077f1dda7f781bb1deb579a6a
MD5 f97978fc3945d74258a3fcd3540fca61
BLAKE2b-256 4af5b559d8d4a762568b95d7aa4e6be00990b6bd5d14ea9d945f64c3000da35a

See more details on using hashes here.

File details

Details for the file streamlit_thesys-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for streamlit_thesys-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3be9ef47627f8c0c890fa3d5339b10c8ec12abaa4e417597427278df5753b63d
MD5 c5fbc68b8cc9354f23738b172064f4bc
BLAKE2b-256 341c9bb243d4fc9a550bb03ddfef00dcb33c38510254a3083a671ba341d227f5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page