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
# 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
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.1.tar.gz
(10.7 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.1-py3-none-any.whl
(11.2 kB
view details)
File details
Details for the file drime_s3-1.0.1.tar.gz.
File metadata
- Download URL: drime_s3-1.0.1.tar.gz
- Upload date:
- Size: 10.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd792fb441e34d4a7375f65827621a2c852378555c87cf4e64990ab2568dbb14
|
|
| MD5 |
d7b6330f6dfb9033dc43d7291878c109
|
|
| BLAKE2b-256 |
2610280d9bb1fcd42d06fc2d4c561a4f458bfe3c3d52193e316301e9bf561ce9
|
File details
Details for the file drime_s3-1.0.1-py3-none-any.whl.
File metadata
- Download URL: drime_s3-1.0.1-py3-none-any.whl
- Upload date:
- Size: 11.2 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 |
bc1fbb39d6e43d1fe4c39d5ec5baee0b78d1a52d817c674caf30c2030b595e22
|
|
| MD5 |
40a3915ea585909e55a2c2461aed33ae
|
|
| BLAKE2b-256 |
7b04ed9dea726b86e335472e9deb9e8f860acac0ecadd7c4e5b810218090bc18
|