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
AppTestclass fromjaclang_streamlit:
from jaclang_streamlit import AppTest
- Use the
AppTest.from_jac_file(filename)method to create an instance ofAppTestfor 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_testinstance 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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file jaclang_streamlit-0.0.3.tar.gz.
File metadata
- Download URL: jaclang_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.0 Linux/5.15.153.1-microsoft-standard-WSL2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
554537cd44624c2735947fa03097e29848559aec9280af7454985d22c31134a4
|
|
| MD5 |
1c0d55246ba7abcac61c58511e592ce9
|
|
| BLAKE2b-256 |
5d5ab9e3ac3ed621632264e415d49c54ece13fa25e4f5795ceb32eaa08c762e2
|
File details
Details for the file jaclang_streamlit-0.0.3-py3-none-any.whl.
File metadata
- Download URL: jaclang_streamlit-0.0.3-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.0 Linux/5.15.153.1-microsoft-standard-WSL2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
853a7927362fd0c2b1a959c626b304e47d40d2f7e82c3747cc0cba2dad67dd17
|
|
| MD5 |
2058d43948b1859d9564f87807510af9
|
|
| BLAKE2b-256 |
e2e8a7da7c3aec0fb050cf01b6cde71614583446d4f210ce88ba18d5ec16837c
|