A Python script to collect and aggregate dependencies from multiple GitLab repositories.
- Collects dependencies from
requirements.txtfiles across multiple repositories. - Checks
main,master, anddevbranches. - Saves dependencies to
all_dependencies.txtandall_dependencies_clean.txt.
git clone https://github.com/Sergey360/python-dependencies-collector.git
cd python-dependencies-collector
python -m venv venv
source venv/bin/activate # On Windows use `venv\Scripts\activate`
pip install -r requirements.txtUpdate the GITLAB_URL and PRIVATE_TOKEN in the script with your GitLab instance URL and personal access token.
Run the script:
python python-dependencies-collector.pyThe script generates two files:
all_dependencies.txt: Sorted list of all dependencies with versions.all_dependencies_clean.txt: Sorted list of all dependencies without versions and duplicates.
This project is licensed under the MIT License.