Module pyreport.utils

Utility functions and classes for pyreport.

Functions

def get_tags(root)

Get a list of tags in a git repository.

Parameters

root : str
The root of the git repository.

Classes

class Switch (name, option1, option2)

A simple switch class that can be used to toggle between two options. Can be called to get the current option.

Constructor for the Switch class.

Parameters

name : str
The name of the switch.
option1 : any
The first option.
option2 : any
The second option.

Methods

def toggle(self)

Toggle the switch.