用于管理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}$
  1. 创建独立的python环境并激活它。

  2. 安装dropme并具有所有必要的依赖项:pip Install-r requirements.txt.

  3. (可选)添加dropme命令bash完成:

    dropme complete | sudo tee /etc/bash_completion.d/gc.bash_completion > /dev/null

    Restart terminal and activate virtual environment once again.

  4. 运行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:
--versionshow program’s version number and exit
-v, --verboseIncrease verbosity of output. Can be repeated.
-q, --quietSuppress output except warnings and errors.
--log-file LOG_FILE
Specify a file to log output. Disabled by default.
-h, --helpShow help message and exit.
--debugShow 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

##链接

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
另一个布局上的java Access文本视图   安卓在Java中,我什么时候应该用*导入整个包,而不是从包中导入单个对象?   JavaSpringMVC:请解释@RequestParam和@ModelAttribute之间的区别   java Flyway Ant构建未迁移   java“没有可供下载的文件”   如何解决java静态名称冲突?   我是否需要框架来补充JavaEE6、JSF2 WebApp?哪一个?   java如何传递HttpServletRequest参数?   只有java的视频不会播放声音。为什么?   java在Maven3中做这样的属性重写工作吗?   java计算Android中两个标记之间的距离   Javascript页面加载中的java复选框持久性问题   java序列化lambda函数的映射   java使用jersey、maven和eclipse配置swagger   java我可以在oncreate方法之外使用setContentView吗?   java在使用JAXRS响应类返回实体时遇到异常   java规范了加密和解密文本的文本编写方法   java如何更改ChoiceBox的默认大小?   java在Android上暂时禁用PIN/密码锁