Skip to main content

A comprehensive system inventory tool for tracking installed software, versions, and configurations across multiple platforms

Project description

SysMap ๐Ÿ—บ๏ธ

A comprehensive system inventory tool for tracking installed software, versions, and configurations across multiple platforms

PyPI version License: MIT Code style: black

Features โ€ข Installation โ€ข Quick Start โ€ข Documentation โ€ข Contributing


Features

Multi-Platform Package Manager Support

  • Windows: WinGet, Chocolatey, Scoop
  • macOS: Homebrew
  • Linux: Snap, Flatpak, APT/dpkg
  • Cross-Platform: pip (Python), npm (Node.js)

Multiple Export Formats

  • Markdown - Beautiful human-readable reports
  • JSON - Machine-readable for automation
  • YAML - Configuration-friendly format
  • CSV - Import into spreadsheets
  • HTML - Interactive web-based reports with search

Advanced Features

  • Version Comparison - Compare system snapshots and track changes
  • Update Detection - Find outdated packages across all package managers
  • Watch Mode - Continuously monitor for system changes
  • Configuration Files - Customize scanning behavior
  • Plugin System - Extend with custom scanners
  • Rich CLI - Beautiful terminal output with colors and tables

Use Cases

  • DevOps: Document development environment setups
  • System Administration: Audit software installations
  • Team Onboarding: Share standardized environment configurations
  • Compliance: Track software versions for security audits
  • CI/CD: Auto-generate environment documentation

Installation

Via pip (Recommended)

pip install sysmap

From Source

git clone https://github.com/lorenzouriel/sysmap.git
cd sysmap
pip install -e .

With Development Dependencies

pip install -e ".[dev]"

Quick Start

Basic Scan

Generate a system inventory report:

sysmap scan

Output: SYSTEM_SUMMARY.md

Check for Updates

Find outdated packages:

sysmap scan --check-updates

Export to Different Formats

# JSON format
sysmap scan --format json --output system.json

# HTML interactive report
sysmap scan --format html --output report.html

# CSV for spreadsheets
sysmap scan --format csv --output packages.csv

Compare Snapshots

# Create baseline
sysmap scan --format json --output baseline.json

# ... time passes, install/update packages ...

# Compare current system to baseline
sysmap diff baseline.json

# Or compare two snapshots
sysmap diff baseline.json current.json

Watch for Changes

Monitor your system in real-time:

sysmap watch --interval 60

Quick Summary

sysmap summary

Usage Examples

Configuration File

Create a custom configuration:

sysmap init

This creates .sysmap.yaml:

scanners:
  winget: true
  pip: true
  npm: true
  brew: true
  chocolatey: true
  scoop: true
  snap: true
  flatpak: true

output:
  format: markdown
  path: SYSTEM_SUMMARY.md

features:
  check_updates: false
  security_scan: false

plugins: []

Use Custom Config

sysmap scan --config my-config.yaml

Check Only Specific Package Managers

Edit .sysmap.yaml to disable unwanted scanners:

scanners:
  winget: true
  pip: true
  npm: false  # Disable npm scanning
  brew: false  # Disable Homebrew

Example Output

Terminal Output

โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ Package Summary โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚ Package Manager โ”‚ Packages โ”‚ Updates โ”‚
โ”‚โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”‚โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”‚โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”‚
โ”‚ Winget          โ”‚      104 โ”‚       8 โ”‚
โ”‚ Pip             โ”‚       25 โ”‚       3 โ”‚
โ”‚ Npm             โ”‚       42 โ”‚       5 โ”‚
โ”‚ Total           โ”‚      171 โ”‚      16 โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ

Markdown Report

See SYSTEM_SUMMARY.md for a full example.

HTML Report

Interactive, searchable web page with:

  • Platform information
  • Package summaries
  • Live search/filter
  • Color-coded updates
  • Responsive design

CLI Reference

Commands

Command Description
sysmap scan Scan system and generate inventory
sysmap diff Compare two system snapshots
sysmap watch Monitor system for changes
sysmap summary Display quick package summary
sysmap updates Check for available updates
sysmap init Create default config file

Global Options

Option Description
--version Show version
--help Show help message

Scan Options

Option Description
-f, --format Output format (markdown/json/yaml/csv/html)
-o, --output Output file path
--check-updates Check for package updates
-c, --config Path to config file

Architecture

