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-6.0.0.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-6.0.0-py3-none-any.whl (32.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wcpan_drive_core-6.0.0.tar.gz
  • Upload date:
  • Size: 35.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","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-6.0.0.tar.gz
Algorithm Hash digest
SHA256 137fea6d798f281c808a800780ec409e214019647cb8efa30b8c95ede0924eee
MD5 515c9344e3d8d45b1ce937b4cda80cec
BLAKE2b-256 336993a7b960f8847ba0ae801d14093177ac2629edc3c55708e2a7e395ec321b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wcpan_drive_core-6.0.0-py3-none-any.whl
  • Upload date:
  • Size: 32.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","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-6.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b1cbd852c8ef33b8cf318f734bed200ff77bf5cd8aa0bd1e4732ca1ba657614a
MD5 f22cd87a95315db0f46967ef0e299e72
BLAKE2b-256 26cb67d00e697df827734726f83e89ca883ad91f0702746b812ae0e086bc84ec

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