A simple Python-based tool to interact with the GitLab API and fetch project information.
- Fetches public projects for a specific GitLab user.
- Parses JSON responses from the GitLab API.
- Displays project names and their corresponding HTTP repository URLs.
- Python: Core programming language.
- Requests Library: For handling HTTP requests.
- GitLab API v4: Data source.
-
Clone the repository:
git clone https://github.com/DanilaNagornyi/gitlab-api-request.git cd gitlab-api-request -
Create and activate a virtual environment:
python3 -m venv venv # On macOS/Linux: source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install dependencies:
pip install -r requirements.txt
Run the main script to fetch and display the projects:
python main.pyProject Name: My Awesome Project
Project Url: https://gitlab.com/user/my-awesome-project.git
...
gitlab-api-request/
├── main.py # Main script to fetch data
├── requirements.txt # Project dependencies
├── pyproject.toml # Modern Python configuration
├── .gitignore # Git ignore rules
└── README.md # Project documentation
This project is open-source and available under the MIT License.