https://github.com/mauricelambert/supplychainanalysis
This module provides CLI and functions to analyse supply chain and dependencies in python packages and apt packages.
https://github.com/mauricelambert/supplychainanalysis
apt python statistics supply-chain supply-chain-management supply-chain-security
Last synced: 9 days ago
JSON representation
This module provides CLI and functions to analyse supply chain and dependencies in python packages and apt packages.
- Host: GitHub
- URL: https://github.com/mauricelambert/supplychainanalysis
- Owner: mauricelambert
- License: gpl-3.0
- Created: 2025-09-03T19:09:31.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-09-03T19:10:29.000Z (10 months ago)
- Last Synced: 2026-03-06T18:52:30.561Z (4 months ago)
- Topics: apt, python, statistics, supply-chain, supply-chain-management, supply-chain-security
- Language: Python
- Homepage:
- Size: 21.5 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README

# SupplyChainAnalysis
## Description
This module provides CLI and functions to analyse supply chain and
dependencies in python packages and apt packages.
## Requirements
This package require:
- python3
- python3 Standard Library
### Optional
- python3-apt
## Installation
### Pip
```bash
python3 -m pip install SupplyChainAnalysis
```
### Git
```bash
git clone "https://github.com/mauricelambert/SupplyChainAnalysis.git"
cd "SupplyChainAnalysis"
python3 -m pip install .
```
### Wget
```bash
wget https://github.com/mauricelambert/SupplyChainAnalysis/archive/refs/heads/main.zip
unzip main.zip
cd SupplyChainAnalysis-main
python3 -m pip install .
```
### cURL
```bash
curl -O https://github.com/mauricelambert/SupplyChainAnalysis/archive/refs/heads/main.zip
unzip main.zip
cd SupplyChainAnalysis-main
python3 -m pip install .
```
## Usages
### Command line
```bash
SupplyChainAnalysis # Using CLI package executable
python3 -m SupplyChainAnalysis # Using python module
python3 SupplyChainAnalysis.pyz # Using python executable
SupplyChainAnalysis.exe # Using python Windows executable
SupplyChainAnalysis # help message
SupplyChainAnalysis.py module ([--count/-c]|[--details/-s]|[--packages|-p]|[package names, ...])
SupplyChainAnalysis apt -c
SupplyChainAnalysis apt --count
SupplyChainAnalysis apt -p
SupplyChainAnalysis apt --packages
SupplyChainAnalysis apt -d | grep gnome
SupplyChainAnalysis apt --details | grep python3 | awk '{ print $3 }'
SupplyChainAnalysis apt python3 perl bash
SupplyChainAnalysis importlib
SupplyChainAnalysis pkg_resources
```
### Python script
```python
from SupplyChainAnalysis import *
apt = AptPackagesAnalysis()
for package in apt.package_seen_tree("python3"):
print(*package)
importlib = ImportlibPackagesAnalysis()
importlib.dependencies_count("python3")
importlib.make_statistics()
pkg_resources = PkgResourcesPackagesAnalysis()
pkg_resources.get_all()
pkg_resources.get_dependencies("requests")
pkg_resources.check_exists("flake8")
```
## Links
- [Pypi](https://pypi.org/project/SupplyChainAnalysis)
- [Github](https://github.com/mauricelambert/SupplyChainAnalysis)
- [Documentation](https://mauricelambert.github.io/info/python/security/SupplyChainAnalysis.html)
- [Python executable](https://mauricelambert.github.io/info/python/security/SupplyChainAnalysis.pyz)
- [Python Windows executable](https://mauricelambert.github.io/info/python/security/SupplyChainAnalysis.exe)
## License
Licensed under the [GPL, version 3](https://www.gnu.org/licenses/).