Leibniz-HBI / smormlpy

A cookiecutter skeleton for SMO/MRML python tools.
MIT License
0 stars 0 forks source link

smormlpy

A cookiecutter skeleton and style guide lines for SMO/MRML python tools.


Usage

This serves as our main repository on how to build tools and code. Additionally it comes with a cookiecutter-template which has the main features of our code-habits already integrated.

Version-Control

Documentation

To generate HTML/PDF documentation via pdoc3 run either of the following in your venv-shell:

  1. Install poetry if you don't have it: pip install poetry.
  2. Clone this repo, go into the repo's folder.
  3. Install the dependencies with poetry install and spawn a shell in your new virtual environment with poetry shell.
  4. Use cd .. to navigate to the parent directory.
  5. Generate your new project: cookiecutter smormlpy. This will ask you a couple of questions about your new project, finally a new folder named after your new project will be created.
  6. Leave the virtual environment of this repo using deactivate
  7. Create a Git-repository in your newly created project folder.
  8. Done, over and out.

2023, The Social Media Observatory Team under the MIT license.