Skip to main content

Get the macOS console username and/or a list of local non-system users.

Project description

macusers

Get the macOS console username and/or a list of local non-system users.

>>> import macusers
>>> macusers.console()
'bryanheinz'
>>> macusers.users()
['root', 'bryanheinz']
>>> macusers.users(False)
['bryanheinz']

This module is used to get the current or last (if the system currently doesn't have any logged in users) logged in console user on macOS instead of the user running the script/program. This module can also return a list of all local non-system created users.

Installing

You can install macusers using pip. macusers has been tested with Python 3.7 and 3.9.

> python3 -m pip install macusers

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for macusers, version 0.0.3
Filename, size File type Python version Upload date Hashes
Filename, size macusers-0.0.3-py3-none-any.whl (3.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size macusers-0.0.3.tar.gz (2.5 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page