The fastest way to get started is using GitHub Codespaces:
- Click the Code button on the repository
- Select the Codespaces tab
- Click Create codespace on main
- Wait for the environment to build (dependencies install automatically)
- Once ready, run:
streamlit run app.py # Or use the quick start script: ./start.sh - Click the pop-up notification to open the app in your browser
git clone https://github.com/Takeoff-Techworks/python-starter.git
cd python-starter- In VSCode open command palette with Ctrl/Command + Shift + P
- In search bar type environment
- Select Python > Create Environment > venv > Create new
- Open a new terminal with Ctrl/Cmd + Shift + C to verify environment is activated
# On Windows
python -m venv venv
venv\Scripts\activate
# On macOS/Linux
python3 -m venv venv
source venv/bin/activatepip install -r requirements.txt# Copy the example environment file
cp .env.example .env
# Edit .env with your configurationstreamlit run app.py
# Run with file watcher for auto-reload
streamlit run app.py --server.runOnSave trueThe app will open automatically in your default browser at http://localhost:8501
Edit the .env file to configure:
- App name and version
- API keys
- Debug mode
- Server settings
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
If port 8501 is already in use:
streamlit run app.py --server.port 8502Make sure all dependencies are installed:
pip install -r requirements.txtDeactivate and reactivate your virtual environment:
deactivate
source venv/bin/activate # On macOS/Linux
venv\Scripts\activate # On Windows