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 ...
Release files for wcpan-drive-cli 5.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| wcpan_drive_cli-5.0.0.tar.gz | 28.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| wcpan_drive_cli-5.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size:51.7 kB
Release files / wcpan_drive_cli-5.0.0.tar.gz
| Download URL | wcpan_drive_cli-5.0.0.tar.gz |
|---|---|
| Size | 28.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
57cca1d03bde7aa6fcb491d7b63e351468b443ced32d7ec076ab8c5d12d83603
|
|
BLAKE2b-256 checksum How to use checksums |
492092911bc95b783cafd1425db77150edd743bea9f703645e2f5cb6ab3772c2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / wcpan_drive_cli-5.0.0-py3-none-any.whl
| Download URL | wcpan_drive_cli-5.0.0-py3-none-any.whl |
|---|---|
| Size | 23.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fb946a7ed1aecc047a058a051acdd44901bd6c5a8eb30cc9904fd6873b5da7e5
|
|
BLAKE2b-256 checksum How to use checksums |
e705dd0413db1726449e013d57d34e3026f4c6d8228b8dfba2731071db4d0372
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|