retroarcher#

Responsible for starting RetroArcher.

class retroarcher.IntRange(stop: int, start: int = 0)[source]#

Bases: object

Custom IntRange class for argparse.

Prevents printing out large list of possible choices for integer ranges.

Parameters:
stopint

Range maximum value.

startint, default = 0

Range minimum value.

Examples

>>> IntRange(0, 10)
<retroarcher.IntRange object at 0x...>

Methods

__call__:

Validate that value is within accepted range.

retroarcher.main()[source]#

Application entry point.

Parses arguments and initializes the application.

Examples

>>> if __name__ == "__main__":
...     main()
retroarcher.wait()[source]#

Wait for signal.

Endlessly loop while pyra.SIGNAL = None. If pyra.SIGNAL is changed to shutdown or restart pyra.stop() will be executed. If KeyboardInterrupt signal is detected pyra.stop() will be executed.

Examples

>>> wait()