Skip to main content

llama-index readers gitlab integration

Project description

LlamaIndex Readers Integration: Gitlab

pip install llama-index-readers-gitlab

The gitlab readers package leverages python-gitlab to fetch contents from gitlab projects. It consists of two separate readers:

  1. Repository Reader
  2. Issues Reader

Access token or oauth token is required for private groups and projects.

Repository Reader

This reader will read through files in a repo based on branch or commit.

import gitlab
from llama_index.readers.github import GitLabRepositoryReader

gitlab_client = gitlab.Gitlab("https://gitlab.com")

project_repo_reader = GitLabRepositoryReader(
    gitlab_client=gitlab_client,
    project_id=project_id,
    verbose=True,
)

docs = project_repo_reader.load_data(file_path="README.rst", ref="develop")

Issues Reader

import gitlab
from llama_index.readers.github import GitLabIssuesReader

gitlab_client = gitlab.Gitlab("https://gitlab.com")

# load issues by project id
project_issues_reader = GitLabIssuesReader(
    gitlab_client=gitlab_client,
    project_id=project_id,
    verbose=True,
)

docs = project_issues_reader.load_data(
    state=GitLabIssuesReader.IssueState.OPEN
)

# load issues by group id
group_issues_reader = GitLabIssuesReader(
    gitlab_client=gitlab_client,
    group_id=group_id,
    verbose=True,
)

docs = group_issues_reader.load_data(state=GitLabIssuesReader.IssueState.OPEN)

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

llama_index_readers_gitlab-0.2.0.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

llama_index_readers_gitlab-0.2.0-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file llama_index_readers_gitlab-0.2.0.tar.gz.

File metadata

  • Download URL: llama_index_readers_gitlab-0.2.0.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.10.13 Darwin/23.6.0

File hashes

Hashes for llama_index_readers_gitlab-0.2.0.tar.gz
Algorithm Hash digest
SHA256 dce4329790e01a23284400414b79d8a3d43df961075775d75bf92fd1d4004eef
MD5 040b06ab335773805540c7c2805f9abe
BLAKE2b-256 14f191269c72685b9f1284921cd57038ca8adb5a19ed5690f8399b3ff9ed5e40

See more details on using hashes here.

File details

Details for the file llama_index_readers_gitlab-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for llama_index_readers_gitlab-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ba0dfda03e51998d6ba92939ae54feb81fb77f658af90b0ea300a83b9a63fa2a
MD5 57505a7169ad868c06976ffd8d64b4cf
BLAKE2b-256 2827e9cd55ff52bb23fea934f6dc6d6157f6f9221d5e9ff6f5d3e93b353bea99

See more details on using hashes here.

Supported by

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