A Python package for extracting issues from GitLab repositories.
Project description
Get GitLab Issues
Get GitLab Issues
is a Python package designed to facilitate the extraction and management of issues from GitLab repositories. This tool is essential for developers looking to streamline their issue tracking processes directly through Python scripts.
Installation
To install Get GitLab Issues
, you can use pip:
pip install get-gitlab-issues
Usage
Get GitLab Issues
provides a straightforward API to interact with GitLab issues. Below is an example of how to use the package to retrieve issues and check user access:
Example
from get_gitlab_issues import check_access, get_gitlab_issues, get_gitlab_issue
# Check user access
if check_access('YOUR_PRIVATE_TOKEN', 'https://gitlab.example.com'):
print("Access verified")
# Fetch issues for a specific group
issues = get_gitlab_issues('YOUR_PRIVATE_TOKEN', 'https://gitlab.example.com', '123456')
for issue in issues:
print(issue.title, issue.description)
# Fetch a specific issue
issue_detail = get_gitlab_issue('YOUR_PRIVATE_TOKEN', 'https://gitlab.example.com', '123456', '1')
print(issue_detail.title, issue_detail.description)
Functions
check_access(token, url)
: Checks if the provided token has access to the GitLab API.get_gitlab_issues(token, url, group_id, labels=None, iteration_id=None)
: Retrieves a list of issues from a specified group.get_gitlab_issue(token, url, project_id, issue_id)
: Retrieves details for a specific issue.
Features
- Simple installation and easy usage.
- Efficient access to GitLab issues through the API.
- Ability to check user access and retrieve specific issues or lists of issues.
Contributing
Contributions, issues, and feature requests are welcome! Feel free to check the issues page.
License
This project is licensed under the MIT License.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file get-gitlab-issues-0.0.8.tar.gz
.
File metadata
- Download URL: get-gitlab-issues-0.0.8.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e84a5d9664629b1873821b288c13d3237f73ef5757433a84eed0eee08a28b02 |
|
MD5 | 8f05a809259db15bc5191b8489f42cc7 |
|
BLAKE2b-256 | 25ec5f3cd32d76e2ee9ebf8f8da812deea2258882ac64d308af7143992af07a5 |
File details
Details for the file get_gitlab_issues-0.0.8-py3-none-any.whl
.
File metadata
- Download URL: get_gitlab_issues-0.0.8-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8895f7fd757729381ba5c0596579c82ede2fe29860cf1d19a0966b4b550e13cb |
|
MD5 | 7874866ccfbc2abd9715b2b5347e5fc1 |
|
BLAKE2b-256 | 65b418187a279408e1852a4a4ea500c2e5ac7f8c00d5de8ec43e1e6c80509864 |