All Projects → nurdtechie98 → Drive Cli

nurdtechie98 / Drive Cli

Licence: mit
A command line interface for accessing google drive

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Drive Cli

Gcal Cli
Google Calendar command line tool for Node.js
Stars: ✭ 255 (-43.21%)
Mutual labels:  command-line-tool, cli, google
Starcli
✨ Browse GitHub trending projects from your command line
Stars: ✭ 269 (-40.09%)
Mutual labels:  command-line-tool, cli
Github cli
GitHub on your command line. Use your terminal, not the browser.
Stars: ✭ 263 (-41.43%)
Mutual labels:  command-line-tool, cli
Bullet
🚅 Interactive prompts made simple. Build a prompt like stacking blocks.
Stars: ✭ 3,257 (+625.39%)
Mutual labels:  command-line-tool, cli
Colorpedia
Command-line tool for looking up colors and palettes.
Stars: ✭ 255 (-43.21%)
Mutual labels:  command-line-tool, cli
Goodls
This is a CLI tool to download shared files and folders from Google Drive.
Stars: ✭ 256 (-42.98%)
Mutual labels:  cli, google-drive
Define
A command-line dictionary (thesaurus) app, with access to multiple sources, written in Go.
Stars: ✭ 298 (-33.63%)
Mutual labels:  command-line-tool, cli
Covid19 Tracker Cli
A curl-based command line tracker for Novel Coronavirus or COVID-19 pandemic. It Supports terminal for linux and macos, command prompt for windows, and termux for android with real-time updates.
Stars: ✭ 244 (-45.66%)
Mutual labels:  command-line-tool, cli
Jwt Cli
A super fast CLI tool to decode and encode JWTs built in Rust
Stars: ✭ 336 (-25.17%)
Mutual labels:  command-line-tool, cli
Tsukae
🧑‍💻📊 Show off your most used shell commands
Stars: ✭ 345 (-23.16%)
Mutual labels:  command-line-tool, cli
Corgi
Corgi is a command-line workflow manager that helps with your repetitive command usages by organizing them into reusable snippet
Stars: ✭ 365 (-18.71%)
Mutual labels:  command-line-tool, cli
Ff
Find files (ff) by name, fast!
Stars: ✭ 257 (-42.76%)
Mutual labels:  command-line-tool, cli
Remarshal
Convert between CBOR, JSON, MessagePack, TOML, and YAML
Stars: ✭ 421 (-6.24%)
Mutual labels:  command-line-tool, cli
Dockly
Immersive terminal interface for managing docker containers and services
Stars: ✭ 3,034 (+575.72%)
Mutual labels:  command-line-tool, cli
Websocat
Command-line client for WebSockets, like netcat (or curl) for ws:// with advanced socat-like functions
Stars: ✭ 3,477 (+674.39%)
Mutual labels:  command-line-tool, cli
Circleci Cli
Use CircleCI from the command line
Stars: ✭ 297 (-33.85%)
Mutual labels:  command-line-tool, cli
Vocabs
📚 A lightweight online dictionary integration to the command line. No browsers. No paperbacks.
Stars: ✭ 226 (-49.67%)
Mutual labels:  command-line-tool, cli
Wpk
a friendly, intuitive & intelligent CLI for webpack
Stars: ✭ 232 (-48.33%)
Mutual labels:  command-line-tool, cli
Laravel Packer
Awesome Command Line Tool for speeding up your package creation.
Stars: ✭ 313 (-30.29%)
Mutual labels:  command-line-tool, cli
Mongo Seeding
The ultimate solution for populating your MongoDB database.
Stars: ✭ 375 (-16.48%)
Mutual labels:  command-line-tool, cli

Briefly-logo

Drive Cli

PyPI version Python version Build Status License: MIT

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].