This Jac plugin adds a streamlit command line option for conveniently running streamlit apps written in Jac.
Project description
jaclang_streamlit Plugin Documentation
The jaclang_streamlit
plugin is a powerful tool that allows you to run and test Streamlit apps written in Jac. This documentation will guide you through the installation process and provide instructions on how to run and test your Jac Streamlit apps.
Installation
To install the jaclang_streamlit
plugin, you can use pip:
pip install jaclang_streamlit
Running Jac Streamlit Apps
To run a Streamlit app written in Jac, you can use the following command:
jac streamlit app.jac
Replace app.jac
with the path to your Jac Streamlit app file.
Generating Graphs with Jac Streamlit
If you want to visualize the graph of your Jac Streamlit app in a browser, you can use the following command:
jac dot_view app.jac
This will open up a Streamlit app in your browser, displaying the graph of your Jac Streamlit app.
Testing Jac Streamlit Apps
To test your Jac Streamlit app using the Streamlit testing framework, you can follow these steps:
- Import the
AppTest
class fromjaclang_streamlit
:
from jaclang_streamlit import AppTest
- Use the
AppTest.from_jac_file(filename)
method to create an instance ofAppTest
for your Jac Streamlit app:
app_test = AppTest.from_jac_file(filename)
Replace filename
with the path to your Jac Streamlit app file.
- You can now use the
app_test
instance to test your Jac Streamlit app using the Streamlit testing methodology.
Please note that the testing methodology for Jac Streamlit apps is similar to the one used for regular Streamlit apps.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file jac_streamlit-0.0.3.tar.gz
.
File metadata
- Download URL: jac_streamlit-0.0.3.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.4 Darwin/23.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d653f3d0fc77998b0e4ac9e18d4811dee0368e1cdbaf162ec691bb3e89389558 |
|
MD5 | 10b4d86d5aa4644bd94c95b0ad9ef7d1 |
|
BLAKE2b-256 | fd7dd5605ae334e27c3a3d0261450f31ff0fd6c1b4cccbe6f91c00f439717dc5 |
File details
Details for the file jac_streamlit-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: jac_streamlit-0.0.3-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.4 Darwin/23.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb9475691310ff8c5cf9653c31df1aa565116b8ffe3bc7b1a37ea512ce3c344a |
|
MD5 | 5514f271becc03056faa7b1c1a583a88 |
|
BLAKE2b-256 | 8038c661b0ffadf7127c95afcdc1b50396323fe578521c226f83d102f10d54a0 |