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.3.6.tar.gz (12.6 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.3.6-py3-none-any.whl (13.8 kB view details)

Uploaded Python 3

File details

Details for the file wcpan_drive_cli-2.3.6.tar.gz.

File metadata

  • Download URL: wcpan_drive_cli-2.3.6.tar.gz
  • Upload date:
  • Size: 12.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.2 Linux/5.15.90.1-microsoft-standard-WSL2

File hashes

Hashes for wcpan_drive_cli-2.3.6.tar.gz
Algorithm Hash digest
SHA256 4227fe8a58450b5586a4eb88e04a902d0d3681f6f4f5c5407a87b47dc6dfb6f8
MD5 690c2dcbc52b9fef768e2a02b4475b52
BLAKE2b-256 cbdcc2a8748c8d27ff20a990b50dc6add7083d7977620c8815537f84d5acb296

See more details on using hashes here.

File details

Details for the file wcpan_drive_cli-2.3.6-py3-none-any.whl.

File metadata

  • Download URL: wcpan_drive_cli-2.3.6-py3-none-any.whl
  • Upload date:
  • Size: 13.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.2 Linux/5.15.90.1-microsoft-standard-WSL2

File hashes

Hashes for wcpan_drive_cli-2.3.6-py3-none-any.whl
Algorithm Hash digest
SHA256 5da6574371305354d2687f0e314dffdbb3cc0d314b59fe1e0e9480fec01dac60
MD5 cf9e0d5786a2e5e251e1684a08f3e335
BLAKE2b-256 5d748d0193d599192a0cdf673c0e3529c1aad56e060a7fc9c43f1f331805ec54

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