BGraph
BGraph is a tool designed to generate dependencies graphs from Android.bp soong files.
Overview
BGraph (for Build-Graphs) is a project aimed at create build graphs from blueprints in AOSP and querying those graphs.
In short, this project builds/uses Unified Dependency Graph for the Android Open Source Project by parsing and linking modules defined in the Android build system Soong.
Use-cases
You should use this tool if you want to find:
- all the dependencies of a source file in AOSP;
- all the sources involved in the building of a target in AOSP;
- common dependencies between two targets.
Usage
% bgraph --help
Usage: bgraph [OPTIONS] COMMAND [ARGS]...
BGraph - generate and query build dependency graphes.
BGraph is used to manipulate build dependency graphs generated from
blueprint files. The main commands are:
- generate : used to generates multiples graphs
- query: used to query a previously generated graph
To get more help, see the online documentation.
Options:
-v, --verbose Activate verbose output [default: False]
--install-completion Install completion for the current shell.
--show-completion Show completion for the current shell, to copy it or
customize the installation.
--help Show this message and exit.
Commands:
generate Generate BGraph's from a mirror dir.
generate-single Generate a BGraph from a branch.
list List the BGraph already generated.
query Query a BGraph.
Installation
Using poetry
poetry install bgraph
Using pip
pip install bgraph
Using docker
docker build -f docker/Dockerfile -t bgraph .
This will create a container with git, repo and bgraph and will take some time (because it compiles git from the source).
See Docker for more instructions.
Prerequisites
- python3.8
Optional dependencies for the builder:
- repo
- git (>25): since we're using partial-checkouts, a modern version of git is required
- at least 1Go of free disk space
- (Optional: AOSP mirror)
See Building from AOSP for more details.
Documentation
Licence
Contributing
Contributions are always welcome!
See the Contribution documentation for details on all you need to know about contributing.
Authors
Metadata
Release files for bgraph 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| bgraph-0.1.0.tar.gz | 27.5 kB | Without provenance | Details for bgraph-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bgraph-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for bgraph-0.1.0-py3-none-any.whl |
Total release size: 58.1 kB
Release files / bgraph-0.1.0.tar.gz
| Download URL | bgraph-0.1.0.tar.gz |
|---|---|
| Size | 27.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1c585da2be2fbf7e1bd70e3026d50fc86aed38ce21f601fd464b91106bfbfa0e
|
|
BLAKE2b-256 checksum How to use checksums |
d500b6c5296ba680d9e1cd5a7e0bb7735356a7870d398b79b3a3882b0bfc9471
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.4 CPython/3.8.10 Linux/5.4.0-1047-azure
|
Release files / bgraph-0.1.0-py3-none-any.whl
| Download URL | bgraph-0.1.0-py3-none-any.whl |
|---|---|
| Size | 30.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b7d3f901ea07132a4d9f2ee8d48b1b5ce0b70c388ec0aa7101200eda3dd3ee58
|
|
BLAKE2b-256 checksum How to use checksums |
ee633c2af8deee949ea05300ad8a156e914a3f7a728d9cd96e3d353b02c53200
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.4 CPython/3.8.10 Linux/5.4.0-1047-azure
|
Security for bgraph 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.