Collect system information
Project description
sysfacts
sysfacts
is a system information collector.
It can be used standalone or as a library. In order to achieve its goals, sysfacts
tries to leverage existing cross-platform python libraries.
Installation
pipx
The recommended installation method is pipx. More
specifically, if you need to run sysfacts
just once, you can do it from a temporary
virtual environment with:
pipx run sysfacts
If you need to actually install sysfacts
for your user you can do it with:
pipx install sysfacts
This command will create a virtual environment in ~/.local/pipx/venvs/sysfacts
and add
the sysfacts
script in ~/.local/bin
.
pip
Alternatively you can use good old pip
but this is more fragile than pipx
.
pip install --user sysfacts
As a dependency for another project
If you use poetry, you can use:
poetry add sysfacts
Usage
Standalone
On standalone mode the output format can be either JSON or YAML. You can also choose between a JSON data blob or colored, pretty-printed output.
sysfacts --help
# JSON output
sysfacts
sysfacts --pretty
sysfacts --pretty --color
# YAML output
sysfacts --yaml
sysfacts --yaml --color
API
The main function is collect_facts()
which returns a python dictionary.
from sysfacts import collect_facts
facts = collect_facts()
Alternative projects
Well, this is not really unique, since there are several similar projects out there
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file sysfacts-0.1.1.tar.gz
.
File metadata
- Download URL: sysfacts-0.1.1.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/0.12.10 CPython/3.7.2 Linux/4.20.1-arch1-1-ARCH
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d30b92a546baade72e72db5fe5d5fb706034253f26697364d10ca4f7e105d8f6 |
|
MD5 | 993f53712629b0f8ccae736934ebc62c |
|
BLAKE2b-256 | 8698b17fef98b802e488b877b786db3ad77a6c76beefdf23e0c66e01f7c20ecd |
Provenance
File details
Details for the file sysfacts-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: sysfacts-0.1.1-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/0.12.10 CPython/3.7.2 Linux/4.20.1-arch1-1-ARCH
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48fbd17dc9ab9725c4a7cd8b1e705051193b0db6477d6cfbc81e34bfeb5f24a0 |
|
MD5 | f773e711a8111ec084db9a3f2ed41d29 |
|
BLAKE2b-256 | 30ccc7bac1c8c5733920d0d933044f706b892a3079e676d96fcd0b6ef73cfa0c |