Tool to help create files needed to deploy Streamlit App on Heroku
Project description
streamlit-heroku
This is a command line tool to help create necessary files to deploy a Streamlit app on Heroku
Installation
pip install streamlit-heroku
Instructions
From the top directory of a git repo, run the following command:streamlit_heroku
If you run the command in an empty repo named new-app, the repo will now contain the following tree:
.
├── new-app
│ └── app.py
├── Procfile
├── requirements.txt
├── runtime.txt
└── setup.sh
The main Streamlit app should go in new-app/app.py.
After installing dependencies, you will need to update the requirements.txt. Here is an example of one method:
pip freeze > requirements.txt
Note:
This template assumes Python version 3.9.7, which is the default version for Heroku. If you want to use a different version, you can update runtime.txt. The following runtimes are supported on all supported stacks:python-3.10.0
python-3.9.7
python-3.8.12
python-3.7.12
python-3.6.15
Deploy
Your project should ready to deploy using the Heroku CLI.Create Heroku App
heroku create
Push to Heroku
git push heroku main
Open your app
heroku open
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 streamlit-heroku-0.0.2.tar.gz.
File metadata
- Download URL: streamlit-heroku-0.0.2.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.5.0.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3132eede27ae3cbadfabfeaa684d0de1d6d6899e045cb37cc509b8216b72bc73
|
|
| MD5 |
098f658ff6fe39557d2b5e23e9cf6b53
|
|
| BLAKE2b-256 |
ac23c63aa5f9c63e7e3d0c29457c38c1e4e9c0649e416f49b08893f9e10fb97f
|
File details
Details for the file streamlit_heroku-0.0.2-py3-none-any.whl.
File metadata
- Download URL: streamlit_heroku-0.0.2-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.5.0.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ecbaf438c529595de94350dcc567ade4574083373a6e5bfc4fb0d7f84b3fb6a3
|
|
| MD5 |
29cdd037d5f4482c2414ebe010085214
|
|
| BLAKE2b-256 |
4aa240db9c9d0a6e60a4364adc052dc8417b6328407b6ec8c0ff857f35eb029e
|