webdav4 is a modern Python library for interacting with WebDAV servers, providing both a low-level client (`WebdavClient`) and an `fsspec`-compatible filesystem (`WebdavFS`). It is currently at version 0.11.0 and is actively maintained, with regular releases addressing features and bug fixes. It aims to offer a robust and user-friendly way to manage files on WebDAV resources.
pip install webdav4Verified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to initialize `WebdavFS`, list directory contents, create a new directory, and write/read a file. Remember to replace placeholder credentials with your actual WebDAV server details or set them as environment variables. SSL verification might need to be disabled for servers with self-signed certificates.
Uninstall the old package (`pip uninstall webdav` if installed), install the new one (`pip install webdav4`), and update all import statements to use `webdav4` (e.g., `from webdav4.client import WebdavClient`).
Review the latest documentation for `WebdavClient` and `WebdavFS` constructor arguments. For `WebdavFS`, pass the full URL to `url` and credentials directly as `username` and `password`. For `WebdavClient`, use `base_url` and `username`/`password`.
To bypass certificate verification (use with caution and only for development/testing), pass `verify=False` to the `WebdavClient` or `WebdavFS` constructor, e.g., `WebdavFS(url=..., username=..., password=..., verify=False)`.
For direct `WebdavFS` instantiation, use `WebdavFS(url='https://example.com/webdav/')`. For `fsspec.filesystem` or `fsspec.open`, use `fsspec.filesystem('webdav', url='webdavs://example.com/webdav/')` or `fsspec.open('webdavs://example.com/webdav/path/to/file', ...)`. Note that `fsspec.filesystem` often expects an `url` argument, but it's used for the *fsspec* URL, not the base_url.No dependency data recorded yet.