Skip to main content

asynchronous generic cloud drive library

Project description

Asynchronous generic cloud drive library.

This package needs a driver to actually work with a cloud drive.

Example Usage

from import DriveFactory
from import download_to_local

async def api_demo():
    # setup environment
    factory = DriveFactory()
    # read config file from here
    # default is $HOME/.config/wcpan/drive
    factory.config_path = '/tmp/config'
    # put data file to here
    # default is $HOME/.local/share/wcpan/drive
    factory.data_path = '/tmp/data'
    # setup cache database, will write to data folder
    factory.database = 'nodes.sqlite'
    # setup driver class
    factory.driver = ''
    # load config file from config folder
    # this will not overwrite given values

    async with factory() as drive:
        # it is important to keep cache in sync
        async for change in drive.sync():

        # download file
        node = await drive.get_node_by_path('/path/to/drive/file')
        download_to_local(drive, node, '/tmp')

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for, version 1.0.1
Filename, size File type Python version Upload date Hashes
Filename, size (16.6 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size (14.5 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page