robvanvolt / python-template

A simple python template to start a project from.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Python-template

Description

This is a template for Python projects including a script to generate requirements.txt and a virtual environment that loads the system site packages to avoid having to install large libraries multiple times on the same machine.

Inspired by romaine's python template.

Development

Use base virtual environment

conda activate base

Create virtual environment

python -m venv venv --system-site-packages

Activate virtual environment

source venv/bin/activate

Create requirements.txt

python scripts/generate_requirements.py

Usage

Installation

pip install -r requirements.txt

Testing

pytest

Formatting

black .

About

A simple python template to start a project from.

License:MIT License


Languages

Language:Python 100.0%