WebDavClient#

logo

WebDavClient 🚀

Download files via webdav easily. Use it to communicate to cloud storage provider (e.g. Nextcloud, ownCloud, Magenta, Synology NAS, QNAPS NAS) and automate your personal storage tasks.

Other solutions (on pyPI) did not fit my needs and/or were not actively maintained

For the official docs follow this link.

Linux x64 · build + test Linux arm64 · build + test Windows x64 · build + test Windows arm64 · test Lint gates Automatic Dependency Submission CodeQL TopLang Donate Twitter YouTube

Table of Contents#

About The Project#

This module provides an easy interface for communication via WebDav protocol to a remote host (f.e. you can automate downloads from your cloud). For certain use cases one might want to be able to automatically download files from your cloud. This is an easy way to do it

Usage Example:#

from kataglyphis_webdavclient.webdavclient import WebDavClient

hostname = "https://yourhost.de/webdav"
username = "Schlawiner23"
password = "YOUR_PERSONAL_TOKEN"
remote_base_path = "MyProjectFolder"
local_base_path = "assets"
webdevclient = WebDavClient(hostname, username, password)
webdevclient.download_all_files_iterative(remote_base_path, local_base_path)

Creating a WebDavClient also creates logs/ in the current working directory and logs to logs/downloadMd_s.log there. demo/download_markdown_files.py is the same example as a command-line script.

Key Features#

Feature

Implement Status

Download all files from remote host

✔️

Dependencies#

Python ≥ 3.10 (requires-python in pyproject.toml), managed with uv.

  • Python dependencies are declared in pyproject.toml (the runtime set plus the tests and docs extras) and locked in uv.lock

./scripts/linux/ci_static_analysis.sh x64 3.14 > "ci_analysis_$(date +%Y%m%d_%H%M%S).log" 2>&1
  uv sync --all-extras --python 3.14

Useful tools#

Getting Started#

Prerequisites#

Search the tree with ripgrep (rg): winget install --id BurntSushi.ripgrep.MSVC -e --scope user on Windows, apt install ripgrep on Linux.

Installation#

  1. Clone the repo

    git clone --recurse-submodules git@github.com:Kataglyphis/WebDavClient.git
    

Tests#

Run pytest in root directory (uv run pytest after the sync above) :smile: The WebDAV tests start a local mock server over tests/remote/, so no remote host is needed. Every CI lane runs the whole suite, on 3.14 and the free-threaded 3.14t.

Roadmap#

Upcoming :)

Contributing#

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project

  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)

  3. Commit your Changes (git commit -m 'Add some AmazingFeature')

  4. Push to the Branch (git push origin feature/AmazingFeature)

  5. Open a Pull Request

License#

MIT — the text is in LICENSE.

Contact#

Jonas Heinle - @Cataglyphis_ - jonasheinle@googlemail.com

Project Link: Kataglyphis/WebDavClient

Acknowledgements#

Literature#

Some very helpful literature, tutorials, etc.

  • https://de.wikipedia.org/wiki/WebDAV