Skip to main content

s3 loaders for simple text files

Project description

langchain-s3-text-loaders

AWS S3 directory and file loaders for text files, for instance text, html, xml, json, etc.

Inspired by langchain-community's S3FileLoader and S3DirectoryLoader, langchain_s3_text_loaders provides loaders optimized for text e.g. plain text, html, xml, json, etc.

Install

pip install langchain-s3-text-loaders

Usage

from langchain_s3_text_loaders import S3DirectoryLoader
s3_dir = S3DirectoryLoader(bucket="my-bucket", prefix="my_prefix")
docs = s3_dir.load()

Advanced Usage

from langchain_s3_text_loaders import S3DirectoryLoader
s3_dir = S3DirectoryLoader(
    bucket: str,
    prefix: str = "",
    batch_size=50, # number of concurrent s3 downloads
    region_name: Optional[str] = None,
    api_version: Optional[str] = None,
    use_ssl: Optional[bool] = True,
    verify: Union[str, bool, None] = None,
    endpoint_url: Optional[str] = None,
    aws_access_key_id: Optional[str] = None,
    aws_secret_access_key: Optional[str] = None,
    aws_session_token: Optional[str] = None,
    boto_config: Optional[botocore.client.Config] = None,
    )
docs = s3_dir.load()

License

MIT

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

langchain_s3_text_loaders-0.8.2.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

langchain_s3_text_loaders-0.8.2-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file langchain_s3_text_loaders-0.8.2.tar.gz.

File metadata

File hashes

Hashes for langchain_s3_text_loaders-0.8.2.tar.gz
Algorithm Hash digest
SHA256 2dfb49ea67a42c83124505d35ff580e37ed21b42ff2ae444d6762ff4a7e93e06
MD5 308dd1c3d272f5514ca773062a2b656d
BLAKE2b-256 89725082e35f595d8a653c648022a556d87ddf7664ee12c0262b7068d84de4c2

See more details on using hashes here.

Provenance

The following attestation bundles were made for langchain_s3_text_loaders-0.8.2.tar.gz:

Publisher: python-publish.yml on cdimascio/langchain-s3-text-loaders

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file langchain_s3_text_loaders-0.8.2-py3-none-any.whl.

File metadata

File hashes

Hashes for langchain_s3_text_loaders-0.8.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7ae5737ae7305f17a2ad82507d132f5be5916a5fae0105dc53b1ebc898de120a
MD5 8f8a2e12b97fbeee56da018b0c016881
BLAKE2b-256 eef2ac2a75528f1f4c7397947c788c5ee10f4da9d7cb76fdc5209aafa9377348

See more details on using hashes here.

Provenance

The following attestation bundles were made for langchain_s3_text_loaders-0.8.2-py3-none-any.whl:

Publisher: python-publish.yml on cdimascio/langchain-s3-text-loaders

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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