llama-index readers bitbucket integration
Project description
Bitbucket Loader
pip install llama-index-readers-bitbucket
This loader utilizes the Bitbucket API to load the files inside a Bitbucket repository as Documents in an index.
Usage
To use this loader, you need to provide as environment variables the BITBUCKET_API_KEY
and the BITBUCKET_USERNAME
.
import os
from llama_index.core import VectorStoreIndex, download_loader
os.environ["BITBUCKET_USERNAME"] = "myusername"
os.environ["BITBUCKET_API_KEY"] = "myapikey"
base_url = "https://myserver/bitbucket"
project_key = "mykey"
from llama_index.readers.bitbucket import BitbucketReader
loader = BitbucketReader(
base_url=base_url,
project_key=project_key,
branch="refs/heads/develop",
repository="ms-messaging",
)
documents = loader.load_data()
index = VectorStoreIndex.from_documents(documents)
This loader is designed to be used as a way to load data into Llama Index.
For a step-by-step guide, checkout this tutorial
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
File details
Details for the file llama_index_readers_bitbucket-0.3.0.tar.gz
.
File metadata
- Download URL: llama_index_readers_bitbucket-0.3.0.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.10 Darwin/22.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | baf10a8ca4fd2662f45f90ba325c7fc613b1196599a63fcca0425994d71c0a69 |
|
MD5 | f4e2c6f3e19adaad2fd44d17b194e14c |
|
BLAKE2b-256 | 34d103f5afd086a1a37d53f7459b05125d8bb6b828e153bed6aa27e1f502725f |
File details
Details for the file llama_index_readers_bitbucket-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: llama_index_readers_bitbucket-0.3.0-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.10 Darwin/22.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6e140e0e55860f320064f0c56c104a15f0050aa6e834093773113821fccd212 |
|
MD5 | ef0cb081d8118aabca460c78905280cc |
|
BLAKE2b-256 | bc1981fb6b83a54f1445123690cb6bfb1b6fa2ec07a45352218f819d64bf1b70 |