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.1.tar.gz (4.4 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.1-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for langchain_s3_text_loaders-0.8.1.tar.gz
Algorithm Hash digest
SHA256 0667ff410829ea711fe0a6dd9a86802baac7071e4407f296d1a4d241de07eb65
MD5 61ad9d81d5114f58dcc8fecda2245757
BLAKE2b-256 397a4f6505ea50d25787e2f9fae61b3fca924dfc5a7b4689a00f081e06d3c6d6

See more details on using hashes here.

Provenance

The following attestation bundles were made for langchain_s3_text_loaders-0.8.1.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.1-py3-none-any.whl.

File metadata

File hashes

Hashes for langchain_s3_text_loaders-0.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c96d5af2113dd2bba7a64edc52e2fc016fda0c908d34db497a06d2a91cba98d0
MD5 c2ff9f68d0d38616a555ef19140788fd
BLAKE2b-256 f360580a3f0a3336bc54588d2fec26c5f906b38c393b5f3450e5654bf89e11e1

See more details on using hashes here.

Provenance

The following attestation bundles were made for langchain_s3_text_loaders-0.8.1-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