Skip to main content

Easily manage homework submissions

Project description

manage your student's homework

Description

assuming you have asked your students to create a repo on github to submit their homework, this script will help you to clone all the repos in a folder, and will help you fetch/pull/merge all the repos in the folder at once

Installation

pip install collect-homework

Initial setup

  1. create a folder where you want to clone all the repos
  2. create a file named 00.ids in the folder
    this file should contain the github ids of all the students, one id per line
  3. at that point
    collect-homework clone
    
    will clone all the repos in the folder
  4. in order to pull all the repos in the folder
    collect-homework pull
    
  5. you get the gist of it; type
     collect-homework help
    
    to see all the available commands
  6. of particular interest is the collect-homework summary command, which will display the status of all the repos in the folder
  7. finally you can focus on one or several students by typing e.g. (this makes sense for most commands)
    collect-homework -s "JohnDoe JaneMartin" pull
    
    and then you can pull/merge/fetch only the repos of the students you have focused on

handling repo names

assuming you run this command in a folder e.g. /Users/johndoe/python-homework:

  • then by default all the students are expected to have a repo named python-homework
  • if this does not match your setup, you can specify the repo name in the 00.reponame file this one-line file should contain the name of all the repos, e.g. python-homework-2021
  • and if a student does not comply with that name, you can specify the repo name in the 00.repos file by writing student/repo instead of just student
    (you can even put the complete github url instead if that's more convenient for you)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

collect_homework-0.1.0.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

collect_homework-0.1.0-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file collect_homework-0.1.0.tar.gz.

File metadata

  • Download URL: collect_homework-0.1.0.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for collect_homework-0.1.0.tar.gz
Algorithm Hash digest
SHA256 480eeaf46f2da96fef4aff1e42cf2b628d426f8df4a60437e13d7e0f569bf030
MD5 7fc15f371304bf7d4ea83cde392b06dc
BLAKE2b-256 904cff2874baafad5f5945f1bee562b92accaa16c4b319f924b85cfc6facae1e

See more details on using hashes here.

File details

Details for the file collect_homework-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for collect_homework-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d064961ef23bcebf1833ef23a57ed972cc0c13d4b4bb805b2213465654bb61a9
MD5 77d8827d4abcd8b6f4026b495b92531e
BLAKE2b-256 dfe5acca5621d50c7f474659aa7d9d30ff22f6a501fbeb4271baee054c319ba3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page