Skip to main content

Jac-Streamlit Plugin

The jac-streamlit plugin provides seamless integration between the Jac programming language and Streamlit, enabling you to create interactive web applications and visualizations directly from Jac code.

Features

  • Direct Execution: Run Streamlit apps written in Jac with a single command
  • Graph Visualization: Interactive and static visualization of Jac graph structures
  • Testing Framework: Comprehensive testing support for Jac-Streamlit applications
  • Cross-Platform: Works on Windows, macOS, and Linux

Installation

pip install jac-streamlit

Quick Start

Running Jac Streamlit Applications

Execute a Streamlit app written in Jac:

jac streamlit app.jac

Visualizing Jac Graphs

Visualize your Jac graph structures in an interactive web interface:

jac dot_view app.jac

This opens a Streamlit application with two visualization modes:

  • Interactive View: Using streamlit-agraph for dynamic graph exploration
  • Static View: Using pygraphviz for traditional graph rendering

Testing

The plugin includes a testing framework compatible with Streamlit's testing methodology:

from jaclang_streamlit import AppTest

# Create test instance from Jac file
app_test = AppTest.from_jac_file("path/to/your/app.jac")

# Run the app and perform tests
app = app_test.run()
assert len(app.exception) == 0

Example

Here's a simple Jac Streamlit application:

import streamlit as st;

with entry {
    st.title("Hello Jac Streamlit!");
    name = st.text_input("Enter your name");
    if st.button("Greet") and name {
        st.success(f"Hello, {name}!");
    }
}

Requirements

  • Python 3.12+
  • Jac programming language (jaclang)
  • Streamlit 1.38+

Documentation

For comprehensive documentation and examples, visit jac-lang.org.

License

MIT License - see the LICENSE file for details.

Metadata

Release files for jac-streamlit 0.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for jac-streamlit 0.0.6
File Size Uploaded Provenance
jac_streamlit-0.0.6.tar.gz 5.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for jac-streamlit 0.0.6
File Interpreter ABI Platform
jac_streamlit-0.0.6-py3-none-any.whl Python 3 none any Details

Total release size: 10.8 kB

Release files / jac_streamlit-0.0.6.tar.gz

Download URL jac_streamlit-0.0.6.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
07a5290efd3519aba258f48912e869f2609f09da71bd823507092b14b81f3ff0
BLAKE2b-256 checksum
How to use checksums
3ab35718387137081f233e873418ed6ff79c44c8c7696de03d012bc65b2357cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.12

Release files / jac_streamlit-0.0.6-py3-none-any.whl

Download URL jac_streamlit-0.0.6-py3-none-any.whl
Size 5.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5b5a71ddc820e7deba382446050acc1d2638e01a0d972c9a987cb6d029181c49
BLAKE2b-256 checksum
How to use checksums
1883c7c354585928636d4910608b07b10ed4ed3e7dd332e00b58900b3fe7f9af
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.12

Security for jac-streamlit 0.0.6

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page