Template for future projects, incorporating best practices and essential project setup steps, including:
- init.sh script
- environment vars
- logging*
- tests
Recommend using black
formatter and ruff
linter.
See requirements.txt
To set up your development environment, follow these steps:
- Clone the repository:
git clone <this-repository-url>
- Navigate to the project directory:
cd python-base-app
- (Optional) Run the initialization script:
./init.sh
- use
chmod +x init.sh
to add execute permissions. - sets up a virtual environment and installs dependencies.
- use
- If not using the init script, create a virtual environment:
python3 -m venv venv
- Activate the virtual environment:
- On Windows:
.\venv\Scripts\activate
- On macOS/Linux:
source venv/bin/activate
- On Windows:
- Install dependencies:
pip install -r requirements.txt