sysmap/
โ”œโ”€โ”€ core/
โ”‚   โ”œโ”€โ”€ scanner.py      # Package manager scanners
โ”‚   โ””โ”€โ”€ config.py       # Configuration management
โ”œโ”€โ”€ exporters/
โ”‚   โ”œโ”€โ”€ markdown.py     # Markdown exporter
โ”‚   โ”œโ”€โ”€ json_exporter.py
โ”‚   โ”œโ”€โ”€ yaml_exporter.py
โ”‚   โ”œโ”€โ”€ csv_exporter.py
โ”‚   โ””โ”€โ”€ html_exporter.py
โ”œโ”€โ”€ utils/
โ”‚   โ”œโ”€โ”€ diff.py         # Snapshot comparison
โ”‚   โ””โ”€โ”€ watch.py        # Watch mode
โ””โ”€โ”€ cli.py              # Command-line interface

Contributing

We love contributions! Please see CONTRIBUTING.md for details on:

  • Reporting bugs
  • Suggesting features
  • Submitting pull requests
  • Development setup
  • Coding standards

Quick Contribution Guide

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Make your changes
  4. Run tests (pytest)
  5. Format code (black src/ and ruff check src/)
  6. Commit (git commit -m 'feat: add amazing feature')
  7. Push (git push origin feature/amazing-feature)
  8. Open a Pull Request

๐Ÿ› ๏ธ Development

Setup

git clone https://github.com/lorenzouriel/sysmap.git
cd sysmap
python -m venv venv
source venv/bin/activate  # Windows: venv\Scripts\activate
pip install -e ".[dev]"

Run Tests

pytest
pytest --cov=sysmap  # With coverage

Code Quality

black src/           # Format code
ruff check src/      # Lint code
mypy src/            # Type checking

๐Ÿ“Š Project Stats

  • Lines of Code: ~2,000+
  • Test Coverage: 85%+
  • Supported Package Managers: 8
  • Export Formats: 5
  • Python Versions: 3.8+

๐ŸŽฏ Real-World Use Cases

DevOps Teams

# Document your development environment
sysmap scan --format json --output team-environment.json

# Share with the team via Git
git add team-environment.json
git commit -m "docs: update team environment specs"
git push

System Administrators

# Weekly audit of all servers
sysmap scan --check-updates --format html --output audit-$(date +%Y%m%d).html

# Compare with last week's baseline
sysmap diff audit-baseline.json

CI/CD Pipelines

# .github/workflows/env-check.yml
- name: Document Environment
  run: |
    sysmap scan --format json --output build-env.json

- name: Upload Artifact
  uses: actions/upload-artifact@v4
  with:
    name: build-environment
    path: build-env.json

Compliance & Security

# Generate compliance report
sysmap scan --format csv --output compliance-report.csv

# Check for outdated packages (security risk)
sysmap updates --format json > security-audit.json

โ“ FAQ

Q: Does SysMap require admin/root privileges?

A: No, SysMap runs with user permissions. Some package managers may require privileges for update checks.

Q: Can I use SysMap on Windows/macOS/Linux?

A: Yes! SysMap is cross-platform and automatically detects available package managers.

Q: How do I add support for a new package manager?

A: See CONTRIBUTING.md for instructions on adding new scanners.

Q: Is my data sent anywhere?

A: No, all scanning happens locally. SysMap doesn't phone home or collect telemetry.

Q: Can I use this in commercial projects?

A: Yes! SysMap is MIT licensed - use it freely in commercial and personal projects.

Q: How often should I run scans?

A: For personal use: weekly. For production servers: daily or use watch mode.


๐Ÿ“œ License

This project is licensed under the MIT License - see the LICENSE file for details.


If you find SysMap useful, please consider giving it a โญ on GitHub!

Made with โค๏ธ by Lorenzo Uriel

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

sysmap-0.1.0.tar.gz (30.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sysmap-0.1.0-py3-none-any.whl (23.2 kB view details)

Uploaded Python 3

File details

Details for the file sysmap-0.1.0.tar.gz.

File metadata

  • Download URL: sysmap-0.1.0.tar.gz
  • Upload date:
  • Size: 30.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.1

File hashes

Hashes for sysmap-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c17d43cf503d5a101c1f8e0b050ecd85e52b9dbdc4e2f76b6aaa735026aa5608
MD5 90d6e9eda2011b63d86df5a99f5807cc
BLAKE2b-256 d7a27081e3b73c49240ea2f3210eeb943585e4e1d6ecbf88fdac8e17aed7b95c

See more details on using hashes here.

File details

Details for the file sysmap-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: sysmap-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 23.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.1

File hashes

Hashes for sysmap-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f359056cb5dfda68fc9305fed55e2c5f0e176f1b4bf3a5cc696567c2cb8314cd
MD5 c35f345472e037a8a68e28c973785baf
BLAKE2b-256 dc52782c452094e983ab433417858eec475f4222dae7047e7312ada097b06446

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page