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
Close
Hashes for llama_index_readers_bitbucket-0.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea034f31fd3669ca2dcfaa28b3ce0d02546c7c9eff1b0bf89b72d4e88caec6de |
|
MD5 | f7e342c7ddbbb8b02c32f1cf6e014b3e |
|
BLAKE2b-256 | 0ca75ef7723b9798abfb8a4f9429cd5571b1a1a6fc021f4ddf6581e80a318796 |
Close
Hashes for llama_index_readers_bitbucket-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1053c5a381c71460c85646b5742cbcef2b948d769923271f94311512cd5703e |
|
MD5 | a2e532227aa2b00aa93b223e8da19a7f |
|
BLAKE2b-256 | b322a39a0b64231f620f589c2fe11e2595562f58335fde8fc7f476c472042c23 |