Skip to content

mukundvarma/denoisify

Repository files navigation

Simple Streamlit project template

The purpose of this repository is to provide an initial project template for Streamlit apps that simplifies and speeds up development.

Development

Create the development environment

Create a virtual environment.

python -m venv .venv

Activate the virtual environment.

On Linux, macOS.

source .venv/bin/activate
python -m pip install --upgrade pip && \
pip install -r requirements-dev.txt

Edit the code

Start editing the app files in the app directory with your favourite editor.

For more information on how to develop Streamlit apps, check Streamlit documentation.

Run the app

Start the app with the streamlit run command.

streamlit run app/main.py

Testing

Run the tests.

pytest

For more information on testing, visit pytest documentation.

Deployment

The template is set up with Docker to deploy the app.

Configuration

Configure the streamlit config.toml to your needs.

When changing the default ports in the configuration, remember to also change them in docker run command.

Build the Docker image.

docker build -t streamlit-app .

Run the container.

docker run -dp 8501:8501 streamlit-app

Contributing

Contributions are very welcome.

To contribute:

  1. Create an issue you would like to work on.
  2. Fork the repository.
  3. Create a pull request and attach the issue.

Acknowledgments

The initial streamlit config comes from the great Awesome Streamlit repository.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published