Coder Social home page Coder Social logo

smormlpy's Introduction

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:

  • pdoc3 --html --http localhost:8090 your_new_project/ for an interactive preview of the HTML-docs.

Installation and Project Generation

  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.

smormlpy's People

Contributors

pekasen avatar flxvctr avatar mo-fu avatar

Watchers

 avatar Kostas Georgiou avatar

smormlpy's Issues

feat: autogenerate html-documentation on version bump

E.g. running the following fish-snippet will generate a new version of the documentation in a subfolder:

set TAG (git describe --tags --abbrev=0)
poetry run pdoc3 --html --output-dir docs/$TAG {{ cookiecutter.project_slug }} 

Improve compatability with Windows paths

$ cookiecutter smormlpy\
>
A valid repository for "smormlpy" could not be found in the following locations:
smormlpy
C:\Users\me/.cookiecutters/smormlpy

I had to type out the entire path to folder to get it to work. So: it works, but is quite clunky. Maybe the instructions can be adjusted accordingly or a better solution found?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.