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
Hashes for get_gitlab_issues-0.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8895f7fd757729381ba5c0596579c82ede2fe29860cf1d19a0966b4b550e13cb |
|
MD5 | 7874866ccfbc2abd9715b2b5347e5fc1 |
|
BLAKE2b-256 | 65b418187a279408e1852a4a4ea500c2e5ac7f8c00d5de8ec43e1e6c80509864 |