sysinfo
Cross-platform Python system inventory for Linux, macOS, and Windows — modular collectors, powerful redaction, and JSON/YAML/XML/HTML output.
Two PyPI packages share this documentation:
| Package | Install | Role |
|---|---|---|
lupaxa-sysinfo |
pip install lupaxa-sysinfo |
Library API (collect_report) |
lupaxa-sysinfo-cli |
pip install lupaxa-sysinfo-cli |
sysinfo command and exporters |
The console command is sysinfo. It is registered only by
lupaxa-sysinfo-cli. You can also run python -m lupaxa.sysinfo_cli.
What it does
- Collects basic host metadata by default (pretty-printed JSON)
- Opt-in collectors for CPU, memory, disks, network, ports, processes, firewall, runtimes, GPU, packages, services, hosts/DNS, logs, storage, extra hardware, and package-manager layouts
- Redacts hosts, users, homes, emails, IPs, MACs, secrets, domains, and custom regexes before output
- Profiles for common workflows:
minimal,ci,support - Exports JSON, YAML, XML, compact HTML, or a human-readable summary (CLI)
Safe defaults
- Only basic info is collected unless you enable sections or a profile
- Environment variables require explicit
--env;--alland profiles do not enable them - In the CLI, redaction is opt-in: raw output is printed unless you pass
--redact-all(or individual--redact-*flags) for shareable dumps - In the library,
collect_report()redacts by default; passredact=Falseor a customRedactOptionsto change that - Missing OS tools are skipped or normalized with
--strict-missing
Next steps
- Getting started — install and first run
- Usage — profiles, sections, and redaction
- Reference — command-line options
- Examples — copy-paste recipes