A set of streamlit apps and utilities used in creating the UI for Pydemic apps.
Install it using pip install pydemic-ui
or your method of choice. Now, you can just import
it and load the desired functions. You can use pydemic-ui as a drop-in replacement for streamlit
by using
>>> from pydemic_ui import st
>>> st.pydemic(locale="pt-BR")
Pydemic-ui comes with a few Streamlit apps ready to deploy. Just execute the app module specifying the desired app:
$ python -m pydemic_ui.apps calc
Currently, only the calc app is available, but other apps should arrive soon. For more options, execute it with the "--help" flag.
Install the dependencies using the command bellow. More details are available on flit documentation(https://flit.readthedocs.io/en/latest/cmdline.html):
$ flit install -s --user
After the installation is completed, run streamlit apps using invoke:
$ inv run
The project has been containerized in Docker in order to speed up the setup of the development environment. You can run the containers using the methods below:
You can run the project using Docker Compose by having it installed and running the following command:
$ docker-compose up pydemic-ui
The project has a devcontainer.json
, so you can open it inside a container using Visual Studio Code by having the "Remote - Containers" ms-vscode-remote.remote-containers
extension installed.