Skip to main content

Generate a Kahoot quiz from commits in a git repository

Project description

git-kahoot

Generate Kahoot quiz from commits in a git repository.

Installation

Requires Python 3.

pip install git-kahoot

Usage

Usage: git-kahoot [OPTIONS]

  Generate a Kahoot quiz from commits in a git repository.

Options:
  -d, --directory DIRECTORY       path to git repository (default: current
                                  directory) Specify this option multiple
                                  times to use multiple repositories.
  --since [%Y-%m-%d|%Y-%m-%dT%H:%M:%S|%Y-%m-%d %H:%M:%S]
                                  only include commits since this date
  --until [%Y-%m-%d|%Y-%m-%dT%H:%M:%S|%Y-%m-%d %H:%M:%S]
                                  only include commits up until this date
  -n, --count INTEGER RANGE       number of questions (default: 20, max: 100)
  -u, --username TEXT             Kahoot user name  [required]
  -p, --password TEXT             Kahoot password  [required]
  -t, --title TEXT                title of the generated quiz (default: "Git
                                  Commiter Quiz"
  --help                          Show this message and exit.

Examples

Specify path to git repository using the -d option. Omitting this options will try to use the current directory.

git-kahoot --directory /my/repo

Multiple git repositories can be specfied. Commits will be selected in a round-robin fashion.

git-kahoot --directory /my/repo --directory /my/second-repo

Only include commits between a date range.

git-kahoot --directory /my/repo --since 2015-01-01 --until 2018-01-01

Set the title of the generated quiz and the number of questions.

git-kahoot --title "My glorious quiz" --count 10

Specify credentials for your Kahoot account. You will be prompted for these credentials if you omit them.

git-kahoot --username AzureDiamond --password hunter2

Development setup

Assuming Python 3, pip and virtualenv is installed, clone the repository, set up a virtualenv and install the package as editable.

git clone git@github.com:janerist/git-kahoot.git
cd git-kahoot
virtualenv -p python3 venv
. venv/bin/activate (Windows: venv/Scripts/activate)
pip install --editable .
git-kahoot

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

git-kahoot-0.2.3.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

git_kahoot-0.2.3-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file git-kahoot-0.2.3.tar.gz.

File metadata

  • Download URL: git-kahoot-0.2.3.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for git-kahoot-0.2.3.tar.gz
Algorithm Hash digest
SHA256 2bd37ea70487a8b5a3bec43c0f11e74300fcb3688867d578a472e2737b33c502
MD5 b9750494f7e552f35988f51860c8dead
BLAKE2b-256 3728d06b6f3d1d1cedb5af95179653c9dddb52d7e1c3775ad91e7d8b16d94e93

See more details on using hashes here.

File details

Details for the file git_kahoot-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: git_kahoot-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for git_kahoot-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 51a14fb539b8c97ba1843d0b156af07c72a5d64e8eb34e8508f0ec5dcfe3f870
MD5 03126aae2c1849e652764b87de907f2a
BLAKE2b-256 9c9d84317cb36e6a9f0d33d4181431ec0c098e696348283d90a73e3d5fde38d4

See more details on using hashes here.

Supported by

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