Skip to main content

S3-compatible gateway for Drime Cloud

Project description

Drime S3 Gateway

S3-compatible interface for Drime Cloud storage.

Features

  • Full S3 API compatibility (GET, PUT, DELETE, HEAD, LIST)
  • AWS Signature V4 chunked upload support
  • Automatic retry with exponential backoff for API errors
  • Local MD5 metadata caching for ETag consistency
  • Case-insensitive folder matching

Installation

pip install .

Usage

  • By default the bucket name is 'default'
  • API key and secret can be a random string, I prefer to use drime/drime, just to know where I'm pointing
# Set your API key
export DRIME_API_KEY="your-api-key"

# Start the gateway
drime-s3

# Options
drime-s3 --host 0.0.0.0 --port 8081 --debug

AWS CLI

# Configure profile (use any values for keys)
aws configure --profile drime

# List files
aws --profile drime --endpoint-url http://localhost:8081 s3 ls s3://default/

# Upload file
aws --profile drime --endpoint-url http://localhost:8081 s3 cp file.txt s3://default/

# Download file
aws --profile drime --endpoint-url http://localhost:8081 s3 cp s3://default/file.txt ./

# Delete file
aws --profile drime --endpoint-url http://localhost:8081 s3 rm s3://default/file.txt

Docker

# Build
docker build -t drime-s3 .

# Run
docker run -e DRIME_API_KEY=your-key -p 8081:8081 drime-s3

Environment Variables

Variable Description Required
DRIME_API_KEY Your Drime Cloud API key Yes

Tested With

  • AWS CLI v2
  • Duplicati Backup
  • S3 Browser
  • Restic
  • Rclone

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

drime_s3-1.0.2.tar.gz (13.3 kB view details)

Uploaded Source

Built Distribution

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

drime_s3-1.0.2-py3-none-any.whl (13.7 kB view details)

Uploaded Python 3

File details

Details for the file drime_s3-1.0.2.tar.gz.

File metadata

  • Download URL: drime_s3-1.0.2.tar.gz
  • Upload date:
  • Size: 13.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.13

File hashes

Hashes for drime_s3-1.0.2.tar.gz
Algorithm Hash digest
SHA256 3cd572e2f415eec3d67ca97a116ea50334665b735f9ee98045c2450b9f57581e
MD5 efaf6024b6e75ac45555ebeb080b8c66
BLAKE2b-256 a302cf435c22a207d5303abfa61fc1d907e5d56ea853291f16dd0d1044c8509f

See more details on using hashes here.

File details

Details for the file drime_s3-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: drime_s3-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 13.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.13

File hashes

Hashes for drime_s3-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5b86b92785443912b525e9cc934f44e52070a0b4cd3465d255b1debfe1d1cd22
MD5 78a1b12e707613bfd29cb973a9ceed22
BLAKE2b-256 042719177747c27ff08a92df1608abf29af404b130c4cd2f5be398564e614eba

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