omero-py
omero-py copied to clipboard
Add OS information to admin diagnostics
platform
contains some OS information that could be included:
import platform
for f in dir(platform):
pf = getattr(platform, f)
if callable(pf) and not f.startswith('_'):
try:
print('{}: {}'.format(f, pf()))
except TypeError:
pass
architecture: ('64bit', '')
dist: ('Ubuntu', '18.04', 'bionic')
java_ver: ('', '', ('', '', ''), ('', '', ''))
libc_ver: ('glibc', '2.15')
linux_distribution: ('Ubuntu', '18.04', 'bionic')
mac_ver: ('', ('', '', ''), '')
machine: x86_64
node: fa8842d76446
platform: Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic
processor: x86_64
python_branch:
python_build: ('default', 'Nov 27 2018 23:36:35')
python_compiler: GCC 7.3.0
python_implementation: CPython
python_revision:
python_version: 2.7.15+
python_version_tuple: ('2', '7', '15+')
release: 4.9.184-linuxkit
system: Linux
uname: ('Linux', 'fa8842d76446', '4.9.184-linuxkit', '#1 SMP Tue Jul 2 22:58:16 UTC 2019', 'x86_64', 'x86_64')
version: #1 SMP Tue Jul 2 22:58:16 UTC 2019
win32_ver: ('', '', '', '')