Reference

__init__.py

Initialization

__main__.py

Manage child(s) grounded days.

If there are any command line arguments it calls the cli module. Otherwise the gui module. See usage.txt for command line usage.

daysgrounded.__main__.main()[source]

Start CLI or GUI

cli.py

Processes command line arguments and updates child’s records.

daysgrounded.cli.auto_upd(childs, last_upd)[source]

Automatic update based on current date vs last update date.

daysgrounded.cli.man_upd(argv, childs, last_upd)[source]

Manual update based on args.

First it checks all args and only if all are correct are they processed.

daysgrounded.cli.print_state(childs, last_upd)[source]

Prints current state for each child.

daysgrounded.cli.start(argv)[source]

Print banner, read/create data & log file and process args.

gui.py

GUI allows setting the grounded days per child or auto update.

daysgrounded.gui.start()[source]

Print banner, read/create data & log file and start GUI.

shared.py

Shared constants and funtions.

daysgrounded.shared.auto_upd_datafile(childs, last_upd)[source]

Automatic update based on current date vs last update date.

daysgrounded.shared.banner()[source]

Returns banner text.

daysgrounded.shared.create_file()[source]

Create new data file and log file.

daysgrounded.shared.license_()[source]

Returns license text, read from a file.

daysgrounded.shared.open_create_datafile()[source]

Opens datafile if it exists, otherwise creates it.

daysgrounded.shared.read_file()[source]

Reads and returns childs and last_upd from the data file.

daysgrounded.shared.update_file(childs, last_upd)[source]

Update data file and log file.

The log file creates an history to be used in the future.

daysgrounded.shared.usage()[source]

Returns usage text, read from a file.

daysgrounded.shared.version()[source]

Returns version.

Table Of Contents

Previous topic

Tutorial

Next topic

License

This Page