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
- Added rclone crypt fix by RandLynx
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.4.tar.gz
(14.6 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.4-py3-none-any.whl
(14.9 kB
view details)
File details
Details for the file drime_s3-1.0.4.tar.gz.
File metadata
- Download URL: drime_s3-1.0.4.tar.gz
- Upload date:
- Size: 14.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
95407db0c2c43b02baf15a49182fc7213eec0f7897ccd2d64ef9f0302ae1edd6
|
|
| MD5 |
64ed2314bf0a31a8f7e9189835bc057a
|
|
| BLAKE2b-256 |
a8e7e9408e12f815de22a8f3058c1568866bbd9dbb8587a2a88e00fc7f860643
|
File details
Details for the file drime_s3-1.0.4-py3-none-any.whl.
File metadata
- Download URL: drime_s3-1.0.4-py3-none-any.whl
- Upload date:
- Size: 14.9 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 |
f3d296644e179e90bc78cdee9a75482c38b3e8f1e3316bfb8942ce24d9a091c3
|
|
| MD5 |
02ff42d435ae5f51c7d44373758adf86
|
|
| BLAKE2b-256 |
f61f58cc750338185f7ba92f6d07d80205306ffcd3280cfc28a00751fe4864ec
|