Skip to main content

A CLI to track grades

Project description

This is a CLI written in python for tracking grades. It reads data from a yaml file

Installation

Install this with

$ pip install grade-tracker

The Data File

The data file, by default read from $XDG_DATA_HOME/gradeTracker/data.yml is a yaml file containing the data to calculate with. An example of this file can be found in the github repository

The file should always contain a modules key with a list of submodules. These submodules should have a weighting set which sums to 100 (this is checked when gradeTracker is run). This represents how much this module is worth.

The key percent represents the mark given out of 100 for that assignment. If not set, gradeTracker will ignore the module or assume it's 0 depending on ignore_unmarked

A module can also have submodules by including the modules tag, and following the same pattern. gradeTracker should deal with any depths, though it is not thoroughly tested will many layers.

Configuration

Configuration is done in the yaml file $XDG_CONFIG_HOME/gradeTracker/config.yml. By default this is ​~/.config/gradeTracker/config.yml. An example of this file can be found in the github repository. There are 5 possible options:

ignore-unmarked

If set to true, gradeTracker will ignore variables without a mark attatched. If set to false, gradeTracker will assume they are 0. Defaults to true if unset.

data-file

This is the file that gradeTracker will read to calculate percentages. If not set, it will default to $XDG_DATA_HOME/gradeTracker/data.yml

indent-string

This is used each time gradeTracker indents. Default is " ", but "| " also looks nice

post-string

This is used after each mark is given. Defaults to "%"

total-weightingtolerance

How close we require the total weighting to be to 100. This is so that fractional percentages can be properly used.

Usage

The gradeTracker command has one required parameter, which is the command you would like to run. It has 3 options:

  • print-marks will calculate and output a breakdown of marks, calculating the percentages at each module
  • print-modules will output the module tree, showing the name, weighting and percent. This is essentially just reformatting the data.yml file.
  • check-config will check the data file and config file for validity.

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

grade-tracker-2.0.0.tar.gz (20.0 kB view details)

Uploaded Source

Built Distribution

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

grade_tracker-2.0.0-py3-none-any.whl (19.5 kB view details)

Uploaded Python 3

File details

Details for the file grade-tracker-2.0.0.tar.gz.

File metadata

  • Download URL: grade-tracker-2.0.0.tar.gz
  • Upload date:
  • Size: 20.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.11.3 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.64.0 CPython/3.9.12

File hashes

Hashes for grade-tracker-2.0.0.tar.gz
Algorithm Hash digest
SHA256 6096cc01e243fe7b59a2113b78c4e42c78c8766d377666d4ed19f36806d8f981
MD5 53f9c1219029bb4f5ebd2ac1c99002b2
BLAKE2b-256 d54547b5aceb1d4d0f4eb120edbf3940c007bb935b671be1b98f337bb90a9293

See more details on using hashes here.

File details

Details for the file grade_tracker-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: grade_tracker-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 19.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.11.3 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.64.0 CPython/3.9.12

File hashes

Hashes for grade_tracker-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 06b04891beccdbc451ff01bfc8601c3aca2e9829e8e1b292c80e1ea9fb2c79d0
MD5 5564a4377615e2c7e4093031cb56f501
BLAKE2b-256 f6bf0d7ea752cc3124e50deda42c4e44186a752b27d9df841a2ebac61d90031e

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