Console based DIY google drive client
Project description
Introduction
tuxdrive
is a console based DIY google drive client.
Installation
pip install tuxdrive
Since this is a DIY (Do-it-yourself) app, you'll have to register your own app by going to the Google Cloud Console and then:
- Enable Google Drive API.
- Create credentials (make sure you choose "Desktop App").
- Download the credentials json file and save it as
client_id.json
to your working folder.
Only then the program will be able to work. For more information on registering a Google app, you may refer to this article.
Notes:
- If you are a new developer on Google, you might see a prompt saying "This app isn't verified", so you must add a security exception to verify it successfully.
- As of version 2.0.0,
pip
is the only supported installation method, the old DEB/RPM method is depreciated.
Usage
tuxdrive
has a command line interface to the google drive interface similar to traditional unix tools like ftp
and sftp
(though not as extensive and comprehensive yet!).
Once you start tuxdrive
program, it will give you a tux_drive>
prompt from which you can run the above commands. When you run tuxdrive
the first time, it will open up the browser window and ask for permissions to access your google drive on your behalf. After that, you can start running commands. You can list your drive files using ls
or dir
command for example:
Similarly, you can run push some_local_file.txt
to upload it to your drive, or rcd my_drive_folder
to change the remote drive. Here is the entire command list:
help (or ?): Shows this help facility.
dir (or ls): Lists all files and folders on drive.
!dir (or !ls): Lists all files and folders in current directory.
get (or pull) <item>: Pulls the named file/folder from drive to current working directory.
put (or push) <item>: Pushes the named file/folder from current working directory to drive.
rm <item>: Delete the named file/folder on remote path.
pwd: Print working directory (remote/drive).
cd: Change working directory (remote/drive).
lpwd: Print working directory (local).
lcd: Change working directory (local).
mkdir: Create a directory on remote path.
list permissions <item>: Lists the permissions on specific file/directory.
clear permissions <item>: Clears permissions on specific file/directory.
share <item>: Shares the specific file/directory in remote drive publicly.
share <item> <email>: Shares the specific file/directory in remote drive to specified email.
exit: Exits this program.
rdcache: Show remote directory mapping of id and folder paths.
rfcache: Show remote files mapping of id and folder paths.
License
tuxdrive
is free and open source software. It is MIT licensed.
Donation
I'm a poor and humble coder from India and highly stressed for resources. Please consider donating if this tool has helped you in any way. You can also hire me on fiverr to get any coding task done.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file tuxdrive-2.0.1.tar.gz
.
File metadata
- Download URL: tuxdrive-2.0.1.tar.gz
- Upload date:
- Size: 10.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.6.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 065ad9353f9ef033eb0e16e91ee59e617278f8b96797f05348e8086d1a68ab35 |
|
MD5 | 6559e89fb54910bcce2e5256210d306a |
|
BLAKE2b-256 | d36b9ac57f50e22e924cb63032c44a628fc09be12ffb59dbda5e2eec09ab7608 |