Skip to main content

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

Download files

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

Source Distribution

macusers-0.0.3.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

macusers-0.0.3-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file macusers-0.0.3.tar.gz.

File metadata

  • Download URL: macusers-0.0.3.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.0 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.0

File hashes

Hashes for macusers-0.0.3.tar.gz
Algorithm Hash digest
SHA256 1c52c855ac74046ef9b63df03cd1ace69a794d77555af4ae0a969c1a9ad3b4de
MD5 8fd70b075d43704ec7d2adf7c9f5254e
BLAKE2b-256 77cb61ce28d28b6430940dcd93e87ff5ca2b4af9b876012a77fda9f89be77fda

See more details on using hashes here.

File details

Details for the file macusers-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: macusers-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.0 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.0

File hashes

Hashes for macusers-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 bc78268ddaa81fd504377edf46ab3dfc4804d3407ee49f3a2698de44a1739e52
MD5 5bbb67ada4d7c58e795c8e90a96dd3c1
BLAKE2b-256 429d5dff9a01f872ceeb6d6c95dbf9573678dd8ae722dcc4f7a1b2564760e769

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page