Skip to main content

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


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

Uploaded Python 3

File details

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

File metadata

  • Download URL: wcpan_drive_cli-3.1.3.tar.gz
  • Upload date:
  • Size: 15.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.2 Linux/5.15.133.1-microsoft-standard-WSL2

File hashes

Hashes for wcpan_drive_cli-3.1.3.tar.gz
Algorithm Hash digest
SHA256 22e3c2b2290afd2b7c29e0d792aec96bd7683ed403eb091bc9b9c8914b94e75c
MD5 ccfc653b88e045d3f6cfd992eee0bc3e
BLAKE2b-256 dac7984a0b94448fbbd036958f0af3e1df41e5e0fd5f56c99008fef508e550c8

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for wcpan_drive_cli-3.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c1235d5411c90692d0c624e4a570b2163f89a452ec76ddc3ed6340350427105c
MD5 b5055b0d4554133821e47c06f52fd684
BLAKE2b-256 f5e950d31b92a50aaf62ecac327bc2d0cade8c3f44ad18e810eaaa1e0f1e0b1a

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