WebDAV client library with an fsspec-based filesystem and a CLI
Project description
webdav4
Webdav API with an (optional) fsspec implementation and a CLI.
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.
CLI
webdav4 also provides a CLI similar to aws s3 to make it easier to work with webdav servers.
Please checkout CLI Usage for more information.
Contributing
Contributions are welcome. Please take a look at Contributing Guide for more details.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file webdav4-0.10.0.tar.gz.
File metadata
- Download URL: webdav4-0.10.0.tar.gz
- Upload date:
- Size: 229.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
387da6f0ee384e77149dddd9bcfd434afa155882f6c440a529a7cb458624407f
|
|
| MD5 |
28695af107788db18db7e0a1f48183f6
|
|
| BLAKE2b-256 |
083dd604f9d5195689e578f124f196a5d7e80f3106c8404f5c19b2181691de19
|
File details
Details for the file webdav4-0.10.0-py3-none-any.whl.
File metadata
- Download URL: webdav4-0.10.0-py3-none-any.whl
- Upload date:
- Size: 36.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8f915d72483e572089a3af0a2ad20c7e12d04eee9b9134eb718dbfa37af221d8
|
|
| MD5 |
3bfd8f817a74ccbb7e0106b08a07a867
|
|
| BLAKE2b-256 |
60021b77232297fa52f7bedcf70f3ebe3817e9295f302389fb57dd0e6c077329
|