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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file langchain_s3_text_loaders-0.8.2.tar.gz.
File metadata
- Download URL: langchain_s3_text_loaders-0.8.2.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2dfb49ea67a42c83124505d35ff580e37ed21b42ff2ae444d6762ff4a7e93e06
|
|
| MD5 |
308dd1c3d272f5514ca773062a2b656d
|
|
| BLAKE2b-256 |
89725082e35f595d8a653c648022a556d87ddf7664ee12c0262b7068d84de4c2
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
langchain_s3_text_loaders-0.8.2.tar.gz -
Subject digest:
2dfb49ea67a42c83124505d35ff580e37ed21b42ff2ae444d6762ff4a7e93e06 - Sigstore transparency entry: 157829679
- Sigstore integration time:
-
Permalink:
cdimascio/langchain-s3-text-loaders@6538973446ea2a9809df176775c6e1d1e168355d -
Branch / Tag:
refs/tags/v0.8.2 - Owner: https://github.com/cdimascio
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@6538973446ea2a9809df176775c6e1d1e168355d -
Trigger Event:
release
-
Statement type:
File details
Details for the file langchain_s3_text_loaders-0.8.2-py3-none-any.whl.
File metadata
- Download URL: langchain_s3_text_loaders-0.8.2-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7ae5737ae7305f17a2ad82507d132f5be5916a5fae0105dc53b1ebc898de120a
|
|
| MD5 |
8f8a2e12b97fbeee56da018b0c016881
|
|
| BLAKE2b-256 |
eef2ac2a75528f1f4c7397947c788c5ee10f4da9d7cb76fdc5209aafa9377348
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
langchain_s3_text_loaders-0.8.2-py3-none-any.whl -
Subject digest:
7ae5737ae7305f17a2ad82507d132f5be5916a5fae0105dc53b1ebc898de120a - Sigstore transparency entry: 157829681
- Sigstore integration time:
-
Permalink:
cdimascio/langchain-s3-text-loaders@6538973446ea2a9809df176775c6e1d1e168355d -
Branch / Tag:
refs/tags/v0.8.2 - Owner: https://github.com/cdimascio
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@6538973446ea2a9809df176775c6e1d1e168355d -
Trigger Event:
release
-
Statement type: