Skip to content

DanilaNagornyi/python-gitlab-api-request

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitLab API Request Project

Python GitLab Requests

A simple Python-based tool to interact with the GitLab API and fetch project information.

🚀 Features

  • Fetches public projects for a specific GitLab user.
  • Parses JSON responses from the GitLab API.
  • Displays project names and their corresponding HTTP repository URLs.

🛠️ Tech Stack

  • Python: Core programming language.
  • Requests Library: For handling HTTP requests.
  • GitLab API v4: Data source.

📦 Installation

  1. Clone the repository:

    git clone https://github.com/DanilaNagornyi/gitlab-api-request.git
    cd gitlab-api-request
  2. Create and activate a virtual environment:

    python3 -m venv venv
    # On macOS/Linux:
    source venv/bin/activate
    # On Windows:
    venv\Scripts\activate
  3. Install dependencies:

    pip install -r requirements.txt

🖥️ Usage

Run the main script to fetch and display the projects:

python main.py

Example Output:

Project Name: My Awesome Project
Project Url: https://gitlab.com/user/my-awesome-project.git
...

📂 Project Structure

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

📄 License

This project is open-source and available under the MIT License.

About

Python-based tool to interact with the GitLab API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages