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.1.0.tar.gz (4.9 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.1.0-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: llama_index_readers_gitlab-0.1.0.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/6.5.0-1024-azure

File hashes

Hashes for llama_index_readers_gitlab-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1714eed0a3bf16d7373fdcf84f3f43c96449b71d87843eba2da4fdd0b10257da
MD5 d9d1101445ac32d87ad7d0514e7d5b37
BLAKE2b-256 44aa00cfc9edb21ffa2bc520095be45f670f206c7b5d5ef563d11b134182bbbb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_readers_gitlab-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c430882de3e9e6721c572c5c9ee16f1bfedc693c51893beb9d6cac4347066495
MD5 1cdb02e093c991cc50f4e6549f902c8c
BLAKE2b-256 64db773c8488544a715fcda471ae5362a3d694da80a23124a0576cb700cc6d3c

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