No project description provided
Project description
webdav4
Webdav API with an (optional) fsspec implementation
Installation
$ pip install webdav4
Usage
webdav4 Client
from webdav4.client import Client
client = Client("https://webdav.com", auth=("username", "password"))
client.exists("Documents/Readme.md")
client.ls("Photos", detail=False)
client.upload_file("Gorilla.jpg", "Photos/Gorilla.jpg")
Check out Client API reference for more information.
fsspec
fsspec
tries to provide a
consistent APIs to different storage backends, by defining standard
interfaces, so that other code using them could operate without depending
on the implementations of the backends. This package, in the same way,
wraps the above webdav client with a consistent file-system API.
To use it, you need to install fsspec
additionally which you can do as
follows:
$ pip install webdav4[fsspec]
from webdav4.fsspec import WebdavFileSystem
fs = WebdavFileSystem("https://webdav.com", auth=("username", "password"))
fs.exists("Documents/Readme.md")
fs.ls("Photos", detail=False)
Check out WebdavFileSystem API reference for more information.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
webdav4-0.6.1.tar.gz
(47.4 kB
view hashes)
Built Distribution
webdav4-0.6.1-py3-none-any.whl
(24.4 kB
view hashes)