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:
- Repository Reader
- 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.gitlab 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.gitlab 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file llama_index_readers_gitlab-0.3.1.tar.gz.
File metadata
- Download URL: llama_index_readers_gitlab-0.3.1.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.3 Linux/6.8.0-1017-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4b4e6f68ed7e1dcacc2bbd4e9dc9a692454b3334344801c786c031fdcbfce225
|
|
| MD5 |
9937e670147f979e989209561dad9b8e
|
|
| BLAKE2b-256 |
076b60784a3507eec29c8d9facddc145b0e20b7095090574d2ab8d6433faa7ee
|
File details
Details for the file llama_index_readers_gitlab-0.3.1-py3-none-any.whl.
File metadata
- Download URL: llama_index_readers_gitlab-0.3.1-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.3 Linux/6.8.0-1017-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
045ab43021ce210109be743954d52018623c49c7e391276388f1f0ffe78fbb93
|
|
| MD5 |
65e11669aea541809d59a83d3907c42b
|
|
| BLAKE2b-256 |
e0181d73c0f5c6c292e4b6741d58180e102eae6c3103517745ca49bf618322a2
|