An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

![SupplyChainAnalysis Logo](https://mauricelambert.github.io/info/python/security/SupplyChainAnalysis_small.png "SupplyChainAnalysis logo")

# 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/).