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
- Direct streaming from Cloudflare R2
Installation
pip install .
Usage
# 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
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.0.tar.gz
(10.5 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.0-py3-none-any.whl
(11.0 kB
view details)
File details
Details for the file drime_s3-1.0.0.tar.gz.
File metadata
- Download URL: drime_s3-1.0.0.tar.gz
- Upload date:
- Size: 10.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bb6c4b0ddbcf145aad96ae0a8ef5190fba2d0fb5b318760d716e1064eb253b5c
|
|
| MD5 |
c169e2a29483e8578c0757ee50fd25fa
|
|
| BLAKE2b-256 |
858d81277566eecfd58a560242442aed2966cd9d29b82d0cef33fcf7081f19da
|
File details
Details for the file drime_s3-1.0.0-py3-none-any.whl.
File metadata
- Download URL: drime_s3-1.0.0-py3-none-any.whl
- Upload date:
- Size: 11.0 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 |
7b1abe6b10d4d14c54c7a152e88c352710b0a00274879e8257d9a8d36167f7ff
|
|
| MD5 |
5510b157bc4d05368f2da70d565d1342
|
|
| BLAKE2b-256 |
96a5ba44bc4922b018a1e260a23e1006afa4b2c97ce43d9f241520d28f5bcad8
|