Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/brightway-lca/license-audit
repository to gather information about licenses used in brightway
https://github.com/brightway-lca/license-audit
Last synced: about 2 months ago
JSON representation
repository to gather information about licenses used in brightway
- Host: GitHub
- URL: https://github.com/brightway-lca/license-audit
- Owner: brightway-lca
- Created: 2023-04-21T19:55:32.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-15T14:53:44.000Z (about 1 year ago)
- Last Synced: 2024-01-25T06:38:32.291Z (11 months ago)
- Size: 82 KB
- Stars: 0
- Watchers: 6
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# License Audit for Brightway
Repository to gather information about licenses used in brightway.
## Brightway2X dependencies
Using the official brightway2 docker image, we calculated the list of packages and their licenses,
as well as a dependency graph.+ [list of bw2 dependencies](bw2-deps.csv)
+ [dependency graph for bw2](bw2-deps.pdf)
+ [list of dependencies](bw25-deps.csv)
+ [dependency graph for bw25](bw25-deps.pdf)The container was created with:
```
# for brightway2
docker run --rm -it -p 8888:8888 -v `pwd`:/license-audit brightway/bw2
``````
# for brightway25
docker run --rm -it -p 8888:8888 -v `pwd`:/license-audit brightway/bw25
```### list of dependencies
Use [pip-licenses]()
inside a container, add [pip-licenses](https://pypi.org/project/pip-licenses/)
```
pip install pip-licenses
```and create the list with:
```
pip-licenses --with-urls --with-authors -f csv > bw2-deps.csv
# For bw25:
pip-licenses --with-urls --with-authors -f csv > bw25-deps.csv
```### dependency graph
inside a container, add [graphviz](https://graphviz.org/) and [pipdeptree](https://pypi.org/project/pipdeptree/):
```
conda install python-graphviz
pip install pipdeptree
```and create the dependency graph in pdf + dot file with:
for bw2:
```
pipdeptree -p brightway2 -l --graph-output pdf > bw2-deps.pdf
pipdeptree -p brightway2 -l --graph-output dot > bw2-deps.dot
```for bw25:
```
pipdeptree -p brightway25 -l --graph-output pdf > bw25-deps.pdf
pipdeptree -p brightway25 -l --graph-output dot > bw25-deps.dot
```