GithubHelp home page GithubHelp logo

cleanupscripts's Introduction

CleanupScripts

Repository containing scripts to cleanup Callysto Curriculum and Catalogue Information.

Script Description

Description: This script performs cross comparison of notebooks in the 'Curriculum notebooks table for website' (URL https://docs.google.com/spreadsheets/d/1pw-p7uluSa7xWwHYn7ZgQ8jxkHwXnkDJa_NLR44TbS8/edit?usp=sharing) against notebooks found in GitHub repository https://github.com/callysto/curriculum-notebooks and determines what notebooks are in the repository that have not been added to spreadsheet.

Similarly, this script then compares 'Curriculum notebooks table for website' (URL https://docs.google.com/spreadsheets/d/1pw-p7uluSa7xWwHYn7ZgQ8jxkHwXnkDJa_NLR44TbS8/edit?usp=sharing)
against 'Callysto Notebook Development Catalogue' (URL https://docs.google.com/spreadsheets/d/1ZJ1jux31RFV_dgiBLS4DWLlKSPvjFQAjvvHj5y0hwfE/edit?usp=sharing) and determines what notebooks are missing in the 'Curriculum notebooks table for website' table

Script Usage

usage python3 CatalogueVCurriculumNotebooks.py -h 


  usage: CatalogueVCurriculumNotebooks.py [-h]
                                          website_spreadsheet_id
                                          website_spreadsheet_range
                                          catalogue_spreadsheet_id
                                          catalogue_spreadsheet_range
                                          github_rep_path

  Cross comparison of content between GitHub repostory and Listed Notebooks in Callysto Curriculum Website.

  positional arguments:
    website_spreadsheet_id
                                Google Spreadsheet ID associated to Curriculum Website ID.
    website_spreadsheet_range
                                Range of coverage specified by sheet name and range, i.e. 'Sheet1!A1:G82'
    catalogue_spreadsheet_id
                                Google Spreadsheet ID associated to Curriculum Catalogue ID.
    catalogue_spreadsheet_range
                                Range of coverage specified by sheet name and range, i.e. 'Sheet1!A1:G82'
    github_rep_path             Full path to cloned GitHub repository https://github.com/callysto/curriculum-notebooks

  optional arguments:
    -h, --help            show this help message and exit

Working example to spreadsheet Curriculum notebooks table for website where its ID is

1pw-p7uluSa7xWwHYn7ZgQ8jxkHwXnkDJa_NLR44TbS8

and range Sheet1!A1:G82.

Similarly, Callysto Notebook Development Catalogue whose spreadsheet ID is

        1ZJ1jux31RFV_dgiBLS4DWLlKSPvjFQAjvvHj5y0hwfE 

and range Catalogue!A1:I121.

For this example, we git cloned the repository Callysto Curriculum Notebooks in local directory

    /Users/laura.gf/Documents/Callysto/curriculum-notebooks/

Begin working example

    %python3 CatalogueVCurriculumNotebooks.py '1pw-p7uluSa7xWwHYn7ZgQ8jxkHwXnkDJa_NLR44TbS8' 'Sheet1!A1:G82' '1ZJ1jux31RFV_dgiBLS4DWLlKSPvjFQAjvvHj5y0hwfE' 'Catalogue!A1:I121' '/Users/laura.gf/Documents/Callysto/curriculum-notebooks/'

cleanupscripts's People

Watchers

David Hay avatar

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.