command line tool for wcpan.drive
Project description
wcpan.drive.cli
Command line tool for wcpan.drive
.
This package needs a driver to actually work with a cloud drive.
Config
You will need a core.yaml
file in config path.
By default it is $HOME/.config/wcpan.drive
, but you can change it by
--config-prefix
flag.
python3 -m wcpan.drive.cli --config-prefix=/path/to/config ...
Here is an example of core.yaml
:
version: 1
database: nodes.sqlite
driver: wcpan.drive.google.driver.GoogleDriver
middleware: []
Command Line Usage
Get the latest help:
python3 -m wcpan.drive.cli -h
You need to authorize an user first.
python3 -m wcpan.drive.cli auth
Then you should build local cache. Many commands reliy on this cache to avoid making too many API requests.
Note that this is the ONLY command that will update the cache.
Which means after upload
, mkdir
, remove
, rename
, you need to run this
command to make the cache up-to-date.
python3 -m wcpan.drive.cli sync
The remove
command only put files to trash can, it does NOT permanently
remove ANY files.
Removing a folder will also remove all its descendants.
python3 -m wcpan.drive.cli remove file1 file2 ...
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
Built Distribution
Hashes for wcpan_drive_cli-2.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a02a4c164fde0f2955305f738cb26a73b29a8b447bd79c664fe683dbfb3a8b16 |
|
MD5 | cfdc907a1c27669bb58fa76577d6fd30 |
|
BLAKE2b-256 | 13e6eaee05f1b2463d143465ae3254142e0c4769c86f5a6aa52fccef7ad587ad |