Skip to content
/ gdrv Public

A command for easy access google drive in Linux written in Python.

License

Notifications You must be signed in to change notification settings

yumaokao/gdrv

Repository files navigation

gdrv

Another google drive command line interface program written in Python.

Author

Yu Mao Kao (yumaokao)

Version

0.2.6

Usage

Installation

  • Install with pip/pip2
$ sudo pip2 install -U gdrv

Quick Start

  • Open the oauth link and grant google drive permission for this gdrv.
$ gdrv init
  • simple sftp/lftp like ftp command line mode
$ gdrv ftp
gdrv>
gdrv> help
gdrv> <Tab>
gdrv> ls
gdrv> pull <Tab>
  • List files and directories in your google drive root directory.
$ gdrv list /
  • Make a new directory 'uploads' in your google drive root directory.
$ gdrv mkdir /uploads
  • Push a local file 'LOCALFILE' to your google drive 'uploads' directory.
$ gdrv push LOCALFILE /uploads
  • Pull files with a printer-liked prompt to $PWD.
$ gdrv pull /uploads/
  • Throw files to your google drive trash can.
$ gdrv trash /uploads/
  • Share the file to 'everyone' who has the url link of this file.
$ gdrv share /uploads/LOCALFILE
$ gdrv url /uploads/LOCALFILE
  • Online playing a media file.
$ gdrv pull /uploads/SOME.mp4 -o - | mplayer -

Reference

About

A command for easy access google drive in Linux written in Python.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published