用于管理dropbox环境的cli工具。
dropme的Python项目详细描述
[![pypi](https://img.shields.io/pypi/v/dropme.svg)](https://pypi.python.org/pypi/dropme) [![生成状态](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) [![文档状态](https://readthedocs.org/projects/dropme/badge/?version=latest)](http://dropme.readthedocs.io/en/latest/?徽章=最新)
#滴管 用于管理dropbox工作区中数据的cli工具(基于官方的[dropbox sdk python](https://github.com/dropbox/dropbox-sdk-python))
##快速启动 一。克隆dropme存储库:git克隆https://github.com/tivaly/dropme.git。 2.配置文件(在dropme/settings.yaml中)。
^{tt1}$
创建独立的python环境并激活它。
安装dropme并具有所有必要的依赖项:pip Install-r requirements.txt.
(可选)添加dropme命令bash完成:
dropme complete | sudo tee /etc/bash_completion.d/gc.bash_completion > /dev/null
Restart terminal and activate virtual environment once again.
运行dropme
as a standalone application
^{tt2}$
作为具有各自子命令参数的命令
^{tt3}$
##如何使用
- 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.
##运行测试 我们使用[tox](https://tox.readthedocs.org/)包来运行测试。要安装,请使用pip install tox。 安装后,从根目录运行tox。
##链接
- 文档:[http://dropme.readthedocs.io](http://dropme.readthedocs.io)
- 资料来源:[https://github.com/tivaliy/dropme](https://github.com/tivaliy/dropme)
- 错误:[https://github.com/tivaliy/dropme/issues](https://github.com/tivaliy/dropme/issues)