This is a template for my go-to Python package starter.
Integrations:
- Pytest
- Poetry
- Git/Github
- MIT license
To generate the template you can run:
pip install pipx
pipx install cookiecutter
cookiecutter gh:PaoloGinefra/PythonPackageCookieCutterTemplateIf you pass a remoteOrigin, it will automatically setup a remote repository with the given url. If "None" is passed it will just setup a git repository without a remote origin.
Once you generated the template you can install the generated package with:
cd [packageName]
pip install -e .Poetry is a great way to manage dependencies. You can install it with
pipx install poetryOnce you have poetry set up, you can create a venv and install the dependencies with:
poetry config virtualenvs.in-project true #This will create the virtual environment in the project folder
poetry installAfter that you can dependencies with:
poetry add [your dep]