How to install¶
From PyPI (stable)
Create isolated Python environment
virtualenv venv
and activate it:source venv/bin/activate
Install
dropme
withpip
:pip install dropme
Configure
dropme
client according to Configuring section
From GitHub (latest)
Clone
dropme
repository:git clone https://github.com/tivaliy/dropme.git
.Configure
settings.yaml
file (indropme/settings.yaml
) or see configuring section.
token: YOUR_DROPBOX_ACCESS_TOKEN
Create isolated Python environment
virtualenv venv
and activate it:source venv/bin/activate
Install
dropme
with all necessary dependencies:pip install -r requirements.txt .
Configuring¶
Command Bash Completion¶
To add dropme
command bash completion:
dropme complete | sudo tee /etc/bash_completion.d/gc.bash_completion > /dev/null
Restart terminal and activate virtual environment once again.
Dropbox Access Token¶
To use the dropme
client, you’ll need to register a new app in the
App Console.
Select Dropbox API app and choose your app’s permission. You’ll need to use the app key created
with this app to access API v2. You have also to generate an access token
for your own account through the App Console.
There are several ways to specify Dropbox access token in dropme
(the order of search matters):
as an argument of a command:
dropme ls -l --token YOUR_DROPBOX_ACCESS_TOKEN
as a environment variable:
export DBX_AUTH_TOKEN=YOUR_DROPBOX_ACCESS_TOKEN
in
~/.config/dropme/settings.yaml
filein
dropme/settings.yaml
file