Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

199 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Methods Hub Method Template

The Methods Hub Method Template is built using Cookiecutter. It helps to preload the project directory with the necessary files required for the Methods Hub i.e.,

  • postBuild file to generate the method homepage and deploy the method in the interactive environment
  • README.md with the desired subsections and their specifications
  • Within project directory structure having
    • data for the input and output files
    • binder for the postBuild and environment preserving files
    • .github for the GitHub workflows
  • CITATION.CFF file for attribution
  • Environment preservation files (environment.yml and requirements.txt)
  • GitHub workflow file methodshub.yml to review the method

How to Use

  1. Install Cookiecutter
  • With uv: uv tool install cookiecutter
  • With pip: python3 -m pip install --user cookiecutter
  • With Anaconda: conda install cookiecutter
  1. Check Cookiecutter version: cookiecutter --version
  • if not found on Linux/MacOS
    • echo $SHELL
    • for /bin/bash:
      • echo 'export PATH="$HOME/.local/bin:PATH"' >> ~/.bashrc
      • source ~/.bashrc
    • for /bash/zsh:
      • echo 'export PATH="$HOME/.local/bin:PATH"' >> ~/.zshrc
      • source ~/.zshrc
  1. Get Python method template with Cookiecutter: cookiecutter https://github.com/BDA-KTS/MethodsHub-method-template.git
  2. Work on your method locally, until ready
  3. Upload to GitHub
  • Create a GitHub repository providing required details and make it public
  • In your terminal in the method directory
    • git init
    • git add .
    • git commit -m "method ..."
  • Push changes from local directory
  • git remote add origin https://github.com/your-username/your-repo.git
  • git push -u origin main

It internally uses git clone to clone the template repository locally while setting specific configurations for the method.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages