Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Swarmauri Logo

PyPI - Downloads Hits Supported Python Versions License Release Version

Swarmauri Storage WebDAV

A WebDAV client storage adapter for SwarmauriSDK workflows that store files and directory trees in remote DAV collections.

Features

  • Implements the Swarmauri storage adapter upload, download, push, pull, range-read, byte, and removal workflows.
  • Creates remote collections with MKCOL and enumerates directory trees with bounded PROPFIND Depth: 1 requests.
  • Provides capability discovery through OPTIONS and server-side COPY and MOVE extensions.
  • Supports Basic, Bearer, custom httpx.Auth, TLS verification, and mutual TLS client configuration.
  • Normalizes logical keys, percent-encodes URL path segments, rejects path traversal, and rejects DTD/entity declarations before parsing multistatus XML.
  • Provides discoverable swarmauri.storage_adapters and peagen.plugins.storage_adapters entry points.

LOCK and UNLOCK are not exposed. Their presence alone does not establish complete DAV class-2 behavior; lock-token ownership, refresh, timeout, and conditional-write semantics require a dedicated contract.

Installation

Install this package with uv or pip.

uv add swarmauri_storage_webdav
pip install swarmauri_storage_webdav

Usage

Create an adapter for an existing WebDAV collection and optionally scope all keys beneath a prefix.

from swarmauri_storage_webdav import WebDAVStorageAdapter

with WebDAVStorageAdapter(
    base_url="https://dav.example.com/remote.php/dav/files/jacob/",
    username="jacob",
    password="secret",
    prefix="artifacts",
) as storage:
    storage.put_blob("runs/42/result.json", b'{"status":"complete"}')
    payload = storage.get_blob("runs/42/result.json")

    storage.push("./dist", prefix="releases/0.1.0")
    storage.pull("releases/0.1.0", "./download")

    print(storage.capabilities())
    print(payload)

URI construction is also supported. Credentials are removed from the stored HTTP endpoint and must not be logged.

storage = WebDAVStorageAdapter.from_uri(
    "webdav+https://jacob:secret@dav.example.com/files/jacob/"
)

The endpoint root must already exist. ensure_bucket() creates the configured prefix when one is present; without a prefix it validates the endpoint through OPTIONS.

License: Apache-2.0. See LICENSE.

Metadata

Release files for swarmauri_storage_webdav 0.11.0.dev2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for swarmauri_storage_webdav 0.11.0.dev2
File Size Uploaded Provenance Actions
swarmauri_storage_webdav-0.11.0.dev2.tar.gz 7.7 kB Without provenance Details for swarmauri_storage_webdav-0.11.0.dev2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for swarmauri_storage_webdav 0.11.0.dev2
File Interpreter ABI Platform Actions
swarmauri_storage_webdav-0.11.0.dev2-py3-none-any.whl Python 3 none any Details for swarmauri_storage_webdav-0.11.0.dev2-py3-none-any.whl

Total release size: 16.8 kB

Release files / swarmauri_storage_webdav-0.11.0.dev2.tar.gz

Download URL swarmauri_storage_webdav-0.11.0.dev2.tar.gz
Size 7.7 kB
Tags Source
SHA-256 checksum
How to use checksums
45a3df97f01506f43410e168c934fa27bf51b742f2438f26b55286eed4cb7eb2
BLAKE2b-256 checksum
How to use checksums
77018951d40217f33d602805082f316baa256f1317c7e2e4963c89cc83697be9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / swarmauri_storage_webdav-0.11.0.dev2-py3-none-any.whl

Download URL swarmauri_storage_webdav-0.11.0.dev2-py3-none-any.whl
Size 9.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c33241550424c3f8b9efbb192ae900762b143d2464bc265e36fb42e34c1074e0
BLAKE2b-256 checksum
How to use checksums
359d8195dc702d059a9b1a5a0fb56f211f2499bd6fb0bbc585d07db0c08eca67
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for swarmauri_storage_webdav 0.11.0.dev2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page