elizaOS S3 Storage Plugin - AWS S3 and S3-compatible storage integration
Project description
elizaOS S3 Storage Plugin (Python)
AWS S3 and S3-compatible storage integration for elizaOS agents.
Installation
pip install elizaos-plugin-s3-storage
Usage
from elizaos_plugin_s3_storage import S3StorageClient, S3StorageConfig
# Create configuration
config = S3StorageConfig(
access_key_id="your-access-key",
secret_access_key="your-secret-key",
region="us-east-1",
bucket="your-bucket",
)
# Create client
async with S3StorageClient(config) as client:
# Upload a file
result = await client.upload_file("/path/to/file.txt")
print(f"Uploaded to: {result.url}")
# Upload JSON data
result = await client.upload_json({"key": "value"}, filename="data.json")
print(f"JSON uploaded to: {result.url}")
# Generate signed URL
url = await client.generate_signed_url("path/to/file.txt", expires_in=3600)
print(f"Signed URL: {url}")
Configuration
Environment variables:
AWS_ACCESS_KEY_ID: AWS access key IDAWS_SECRET_ACCESS_KEY: AWS secret access keyAWS_REGION: AWS regionAWS_S3_BUCKET: S3 bucket nameAWS_S3_UPLOAD_PATH: Optional upload path prefixAWS_S3_ENDPOINT: Optional custom S3 endpointAWS_S3_SSL_ENABLED: Enable SSL for custom endpointAWS_S3_FORCE_PATH_STYLE: Force path-style addressing
Features
- Upload files and JSON data to S3
- Generate pre-signed URLs
- Support for S3-compatible services (MinIO, DigitalOcean Spaces, etc.)
- Async/await support
- Type-safe with Pydantic models
License
MIT
Project details
Release history Release notifications | RSS feed
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 elizaos_plugin_s3_storage-2.0.0a5.tar.gz.
File metadata
- Download URL: elizaos_plugin_s3_storage-2.0.0a5.tar.gz
- Upload date:
- Size: 10.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d60551b69b75cdd28f66f9b50092e18f2fb985123f2fdc837a7bcfb50897ac64
|
|
| MD5 |
7c6fc979ed62337613a9e0b5e6f1dad5
|
|
| BLAKE2b-256 |
f3d48e7eeaef5d38a118cb0799ed1d60bf506d6c4fb9ebd0b439fcb41e7cf5e7
|
File details
Details for the file elizaos_plugin_s3_storage-2.0.0a5-py3-none-any.whl.
File metadata
- Download URL: elizaos_plugin_s3_storage-2.0.0a5-py3-none-any.whl
- Upload date:
- Size: 9.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a9db025e51f85a5e59644f35f4927d80267f12fc856c81e80fdef00591db0042
|
|
| MD5 |
b5785a1e74b597c625bbd864261d3f2e
|
|
| BLAKE2b-256 |
a649a26327223a5337923809b2476bbe84a3bc3e228351e7d137cdbb8e18b51b
|