Skip to main content

WebDAV client library with an fsspec-based filesystem and a CLI

Project description

webdav4

PyPi Conda Status Python Version ci

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. cli-usage

Please checkout CLI Usage for more information.

Contributing

Contributions are welcome. Please take a look at Contributing Guide for more details.

Project details


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.10.0.tar.gz (229.2 kB view details)

Uploaded Source

Built Distribution

webdav4-0.10.0-py3-none-any.whl (36.4 kB view details)

Uploaded Python 3

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

Hashes for webdav4-0.10.0.tar.gz
Algorithm Hash digest
SHA256 387da6f0ee384e77149dddd9bcfd434afa155882f6c440a529a7cb458624407f
MD5 28695af107788db18db7e0a1f48183f6
BLAKE2b-256 083dd604f9d5195689e578f124f196a5d7e80f3106c8404f5c19b2181691de19

See more details on using hashes here.

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

Hashes for webdav4-0.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8f915d72483e572089a3af0a2ad20c7e12d04eee9b9134eb718dbfa37af221d8
MD5 3bfd8f817a74ccbb7e0106b08a07a867
BLAKE2b-256 60021b77232297fa52f7bedcf70f3ebe3817e9295f302389fb57dd0e6c077329

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page