Package: dropme
[![PyPI](https://img.shields.io/pypi/v/dropme.svg)](https://pypi.python.org/pypi/dropme)
[![Build Status](https://travis-ci.org/tivaliy/dropme.svg?branch=master)](https://travis-ci.org/tivaliy/dropme)
[![codecov](https://codecov.io/gh/tivaliy/dropme/branch/master/graph/badge.svg)](https://codecov.io/gh/tivaliy/dropme)
[![Documentation Status](https://readthedocs.org/projects/dropme/badge/?version=latest)](http://dropme.readthedocs.io/en/latest/?badge=latest)# dropme
CLI tool to manage data in Dropbox workspace (based on official [dropbox-sdk-python](https://github.com/dropbox/dropbox-sdk-python))## Quick Start
1. Clonedropmerepository:git clone https://github.com/tivaliy/dropme.git.
2. Configuresettings.yamlfile (indropme/settings.yaml).` token: "YOUR_DROPBOX_ACCESS_TOKEN" `Create isolated Python environmentvirtualenv venvand activate itsource venv/bin/activate.Installdropmewith all necessary dependencies:pip install -r requirements.txt ..(Optional) Adddropmecommand bash completion:dropme complete | sudo tee /etc/bash_completion.d/gc.bash_completion > /dev/nullRestart terminal and activate virtual environment once again.Rundropme:as a standalone application` $ dropme (dropme) whoami+--------------+------------------------+| Field        | Value                  |+--------------+------------------------+| user         | John Doe               | | e_mail       | j.doe@example.com      | | country      | UA                     | | account_type | basic                  |+--------------+------------------------+(dropme) ls-l+------+---------+---------------------+-----------------------------+| type | size    | last_modified       | name                        |+------+---------+---------------------+-----------------------------+| d    |         |                     | demo/                       | | d    |         |                     | foo/                        | | d    |         |                     | dummy/                      | | -    | 1.11 MB |2017-10-2911:12:54 | Start work with Dropbox.pdf | | -    | 19.0 B  |2017-11-1712:41:29 | bar.txt                     |+------+---------+---------------------+-----------------------------+`as a command with respective sub-command arguments` $ dropme df+-----------+-----------------+| Field     | Value           |+-----------+-----------------+| allocated | 2.0 GB          | | used      | 326.19 MB       | | available | 1.68 GB (84.1%) |+-----------+-----------------+`## How to Useusage: dropme [–version] [-v | -q] [–log-file LOG_FILE] [-h] [–debug][-t TOKEN]CLI tool for managing Dropbox environment.optional arguments:--versionshow program’s version number and exit-v,--verboseIncrease verbosity of output. Can be repeated.-q,--quietSuppress output except warnings and errors.--log-fileLOG_FILESpecify a file to log output. Disabled by default.-h,--helpShow help message and exit.--debugShow tracebacks on errors.-tTOKEN,--tokenTOKENDropbox token.Commands:complete       print bash completion command (cliff)
cp             Copies a file or folder to a different location in the user’s Dropbox.
df             Shows information about space usage of the current user’s account.
find           Searches for files and folders.
get            Downloads a file at a given local path.
help           print detailed help for another command (cliff)
ls             Lists directory content.
mkdir          Creates a folder at a given path.
mv             Moves a file or folder to a different location in the user’s Dropbox.
put            Uploads a file to a specified directory.
restore        Restores file to a specified revision.
revs           Lists file revisions.
rm             Deletes a file or a folder at a given path.
status         Shows status of a specified file or folder.
whoami         Shows information about the current user’s account.## Running the tests
We use the [tox](https://tox.readthedocs.org/) package to run tests. To install, usepip install tox.
Once installed, runtoxfrom the root directory.## LinksDocumentation: [http://dropme.readthedocs.io](http://dropme.readthedocs.io)Source: [https://github.com/tivaliy/dropme](https://github.com/tivaliy/dropme)Bugs: [https://github.com/tivaliy/dropme/issues](https://github.com/tivaliy/dropme/issues)