A Dropbox CLI
Project description
drobo
A Dropbox CLI
Installation
pip install -e .
Configuration
Create a .droborc file in your home directory with your Dropbox app configuration:
[apps.myapp]
app_key = "your_dropbox_app_key_here"
app_secret = "your_dropbox_app_secret_here"
access_token = "your_access_token"
refresh_token = "your_refresh_token"
Usage
drobo <app name> <command> [options]
Commands
ls: List remote target contents (mimics Linux ls command)cp: Copy contents from one location to another (mimics Linux cp command)mv: Move contents from one location to another (mimics Linux mv command)rm: Remove remote files and folders (mimics Linux rm command)
Options
--verbose, -v: Enable verbose output--version: Show version and exit
Examples
# List contents of root directory
drobo myapp ls /
# List with detailed output
drobo myapp ls -l /Documents
# Copy local file to Dropbox
drobo myapp cp local_file.txt /remote_file.txt
# Copy Dropbox file to local
drobo myapp cp /remote_file.txt local_file.txt
# Move file within Dropbox
drobo myapp mv /old_location.txt /new_location.txt
# Move multiple files to a directory
drobo myapp mv //file1.txt //file2.txt //documents/
# Move files using wildcards
drobo myapp mv //subdir/*.pdf //target_dir/
# Move with target directory option
drobo myapp mv -t //documents/ //file1.txt //file2.txt
# Force move (overwrite if destination exists)
drobo myapp mv -f //source.txt //existing_dest.txt
# Move only if source is newer (update)
drobo myapp mv -u //source.txt //dest.txt
# Remove file from Dropbox
drobo myapp rm /unwanted_file.txt
# Remove with force flag (ignore errors)
drobo myapp rm -f /might_not_exist.txt
Development
# Install dependencies
make install
# Run tests
make test
# Run linting
make fmt
# Build package
make build
# Build documentation
make doc
# Create distribution
make dist
# Clean build artifacts
make clean
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
drobo-1.0.0.tar.gz
(21.3 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
drobo-1.0.0-py3-none-any.whl
(15.6 kB
view details)
File details
Details for the file drobo-1.0.0.tar.gz.
File metadata
- Download URL: drobo-1.0.0.tar.gz
- Upload date:
- Size: 21.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ebced9caa8e684e328f0ec7c417a3586ec3d4fbc249b13bfbbcda0d9f0708bda
|
|
| MD5 |
f7615fe8623247e897465d84f968238c
|
|
| BLAKE2b-256 |
c137260478ef4fe250f7b476000f0165dfb21e7c8ddfb21bdac6038d5330f203
|
File details
Details for the file drobo-1.0.0-py3-none-any.whl.
File metadata
- Download URL: drobo-1.0.0-py3-none-any.whl
- Upload date:
- Size: 15.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
75f46dcba87d88aaf1cd926462d697cecaa4ab2faaf068d012181872de3696cb
|
|
| MD5 |
71e3f173efff3649103af13e477e5efd
|
|
| BLAKE2b-256 |
84068ba097343871ddcc35394e82e2a90dab13827caa3cea6f976f5f9f403916
|