Skip to content

robvanvolt/python-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages