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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wcpan_drive_cli-3.9.0.tar.gz.
File metadata
- Download URL: wcpan_drive_cli-3.9.0.tar.gz
- Upload date:
- Size: 14.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.13.5 Linux/6.6.87.2-microsoft-standard-WSL2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8629b387ce4ee50a6eccde0a85f9bc4ea88247363133e60c42352066111997be
|
|
| MD5 |
c6fb3618c8d4676e9a4e4421e5e2c634
|
|
| BLAKE2b-256 |
22d6429d9a1c796a97bfc8100b2380b1cfb033773d183cc35f50f056bf4e5c65
|
File details
Details for the file wcpan_drive_cli-3.9.0-py3-none-any.whl.
File metadata
- Download URL: wcpan_drive_cli-3.9.0-py3-none-any.whl
- Upload date:
- Size: 24.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.13.5 Linux/6.6.87.2-microsoft-standard-WSL2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
07c16ece58505d52e4a04c5f0b11959122324f68c8f791273c3af6341d4dab77
|
|
| MD5 |
ce20b8196e8f0fe9956fa51d61e175d9
|
|
| BLAKE2b-256 |
63f9e6859d8f6ab450d801811e507897d74f376068f112f3b4bd65e05610b202
|