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, you can install sysfacts for your user with:
pipx install sysfacts
The above command will create a virtual environment in ~/.local/pipx/venvs/sysfacts
and add the sysfacts script in ~/.local/bin.
In case you need to run sysfacts just once, without installing it, you can do it with
pipx run sysfacts
This way, pipx will create a temporary virtual environment, install sysfacts, run it
and cleanup afterwards.
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 --no-color
# YAML output
sysfacts --yaml
sysfacts --yaml --no-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
Metadata
Release files for sysfacts 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sysfacts-0.2.0.tar.gz | 4.3 kB | Without provenance | Details for sysfacts-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sysfacts-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for sysfacts-0.2.0-py3-none-any.whl |
Total release size: 11.3 kB
Release files / sysfacts-0.2.0.tar.gz
| Download URL | sysfacts-0.2.0.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fe954077c219f132828df4cb1b5f8d46529471f0111b86dac2cd91e21bdf6f59
|
|
BLAKE2b-256 checksum How to use checksums |
2093eda8ebe31d40eaeaa742d18b951bf6b33a0c72d6b01a5a1a215c29cbd3e6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/0.12.10 CPython/3.7.2 Linux/4.20.1-arch1-1-ARCH
|
Release files / sysfacts-0.2.0-py3-none-any.whl
| Download URL | sysfacts-0.2.0-py3-none-any.whl |
|---|---|
| Size | 7.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6b51fbd1733e992c87aeeb4cf97ea8f9b414d73708dbca948214b9841786b190
|
|
BLAKE2b-256 checksum How to use checksums |
fe6654ec4c6d0abd22e178479fe18d093387bf7be70fc25df7e8125a452131bb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/0.12.10 CPython/3.7.2 Linux/4.20.1-arch1-1-ARCH
|
Security for sysfacts 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.