Skip to main content

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 ID
  • AWS_SECRET_ACCESS_KEY: AWS secret access key
  • AWS_REGION: AWS region
  • AWS_S3_BUCKET: S3 bucket name
  • AWS_S3_UPLOAD_PATH: Optional upload path prefix
  • AWS_S3_ENDPOINT: Optional custom S3 endpoint
  • AWS_S3_SSL_ENABLED: Enable SSL for custom endpoint
  • AWS_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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

elizaos_plugin_s3_storage-2.0.0a4.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

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

elizaos_plugin_s3_storage-2.0.0a4-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file elizaos_plugin_s3_storage-2.0.0a4.tar.gz.

File metadata

File hashes

Hashes for elizaos_plugin_s3_storage-2.0.0a4.tar.gz
Algorithm Hash digest
SHA256 95d10d0726842db56408ebe5c442dcc11834fa1546aa7b9b3650f70f64cc064f
MD5 13e22b2b317b830ee78f38e8e0849aba
BLAKE2b-256 6fb65d74a7a7111c15d9e99127c4e4787f4f507734bee579cbab663cd0eee799

See more details on using hashes here.

File details

Details for the file elizaos_plugin_s3_storage-2.0.0a4-py3-none-any.whl.

File metadata

File hashes

Hashes for elizaos_plugin_s3_storage-2.0.0a4-py3-none-any.whl
Algorithm Hash digest
SHA256 f3d6dbed7872d6cdda575807c14413b339bfb093ece312ae0a665546abdcec2b
MD5 63d174b027d53e5470bf5ed3b4e27a63
BLAKE2b-256 e3b88b66b0b15b7bcd967cc6aa405b51703d81f2adb1f25f95cbf437f0bc02a0

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