Skip to main content

A Python Async WebDAV Client

Project description

Python Async WebDAV Client

PyPI Downloads PyPI - Python Version

A asynchronous WebDAV client that use asyncio

Based on webdavclient3

Installation

We periodically publish source code and wheels on PyPI.

$ pip install aiodav

For install the most updated version:

$ git clone https://github.com/jorgeajimenezl/aiodav.git
$ cd aiodav
$ pip install -e .

Getting started

from aiodav import Client
import asyncio

async def main():
    async with Client('https://webdav.server.com', login='juan', password='cabilla') as client:
        space = await client.free()
        print(f"Free space: {space} bytes")
        
        async def progress(c, t):
            print(f"{c} bytes / {t} bytes")

        await client.download_file('/remote/file.zip', 
                                    '/local/file.zip',
                                    progress=progress)

asyncio.run(main())

License

MIT License

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

aiodav-0.1.12.tar.gz (13.9 kB view hashes)

Uploaded Source

Built Distribution

aiodav-0.1.12-py3-none-any.whl (14.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page