Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wcpan.drive.cli-2.0.0.tar.gz (13.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wcpan.drive.cli-2.0.0-py3-none-any.whl (15.1 kB view details)

Uploaded Python 3

File details

Details for the file wcpan.drive.cli-2.0.0.tar.gz.

File metadata

  • Download URL: wcpan.drive.cli-2.0.0.tar.gz
  • Upload date:
  • Size: 13.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for wcpan.drive.cli-2.0.0.tar.gz
Algorithm Hash digest
SHA256 221e7e083a1ab50bca72f96b8e84b39b1c5308b9f4c21a27aea7ffd35ff17a2e
MD5 c8ec0e9d8dd42a8fea3b0b12d826c115
BLAKE2b-256 d42463667a2ec41093c414c5a8a89ce91723da5a18998cc25eaa3557b9fce50b

See more details on using hashes here.

File details

Details for the file wcpan.drive.cli-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: wcpan.drive.cli-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 15.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for wcpan.drive.cli-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ff88b6fbbe00e2dce69b8aec72dbe6d8a9bcd4352278d3df17227a38174ee55e
MD5 ced1cb3ec650a8db3d3ca68ac58802c7
BLAKE2b-256 a26124c0d85575ce827791a76772b978865a93231317a93ac6972c9dbc4bae70

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page