Powered by Tachyonic Project Luxon Framework v0.0.0

Luxon Framework for rapid application development. (luxon)

Version

System Utilites

A number of useful OS functions

luxon.utils.system.get_current_uid()[source]

Get current uid

luxon.utils.system.get_current_gid()[source]

Get current uid gid

luxon.utils.system.get_login_uid(login)[source]

Get Login for UID

luxon.utils.system.get_group_gid(group)[source]

Get Group for GID

luxon.utils.system.get_uid_gid(uid)[source]

Get defined uid gid

luxon.utils.system.get_uid_login(uid)[source]

Get defined uid username

luxon.utils.system.get_gid_group(gid)[source]

Get defined gid group name

luxon.utils.system.get_current_group()[source]

Get current login uid group name

luxon.utils.system.get_current_login()[source]

Get current login uid username

luxon.utils.system.get_uid_name(uid)[source]

Get defined login uid fullname

luxon.utils.system.get_current_name()[source]

Get current login uid fullname

luxon.utils.system.get_uid_home(uid)[source]

Get defined uid home path

luxon.utils.system.get_current_home()[source]

Get current login uid home path

luxon.utils.system.get_all_groups()[source]

Get All Unix Groups

Returns list of tuples [(name, gid, members,),]

luxon.utils.system.get_login_groups(login)[source]

Get Assigned Groups for Login specified.

Returns list of [group1, group2,]

luxon.utils.system.get_uid_groups(uid)[source]

Get Assigned Groups for UID specified.

Returns list of [group1, group2,]

luxon.utils.system.get_current_groups()[source]

Get Assigned Groups for UID specified.

Returns list of tuples [(name, gid, members,),]

luxon.utils.system.get_current_pid()[source]

Get Current Process ID

luxon.utils.system.get_load_avg()[source]

Return average recent system load information.

Return the number of processes in the system run queue averaged over the last 1, 5, and 15 minutes as a tuple of three floats. Raises OSError if the load average was unobtainable.

luxon.utils.system.execute(*args, check=True, virtualenv=False)[source]
luxon.utils.system.get_uptime()[source]
luxon.utils.system.get_hostname()[source]