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
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
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Make your changes
- Run tests (
pytest) - Format code (
black src/andruff check src/) - Commit (
git commit -m 'feat: add amazing feature') - Push (
git push origin feature/amazing-feature) - 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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c17d43cf503d5a101c1f8e0b050ecd85e52b9dbdc4e2f76b6aaa735026aa5608
|
|
| MD5 |
90d6e9eda2011b63d86df5a99f5807cc
|
|
| BLAKE2b-256 |
d7a27081e3b73c49240ea2f3210eeb943585e4e1d6ecbf88fdac8e17aed7b95c
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f359056cb5dfda68fc9305fed55e2c5f0e176f1b4bf3a5cc696567c2cb8314cd
|
|
| MD5 |
c35f345472e037a8a68e28c973785baf
|
|
| BLAKE2b-256 |
dc52782c452094e983ab433417858eec475f4222dae7047e7312ada097b06446
|