A cookiecutter skeleton and style guide lines for SMO/MRML python tools.
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.
To generate HTML/PDF documentation via pdoc3 run either of the following in your venv-shell:
pdoc3 --html --http localhost:8090 your_new_project/
for an interactive preview of the HTML-docs.
- Install
poetry
if you don't have it:pip install poetry
. - Clone this repo, go into the repo's folder.
- Install the dependencies with
poetry install
and spawn a shell in your new virtual environment withpoetry shell
. - Use
cd ..
to navigate to the parent directory. - 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. - Leave the virtual environment of this repo using
deactivate
- Create a Git-repository in your newly created project folder.
- Done, over and out.
2023, The Social Media Observatory Team under the MIT license.