Skip to main content

A Python package for extracting issues from GitLab repositories.

Project description

PyPI version License: MIT Downloads

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 project
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, project_id, labels=None, iteration_id=None): Retrieves a list of issues from a specified project.
  • 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

get-gitlab-issues-0.0.7.tar.gz (3.7 kB view hashes)

Uploaded Source

Built Distribution

get_gitlab_issues-0.0.7-py3-none-any.whl (4.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page