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.3.tar.gz
(14.4 kB
view details)
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
drime_s3-1.0.3-py3-none-any.whl
(14.7 kB
view details)
File details
Details for the file drime_s3-1.0.3.tar.gz.
File metadata
- Download URL: drime_s3-1.0.3.tar.gz
- Upload date:
- Size: 14.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9d10e07995a2165b7dc18a92a2042c31f463f21a8ff841f19d5e539ff54aa1a9
|
|
| MD5 |
0138a8258918058090005cb93e1c326b
|
|
| BLAKE2b-256 |
5a737c1544a03d35b40ce1ee28ede32d08ea236c7e51a44a22830423338794ec
|
File details
Details for the file drime_s3-1.0.3-py3-none-any.whl.
File metadata
- Download URL: drime_s3-1.0.3-py3-none-any.whl
- Upload date:
- Size: 14.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7947b64780bf1b73a113ec5c0e54f6e6d255a124e2726ff889841f8959f93520
|
|
| MD5 |
975b6e495a75bc4e50ca2bf180259c6c
|
|
| BLAKE2b-256 |
ffc9f9558d3c21b7b58fc5c1d28e2241d2033ab49927442ce38692f6c4ada8f1
|