unit_grader.config package

Submodules

unit_grader.config.data module

This module contains the conversion data for the conversion calculator.

unit_grader.config.enums module

This module contains the enums used in the conversion data.

class unit_grader.config.enums.Answer(value)[source]

Bases: Enum

This enum contains the grading result to a conversion question.

CORRECT = 'correct'
INCORRECT = 'incorrect'
INVALID = 'invalid'
class unit_grader.config.enums.UnitCategory(value)[source]

Bases: Enum

This enum contains the categories of units of measure.

TEMPERATURE = 'temperature'
VOLUME = 'volume'
class unit_grader.config.enums.TemperatureUnits(value)[source]

Bases: Enum

This enum contains the units of measure for temperature.

KELVIN = 'Kelvin'
CELSIUS = 'Celsius'
FAHRENHEIT = 'Fahrenheit'
RANKINE = 'Rankine'
class unit_grader.config.enums.VolumeUnits(value)[source]

Bases: Enum

This enum contains the units of measure for volume.

LITERS = 'liters'
TABLESPOONS = 'tablespoons'
CUBIC_INCHES = 'cubic-inches'
CUPS = 'cups'
CUBIC_FEET = 'cubic-feet'
GALLONS = 'gallons'

Module contents

This file is used to make the config folder a python package.


The config package contains the following

Modules:
  • data: Contains the data for unit, conversion, and help instructions.

  • enums: Contains the enums used in the conversion data.