Skip to main content

asynchronous generic cloud drive library

Project description

wcpan.drive.core

Asynchronous generic cloud drive library.

This package provides the core abstractions only. It requires a SnapshotService and FileService implementation to work.

Documentation

See the full documentation on Read the Docs.

Quick Example

from wcpan.drive.core import create_drive
from wcpan.drive.core.lib import download_file_to_local, upload_file_from_local

async with create_drive(
    file=create_my_file_service,
    snapshot=create_my_snapshot_service,
) as drive:
    if not await drive.is_authenticated():
        await drive.authenticate()

    async for change in drive.sync():
        print(change)

    root = await drive.get_root()
    node = await upload_file_from_local(drive, local_path, root)
    await download_file_to_local(drive, node, dest_dir)

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_core-5.0.7.tar.gz (35.7 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_core-5.0.7-py3-none-any.whl (32.5 kB view details)

Uploaded Python 3

File details

Details for the file wcpan_drive_core-5.0.7.tar.gz.

File metadata

  • Download URL: wcpan_drive_core-5.0.7.tar.gz
  • Upload date:
  • Size: 35.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.11 {"installer":{"name":"uv","version":"0.10.11","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_core-5.0.7.tar.gz
Algorithm Hash digest
SHA256 98ecd9a0a87b1dc5574a4ab1ec2482df17bf95b20e6981d47d410a64b04e170f
MD5 e23f143e0745db14d1c0476b35574803
BLAKE2b-256 3cc1e6ceca68b58d8312f76cff21944ca3d78d048edb80d677fb928518cf82f7

See more details on using hashes here.

File details

Details for the file wcpan_drive_core-5.0.7-py3-none-any.whl.

File metadata

  • Download URL: wcpan_drive_core-5.0.7-py3-none-any.whl
  • Upload date:
  • Size: 32.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.11 {"installer":{"name":"uv","version":"0.10.11","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_core-5.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 ae6245eb9952fa7d8101d609f08ee95312b7dc08dcc5e81bf7e2d3f90b56814e
MD5 3759ad4dd32293742f56b9d4df268ce2
BLAKE2b-256 49218fe3ae592d2dab1fe9ab62ab137f092ed969e8009de10aaccbcb0eafa588

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