Skip to main content

[![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. Clone dropme repository: git clone https://github.com/tivaliy/dropme.git. 2. Configure settings.yaml file (in dropme/settings.yaml).

` token: "YOUR_DROPBOX_ACCESS_TOKEN" `

  1. Create isolated Python environment virtualenv venv and activate it source venv/bin/activate.

  2. Install dropme with all necessary dependencies: pip install -r requirements.txt ..

  3. (Optional) 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.

  4. Run dropme:

    • 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-29 11:12:54 | Start work with Dropbox.pdf | | - | 19.0 B | 2017-11-17 12: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 Use

usage: dropme [–version] [-v | -q] [–log-file LOG_FILE] [-h] [–debug]

[-t TOKEN]

CLI tool for managing Dropbox environment.

optional arguments:
--version

show program’s version number and exit

-v, --verbose

Increase verbosity of output. Can be repeated.

-q, --quiet

Suppress output except warnings and errors.

--log-file LOG_FILE

Specify a file to log output. Disabled by default.

-h, --help

Show help message and exit.

--debug

Show tracebacks on errors.

-t TOKEN, --token TOKEN

Dropbox 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, use pip install tox. Once installed, run tox from the root directory.

## Links

Release files for dropme 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dropme 1.1.0
File Size Uploaded
dropme-1.1.0.tar.gz 18.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dropme 1.1.0
File Interpreter ABI Platform
dropme-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 45.5 kB

Release files / dropme-1.1.0.tar.gz

Download URL dropme-1.1.0.tar.gz
Size 18.3 kB
Tags Source
SHA-256 checksum
How to use checksums
92ffddc2b5a4af1b82fb42a6df503a832ae1f47698f6d86d279574ea7f7b79a6
BLAKE2b-256 checksum
How to use checksums
a84d966ce754f5ef8ff60523a879f3c0ac0d5f72affde35eb4d7001b710c4e42
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / dropme-1.1.0-py3-none-any.whl

Download URL dropme-1.1.0-py3-none-any.whl
Size 27.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
537102990a376ab6e3a1bbf6822fb84243e764873c3bf2f23401a68c834706e1
BLAKE2b-256 checksum
How to use checksums
3aef1de369ffc9eb605d1a38134ea3bd7253aa99801997b808a189d54fcfa9ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page