comprehensive and concise system information querying tool
Project description
Comprehensive and concise system information tool.
It is also attempting to be fail-safe.
Usable as library and as a command-line tool.
as library
In [1]: from system_query import query_cpu
query_cpu()
Out[1]: {'brand': 'Intel(R) Core(TM) i7-3770K CPU @ 3.50GHz',
'clock': 1771.0370000000003,
'clock_max': 3900.0,
'clock_min': 1600.0,
'logical_cores': 8,
'physical_cores': 4}
More examples in examples.ipynb.
as command-line tool
For example:
$ python3 -m system_query
{'cpu': {'brand': 'Intel(R) Core(TM) i7-3770K CPU @ 3.50GHz',
'clock': 1725.031125,
'clock_max': 3900.0,
'clock_min': 1600.0,
'logical_cores': 8,
'physical_cores': 4},
'gpus': [],
'host': 'mbLab',
'os': 'Linux-4.4.0-109-generic-x86_64-with-debian-stretch-sid',
'ram': {'banks': [], 'total': 33701269504},
'swap': 0}
Usage information:
$ python3 -m system_query -h
usage: system_query [-h] [-s {all,cpu,gpu,ram}] [-f {raw,json}] [-t TARGET]
[--version]
Comprehensive and concise system information tool. Query a given hardware
and/or softawre scope of your system and get results in human- and machine-
readable formats.
optional arguments:
-h, --help show this help message and exit
-s {all,cpu,gpu,ram}, --scope {all,cpu,gpu,ram}
Scope of the query (default: all)
-f {raw,json}, --format {raw,json}
Format of the results of the query. (default: raw)
-t TARGET, --target TARGET
File path where to write the results of the query.
Special values: "stdout" and "stderr" to write to
stdout and stderr, respectively. (default: stdout)
--version show program's version number and exit
Copyright 2017-2018 by the contributors, Apache License 2.0,
https://github.com/mbdevpl/system-query
requirements
As defined in requirements.txt. Recommended (but optional) packages are listed in optional_requirements.txt.
Additionally, building and testing requires packages listed in test_requirements.txt.
contributors
Aleksandr Drozd
Mateusz Bysiek
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
system-query-0.1.0.tar.gz
(16.8 kB
view hashes)
Built Distribution
Close
Hashes for system_query-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d53d5a66ec5e82f7763a9084cc8e2c5e1284a130f3755b6c4630fd3e82bb72c3 |
|
MD5 | 1ae230f81c76a9dde14a93f33270cb4d |
|
BLAKE2b-256 | c174dfc7cc4da5820b18a74ea6c9e7b981c3f9c81a1a42ab35fae5de998b23eb |