drive-cli

授权协议 MIT License
开发语言 Python
所属分类 应用工具、 终端/远程登录
软件类型 开源软件
地区 不详
投 递 者 刘阳舒
操作系统 跨平台
开源组织
适用人群 未知
 软件概览

Briefly-logo

Drive Cli

Get the ability to access Google Drive without leaving your terminal.


Inspiration

  • Google Drive has become a vital part of our day to day life. As much as non-programmers use it, so do programmers in several situations, where we need not use git/github.

  • Drive-CLI is a command-line utility for google drive which helps you access, sync, download, upload, etc. directly to your drive without leaving the command-line. The best part being the commands are similar to git CLI so that you can easily remember them ��


Features

  • view-files: list your files; filter them by name, type.
  • clone: download file/folder from drive using sharing link or file ID and get it linked.
  • add-remote: upload existing local file to drive and get it linked.
  • cat: view files contents of text format without actually downloading them.
  • rm: remove particular file or folder.
  • ls: list all the files present in the drive of equivalent current directory.
  • status: list changes made to local files since last push or pull.
  • pull: get latest changes from drive to local files.
  • push: push the local changes to drive.

Demo


Installation

  • For Usage
#install using pip 
    $ pip install drive-cli
  • For Development
    • clone the repo
    $ git clone https://github.com/nurdtechie98/drive-cli.git
    • get your client_secret.json from Oauth. Make sure to enable Drive Api for the project.
    • rename the client secret to oauth.json and place it in the drive_cli directory.
    • install the package:
    # move into package directory
        $ cd drive-cli
        # install package in edit mode
        $ pip install -e . #note the dot

Usage

Clone

Download a file or folder present in drive using its file id or its sharing link. In case it is a folder it gets tracked.

# using file id note: since it is google doc it will be asked for a choice to select from
$ drive clone 1syTNkfXoc3pzpJSL0Z5LDioTFc46_LjzHjDDUvk90ks
Choose type to export to
 (ENTER to select, s to stop):

 => pdf
    txt
    doc
    zip
    html
    rtf
    odt
Preparing: watson script for download
downloading file  [####################################]  100%
completed download of watson script

# using file sharing link
$ drive clone https://docs.google.com/document/d/1syTNkfXoc3pzpJSL0Z5LDioTFc46_LjzHjDDUvk90ks
Choose type to export to
 (ENTER to select, s to stop):

 => pdf
    txt
    doc
    zip
    html
    rtf
    odt
Preparing: watson script for download
downloading file  [####################################]  100%
completed download of watson script

for further in depth documetation checkout our wiki.


Uninstalling

$ pip uninstall drive-cli

Contributing

  • We're are open to enhancements & bug-fixes �� . Take a look here to get started
  • Feel free to add issues and submit patches

Author

Chirag Shetty - nurdtechie98

See also the list of contributors who participated in this project.


License

This project is licensed under the MIT - see the LICENSE file for details.

 相关资料
  • 弹出/收进 CD 或 DVD 驱动器托盘,或设置驱动器的卷标。 Drive, Sub-command [, Drive , Value] sub-command, drive 和 value 参数互相依赖, 它们的用法描述如下. Label, Drive [, NewLabel]: 改变 Drive 的卷标为 NewLabel (如果省略 NewLabel, 则设置驱动器卷标为空). Drive

  • drive drive is a tiny program to pull or push Google Drive files. drive was originally developed by Burcu Dogan while working on the Google Drive team. Since she is very busy and no longer able to mai

  • 主要内容:尝试一下 - 实例,Drive 对象Drive 对象用于返回关于本地磁盘驱动器或者网络共享驱动器的信息。 尝试一下 - 实例 取得指定驱动器的总容量 本例演示如何使用 TotalSize 属性来获得指定驱动器的总容量。 取得指定驱动器的可用空间数 本例演示如何首先创建一个 FileSystemObject 对象,然后使用 AvailableSpace 属性来获得指定驱动器的可用空间。 取得指定驱动器的剩余空间容量 本例演示如何使用

  • The Tiny Drive plugin adds the functionality to upload and manage files and images to the cloud. This plugin is only available in Tiny Cloud and requires you to register for an API key. To enable this

  • This page describes how to create a new Flutter app from templates, run it, and experience “hot reload” after you make changes to the app. Select your development tool of choice for writing, building,

  • Live example This example shows you how to use Tiny Drive for your file and image management. For more information on the Tiny Drive plugin, see the docs.TinyMCE HTML JS <h2>The world's first rich te