How cse-cyber-security/cybersecurity-asset-mini works
This is a small, file-backed cybersecurity asset inventory. Its principal workflow is to validate asset data, then add, search, update, delete, or display inventory records; a separate summary counts assets by risk and security status. The sampled source implements these operations in one class and reads/writes JSON. The README documents the capabilities, but no command-line or other application entry point is shown. Note that the source references ../data/assets.json, while the tree lists Data/assets.json; the configured path may not match the repository file, depending on the working directory and filesystem case sensitivity.
Main entry points: asset-inventory.py Asset inventory · assets.json Asset JSON file
Components 12
Inventory operations
- Asset inventory
src/asset-inventory.py - Asset validation
src/asset-inventory.py - Add asset
src/asset-inventory.py - Display assets
src/asset-inventory.py - Search asset
src/asset-inventory.py - Update asset
src/asset-inventory.py - Delete asset
src/asset-inventory.py - Security summary
src/asset-inventory.py
JSON storage
- Load assets
src/asset-inventory.py - Save assets
src/asset-inventory.py - Asset JSON file
Data/assets.json
Other components
- Inventory user
Connections 20
- Inventory user → Asset inventory: uses
- Asset inventory → Add asset: provides
- Asset inventory → Display assets: provides
- Asset inventory → Search asset: provides
- Asset inventory → Update asset: provides
- Asset inventory → Delete asset: provides
- Asset inventory → Security summary: provides
- Add asset → Asset validation: validates
- Add asset → Load assets: loads records
- Add asset → Save assets: saves records
- Display assets → Load assets: loads records
- Search asset → Load assets: loads records
- Update asset → Load assets: loads records
- Update asset → Asset validation: validates
- Update asset → Save assets: saves records
- Delete asset → Load assets: loads records
- Delete asset → Save assets: saves records
- Security summary → Load assets: loads records
- Load assets → Asset JSON file: reads
- Save assets → Asset JSON file: writes