Skip to main content

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

llama_index_readers_bitbucket-0.1.4.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file llama_index_readers_bitbucket-0.1.4.tar.gz.

File metadata

File hashes

Hashes for llama_index_readers_bitbucket-0.1.4.tar.gz
Algorithm Hash digest
SHA256 5f3e8f7113d59ee09c98912ca9f5c80e63527dbb1c09a4327ecef8dd8b003636
MD5 45aca1b26cead2c4715a0f160edaec38
BLAKE2b-256 343e1cea5e106a02a97b12b2658f3d111b9170a74f8ba2246d481b7f22e0448d

See more details on using hashes here.

File details

Details for the file llama_index_readers_bitbucket-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for llama_index_readers_bitbucket-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 5e8b5e0cad18f428fe3ae3170280055485d69605983ec3d3688035373cc7079d
MD5 5fac9e4d2dcc9a61679c11602826bef6
BLAKE2b-256 3c5ed884a857d7a8009b91b0bd675831c9b93ef67e6c841a571b852c0162b79a

See more details on using hashes here.

Supported by

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