Reference

cli

Processes command line arguments.

cli.print_ips()[source]

Print private and public IP.

cli.start(argv)[source]

Print banner and process args.

common

Common use constants and functions.

common.banner()[source]

Returns banner text.

common.license_()[source]

Returns license text, read from a file.

common.load_data(filename=u'C:\\Users\\JMatos\\MEOCloud\\Github\\ipaddresses\\ipaddresses\\data.json')[source]

Load data (list).

common.save_data(data_lst, filename=u'C:\\Users\\JMatos\\MEOCloud\\Github\\ipaddresses\\ipaddresses\\data.json')[source]

Save data (list).

common.sleep(seconds=5)[source]

Pause for specified time.

common.usage()[source]

Returns usage text, read from a file.

common.version()[source]

Returns version.

gui_tk_func

GUI using tkinter.

gui_tk_func.start()[source]

Print banner and start GUI.

ipaddresses

Show private and public IP addresses.

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

ipaddresses.main()[source]

Start CLI or GUI.

localization

Localization.

localization.sys_lang()[source]

Get system language.

shared

Shared constants and functions between CLI and GUI modules.

shared.get_private_ip()[source]

Get private IP address.

shared.get_public_ip()[source]

Get public IP address.