Skip to main content

CLI tool for managing Dropbox environment.

Project description

[![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]

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.

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. 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. 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dropme-1.0.1.tar.gz (16.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dropme-1.0.1-py3-none-any.whl (25.6 kB view details)

Uploaded Python 3

File details

Details for the file dropme-1.0.1.tar.gz.

File metadata

  • Download URL: dropme-1.0.1.tar.gz
  • Upload date:
  • Size: 16.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for dropme-1.0.1.tar.gz
Algorithm Hash digest
SHA256 80643803435b005b19d5dc070c774425e403b1a23ac006e72edfd69b8aec213c
MD5 68a7e4bbae5f80ad5878d0bf50f10f5a
BLAKE2b-256 75add971f551adf8b22b9e8dbf9e9a8a6094761ddca008319312a28f3a6e57bd

See more details on using hashes here.

File details

Details for the file dropme-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for dropme-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1d16b08c4813a269e5a5f0e133148dfd92eacabb7c4cf4e4f35aa393a1b35270
MD5 79de086d5c632b14aaa8af90fd80e9e2
BLAKE2b-256 cfd604933538781f24b329cea978f726767643ff795196a888bae5911eb0540c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page