Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sergey360/python-dependencies-collector
A Python script to collect and aggregate dependencies from multiple GitLab repositories
https://github.com/sergey360/python-dependencies-collector
automation dependencies dependency-management gitlab package-management python requirements tools tools-and-automation utilities
Last synced: 2 months ago
JSON representation
A Python script to collect and aggregate dependencies from multiple GitLab repositories
- Host: GitHub
- URL: https://github.com/sergey360/python-dependencies-collector
- Owner: Sergey360
- License: mit
- Created: 2024-07-05T20:26:08.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-07-05T21:58:57.000Z (7 months ago)
- Last Synced: 2024-10-19T22:36:32.643Z (3 months ago)
- Topics: automation, dependencies, dependency-management, gitlab, package-management, python, requirements, tools, tools-and-automation, utilities
- Language: Python
- Homepage:
- Size: 4.88 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Python Dependencies Collector
A Python script to collect and aggregate dependencies from multiple GitLab repositories.
## Features
- Collects dependencies from `requirements.txt` files across multiple repositories.
- Checks `main`, `master`, and `dev` branches.
- Saves dependencies to `all_dependencies.txt` and `all_dependencies_clean.txt`.## Installation
```bash
git clone https://github.com/Sergey360/python-dependencies-collector.gitcd python-dependencies-collector
python -m venv venv
source venv/bin/activate # On Windows use `venv\Scripts\activate`
pip install -r requirements.txt
```## Usage
Update the GITLAB_URL and PRIVATE_TOKEN in the script with your GitLab instance URL and personal access token.
Run the script:
```bash
python python-dependencies-collector.py
```## Output
The 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.## License
This project is licensed under the MIT License.