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-4.0.1.tar.gz (28.1 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-4.0.1-py3-none-any.whl (23.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wcpan_drive_cli-4.0.1.tar.gz
  • Upload date:
  • Size: 28.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.10 {"installer":{"name":"uv","version":"0.10.10","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}

File hashes

Hashes for wcpan_drive_cli-4.0.1.tar.gz
Algorithm Hash digest
SHA256 15e34476043a0ed801ba8cac9f6658dfb42e2ff6e627453f5b35d953c53c8cc3
MD5 edfc8949182b644f3afbfa814acd9c3c
BLAKE2b-256 cdfe5ced839975427cc54a8d213404fa5846ddab2552411a61c71c688ab87bc8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wcpan_drive_cli-4.0.1-py3-none-any.whl
  • Upload date:
  • Size: 23.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.10 {"installer":{"name":"uv","version":"0.10.10","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}

File hashes

Hashes for wcpan_drive_cli-4.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b03751a1c1db07ddc270cf63c3e6e27f48069d4d76aa9a24fd7ec07c040e53b3
MD5 bc4bb5ab0ab6ca49c3d2d3ca635f4de4
BLAKE2b-256 80072b5b5e4eab478fb209ca206f1c5e4dc6750cb5da335c65e456a28f418ef3

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