command line tool for wcpan.drive
Project description
wcpan.drive.cli
Command line tool for wcpan.drive
.
This package needs plugins to actually work with a drive.
Config
python3 -m wcpan.drive.cli -c /path/to/config ...
Here is an example of the config file:
version: 2
file:
main:
name: package.module.create_service
# args and kwargs are optional
args:
- arg1
- arg2
kwargs:
kwarg1: kwarg
kwarg2: kwarg
# middleware is optional
middleware:
- name: package.module.create_service
args:
- arg1
- arg2
kwargs:
kwarg1: kwarg
kwarg2: kwarg
snapshot:
main:
name: package.module.create_service
args:
- arg1
- arg2
kwargs:
kwarg1: kwarg
kwarg2: kwarg
middleware:
- name: package.module.create_service
args:
- arg1
- arg2
kwargs:
kwarg1: kwarg
kwarg2: kwarg
Command Line Usage
Get the latest help:
python3 -m wcpan.drive.cli -c /path/to/config -h
You need to authorize an user first.
python3 -m wcpan.drive.cli -c /path/to/config 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 -c /path/to/config sync
The remove
command only put files to trash can, it does NOT permanently
remove ANY files.
However, some cloud services may clean up trashes after certain period.
Removing a folder will also remove all its descendants.
python3 -m wcpan.drive.cli -c /path/to/config 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-3.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 184f87ef18f1c1206903c2b1768374cfdb30d6937bf858bd2e828e302376d32f |
|
MD5 | c5160475d59cbb821e8aad1bbc9f3d4c |
|
BLAKE2b-256 | 30a4eb629e437de5aa6192b81d484179530ff1d67ff57a87881002999800acbc |