Skip to main content

llama-index readers s3 integration

Project description

S3 File or Directory Loader

This loader parses any file stored on S3, or the entire Bucket (with an optional prefix filter) if no particular file is specified. When initializing S3Reader, you may pass in your AWS Access Key. If none are found, the loader assumes they are stored in ~/.aws/credentials.

All files are parsed with SimpleDirectoryReader. Hence, you may also specify a custom file_extractor, relying on any of the loaders in this library (or your own)!

Installation

pip install llama-index-readers-s3

Usage

To use this loader, you need to pass in the name of your S3 Bucket. After that, if you want to just parse a single file, pass in its key. Note that if the file is nested in a subdirectory, the key should contain that, so like subdirectory/input.txt.

Otherwise, you may specify a prefix if you only want to parse certain files in the Bucket, or a subdirectory. AWS Access Key credentials may either be passed in during initialization or stored locally (see above).

loader = S3Reader(
    bucket="scrabble-dictionary",
    key="dictionary.txt",
    aws_access_id="[ACCESS_KEY_ID]",
    aws_access_secret="[ACCESS_KEY_SECRET]",
)
documents = loader.load_data()

This loader is designed to be used as a way to load data into LlamaIndex.

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_s3-0.6.1.tar.gz (5.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_s3-0.6.1-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file llama_index_readers_s3-0.6.1.tar.gz.

File metadata

  • Download URL: llama_index_readers_s3-0.6.1.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for llama_index_readers_s3-0.6.1.tar.gz
Algorithm Hash digest
SHA256 70ae57987e05d1366de88309bc09e612ced45a47a4aeb6c4008bddfc2137df1c
MD5 65b90e245539f2cb1023d3279d4a8e21
BLAKE2b-256 b313d33df53bda408beb47d6c895332dcc35ef9743829d2456f3702ea35fe7f9

See more details on using hashes here.

File details

Details for the file llama_index_readers_s3-0.6.1-py3-none-any.whl.

File metadata

  • Download URL: llama_index_readers_s3-0.6.1-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for llama_index_readers_s3-0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 da3c27e1e741e6634e06539f6cbcc96d3559719c754e0be1f677a1110579af35
MD5 3ad9e5d248f8e3887bc0a827ab1056da
BLAKE2b-256 9f296af9d4c27d19ed5e210d9771b4c0e52ce7025f5fea2b700353adfcadbd92

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