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.1.0.tar.gz (13.5 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.1.0-py3-none-any.whl (15.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wcpan.drive.cli-2.1.0.tar.gz
  • Upload date:
  • Size: 13.5 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.1.0.tar.gz
Algorithm Hash digest
SHA256 a6ce00494ad0aedcac77b514dd44ee3fa534dff7340a670daaf5d3056a7d83bd
MD5 5d86568221777953a1a5a8c3509600bd
BLAKE2b-256 b08ac59ec53e658c74e5f179688355cd7043119e13748cf2943e288c40694e8f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wcpan.drive.cli-2.1.0-py3-none-any.whl
  • Upload date:
  • Size: 15.2 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 287a99c3a37f64b8e1796bfe63cb335cc38645b49508b9d950f1a83377135b7b
MD5 9c7cee7d0c2ab764d112ebdf0ccad7d3
BLAKE2b-256 b50bff30ebe0766376fc0d549c45e69fff7851f7acd7f4e355925f7ad8a6dff7

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