How to install¶
From PyPI (stable)
Create isolated Python environment
virtualenv venvand activate it:source venv/bin/activateInstall
dropmewithpip:pip install dropmeConfigure
dropmeclient according to Configuring section
From GitHub (latest)
Clone
dropmerepository:git clone https://github.com/tivaliy/dropme.git.Configure
settings.yamlfile (indropme/settings.yaml) or see configuring section.
token: YOUR_DROPBOX_ACCESS_TOKEN
Create isolated Python environment
virtualenv venvand activate it:source venv/bin/activateInstall
dropmewith 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_TOKENas a environment variable:
export DBX_AUTH_TOKEN=YOUR_DROPBOX_ACCESS_TOKENin
~/.config/dropme/settings.yamlfilein
dropme/settings.yamlfile