Skip to main content

AGILAB Streamlit UI dependency bundle and compatibility imports

Project description

AGI-GUI

PyPI version Python versions License: BSD 3-Clause docs

agi-gui provides the AGILAB UI dependency bundle for Streamlit pages. It depends on the headless agi-env runtime and adds the UI packages needed by AGILAB pages.

Quick Install

pip install agi-gui

Use agi-env for worker/headless runtimes. Use agi-gui for Streamlit pages and local AGILAB UI sessions.

File Picker

agi_gui.file_picker provides a reusable Streamlit popover picker for AGILAB pages that need server-side path selection without exposing arbitrary filesystem access.

from agi_gui.file_picker import agi_file_picker

selected_path = agi_file_picker(
    "Browse dataframe",
    roots={"Project": active_app_export_dir},
    key=f"{project_name}:dataframe_picker",
    patterns=["*.csv", "*.parquet", "*.json"],
    container=st.sidebar,
)

The picker validates manual paths and dataframe selections against the configured roots, keeps widget keys namespaced, and can optionally save uploaded files when the caller provides an explicit upload_dir.

UX Widgets

agi_gui.ux_widgets provides small compatibility wrappers for newer Streamlit primitives. Pages can adopt modern controls while still running on older UI runtimes.

from agi_gui.ux_widgets import compact_choice, status_container, toast

selected = compact_choice(
    st.sidebar,
    "Steps file",
    available_steps_files,
    key="index_page",
    default=available_steps_files[0],
)

with status_container(st, "Running pipeline...", state="running") as status:
    run_pipeline()
    status.update(label="Pipeline completed", state="complete")
    toast(st, "Pipeline completed", state="success")

compact_choice uses st.segmented_control or st.pills when available and falls back to selectbox for long lists or older Streamlit versions.

Repository

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

agi_gui-2026.4.28.post2.tar.gz (19.3 kB view details)

Uploaded Source

Built Distribution

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

agi_gui-2026.4.28.post2-py3-none-any.whl (16.1 kB view details)

Uploaded Python 3

File details

Details for the file agi_gui-2026.4.28.post2.tar.gz.

File metadata

  • Download URL: agi_gui-2026.4.28.post2.tar.gz
  • Upload date:
  • Size: 19.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for agi_gui-2026.4.28.post2.tar.gz
Algorithm Hash digest
SHA256 d84a5293518c55eb617244c5f28bf2fa048de5587274587e8343f90b2733ade1
MD5 4103e4ce56ffa2b4ca4086f885d0be00
BLAKE2b-256 836080e2089c8f75c6c5243cfa8688d0c4eed65ac6890d21935b568adbb2a65b

See more details on using hashes here.

File details

Details for the file agi_gui-2026.4.28.post2-py3-none-any.whl.

File metadata

File hashes

Hashes for agi_gui-2026.4.28.post2-py3-none-any.whl
Algorithm Hash digest
SHA256 9055cd89fc9fb68f50dec52f1a7a3902219de2951f246ff8e7fbd6a7663b6673
MD5 df6a31d19276c65df72d557260230dab
BLAKE2b-256 274b6e1300d0fec90a97c0b7fe9aa865332eb81dcc8b9a16b7980f28e067e1a8

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