WsgiDAV 4.3.3__tar.gz → 4.3.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. wsgidav-4.3.4/PKG-INFO +163 -0
  2. wsgidav-4.3.4/README.md +113 -0
  3. wsgidav-4.3.4/WsgiDAV.egg-info/PKG-INFO +163 -0
  4. {wsgidav-4.3.3 → wsgidav-4.3.4}/WsgiDAV.egg-info/SOURCES.txt +7 -2
  5. {wsgidav-4.3.3 → wsgidav-4.3.4}/WsgiDAV.egg-info/requires.txt +2 -0
  6. wsgidav-4.3.4/pyproject.toml +98 -0
  7. {wsgidav-4.3.3 → wsgidav-4.3.4}/setup.cfg +3 -43
  8. wsgidav-4.3.4/setup_bdist_msi.py +156 -0
  9. {wsgidav-4.3.3 → wsgidav-4.3.4}/tests/test_http.py +3 -2
  10. {wsgidav-4.3.3 → wsgidav-4.3.4}/tests/test_litmus.py +1 -0
  11. {wsgidav-4.3.3 → wsgidav-4.3.4}/tests/test_lock_manager.py +2 -1
  12. {wsgidav-4.3.3 → wsgidav-4.3.4}/tests/test_property_manager.py +1 -0
  13. {wsgidav-4.3.3 → wsgidav-4.3.4}/tests/test_scripted.py +42 -4
  14. {wsgidav-4.3.3 → wsgidav-4.3.4}/tests/test_util.py +11 -1
  15. {wsgidav-4.3.3 → wsgidav-4.3.4}/tests/test_wsgidav_app.py +14 -9
  16. {wsgidav-4.3.3 → wsgidav-4.3.4}/wsgidav/__init__.py +1 -1
  17. {wsgidav-4.3.3 → wsgidav-4.3.4}/wsgidav/dav_error.py +25 -6
  18. {wsgidav-4.3.3 → wsgidav-4.3.4}/wsgidav/dav_provider.py +3 -1
  19. {wsgidav-4.3.3 → wsgidav-4.3.4}/wsgidav/dc/base_dc.py +1 -0
  20. wsgidav-4.3.4/wsgidav/dc/htdigest_dc.py +39 -0
  21. wsgidav-4.3.4/wsgidav/dc/htpasswd_dc.py +33 -0
  22. {wsgidav-4.3.3 → wsgidav-4.3.4}/wsgidav/dc/nt_dc.py +1 -1
  23. {wsgidav-4.3.3 → wsgidav-4.3.4}/wsgidav/dc/pam_dc.py +29 -0
  24. {wsgidav-4.3.3 → wsgidav-4.3.4}/wsgidav/dc/simple_dc.py +1 -0
  25. {wsgidav-4.3.3 → wsgidav-4.3.4}/wsgidav/default_conf.py +6 -0
  26. {wsgidav-4.3.3 → wsgidav-4.3.4}/wsgidav/dir_browser/_dir_browser.py +4 -4
  27. {wsgidav-4.3.3 → wsgidav-4.3.4}/wsgidav/error_printer.py +7 -0
  28. {wsgidav-4.3.3 → wsgidav-4.3.4}/wsgidav/fs_dav_provider.py +22 -5
  29. {wsgidav-4.3.3 → wsgidav-4.3.4}/wsgidav/http_authenticator.py +1 -1
  30. {wsgidav-4.3.3 → wsgidav-4.3.4}/wsgidav/lock_man/lock_manager.py +1 -0
  31. {wsgidav-4.3.3 → wsgidav-4.3.4}/wsgidav/lock_man/lock_storage.py +1 -0
  32. {wsgidav-4.3.3 → wsgidav-4.3.4}/wsgidav/mw/cors.py +1 -0
  33. {wsgidav-4.3.3 → wsgidav-4.3.4}/wsgidav/mw/debug_filter.py +1 -0
  34. wsgidav-4.3.4/wsgidav/mw/impersonator.py +114 -0
  35. {wsgidav-4.3.3 → wsgidav-4.3.4}/wsgidav/prop_man/couch_property_manager.py +2 -3
  36. {wsgidav-4.3.3 → wsgidav-4.3.4}/wsgidav/prop_man/mongo_property_manager.py +1 -0
  37. {wsgidav-4.3.3 → wsgidav-4.3.4}/wsgidav/prop_man/property_manager.py +1 -0
  38. {wsgidav-4.3.3 → wsgidav-4.3.4}/wsgidav/request_resolver.py +1 -0
  39. {wsgidav-4.3.3 → wsgidav-4.3.4}/wsgidav/request_server.py +39 -11
  40. {wsgidav-4.3.3 → wsgidav-4.3.4}/wsgidav/samples/dav_provider_tools.py +1 -0
  41. {wsgidav-4.3.3 → wsgidav-4.3.4}/wsgidav/samples/hg_dav_provider.py +2 -1
  42. {wsgidav-4.3.3 → wsgidav-4.3.4}/wsgidav/samples/mongo_dav_provider.py +1 -0
  43. {wsgidav-4.3.3 → wsgidav-4.3.4}/wsgidav/samples/mysql_dav_provider.py +1 -0
  44. {wsgidav-4.3.3 → wsgidav-4.3.4}/wsgidav/samples/virtual_dav_provider.py +2 -1
  45. {wsgidav-4.3.3 → wsgidav-4.3.4}/wsgidav/server/ext_wsgiutils_server.py +1 -0
  46. {wsgidav-4.3.3 → wsgidav-4.3.4}/wsgidav/server/run_reloading_server.py +1 -0
  47. {wsgidav-4.3.3 → wsgidav-4.3.4}/wsgidav/server/server_cli.py +2 -1
  48. {wsgidav-4.3.3 → wsgidav-4.3.4}/wsgidav/server/server_sample.py +1 -0
  49. {wsgidav-4.3.3 → wsgidav-4.3.4}/wsgidav/stream_tools.py +1 -0
  50. {wsgidav-4.3.3 → wsgidav-4.3.4}/wsgidav/util.py +10 -6
  51. {wsgidav-4.3.3 → wsgidav-4.3.4}/wsgidav/wsgidav_app.py +1 -0
  52. {wsgidav-4.3.3 → wsgidav-4.3.4}/wsgidav/xml_tools.py +1 -0
  53. wsgidav-4.3.3/CHANGELOG.md +0 -409
  54. wsgidav-4.3.3/PKG-INFO +0 -146
  55. wsgidav-4.3.3/README.md +0 -99
  56. wsgidav-4.3.3/WsgiDAV.egg-info/PKG-INFO +0 -146
  57. wsgidav-4.3.3/pyproject.toml +0 -71
  58. wsgidav-4.3.3/sample_wsgidav.yaml +0 -354
  59. {wsgidav-4.3.3 → wsgidav-4.3.4}/LICENSE +0 -0
  60. {wsgidav-4.3.3 → wsgidav-4.3.4}/WsgiDAV.egg-info/dependency_links.txt +0 -0
  61. {wsgidav-4.3.3 → wsgidav-4.3.4}/WsgiDAV.egg-info/entry_points.txt +0 -0
  62. {wsgidav-4.3.3 → wsgidav-4.3.4}/WsgiDAV.egg-info/not-zip-safe +0 -0
  63. {wsgidav-4.3.3 → wsgidav-4.3.4}/WsgiDAV.egg-info/top_level.txt +0 -0
  64. {wsgidav-4.3.3 → wsgidav-4.3.4}/setup.py +0 -0
  65. {wsgidav-4.3.3 → wsgidav-4.3.4}/tests/test_streaming.py +0 -0
  66. {wsgidav-4.3.3 → wsgidav-4.3.4}/wsgidav/dc/__init__.py +0 -0
  67. {wsgidav-4.3.3 → wsgidav-4.3.4}/wsgidav/dir_browser/__init__.py +0 -0
  68. {wsgidav-4.3.3 → wsgidav-4.3.4}/wsgidav/dir_browser/htdocs/favicon.ico +0 -0
  69. {wsgidav-4.3.3 → wsgidav-4.3.4}/wsgidav/dir_browser/htdocs/logo.png +0 -0
  70. {wsgidav-4.3.3 → wsgidav-4.3.4}/wsgidav/dir_browser/htdocs/script.js +0 -0
  71. {wsgidav-4.3.3 → wsgidav-4.3.4}/wsgidav/dir_browser/htdocs/style.css +0 -0
  72. {wsgidav-4.3.3 → wsgidav-4.3.4}/wsgidav/dir_browser/htdocs/template.html +0 -0
  73. {wsgidav-4.3.3 → wsgidav-4.3.4}/wsgidav/lock_man/__init__.py +0 -0
  74. {wsgidav-4.3.3 → wsgidav-4.3.4}/wsgidav/lock_man/lock_storage_redis.py +0 -0
  75. {wsgidav-4.3.3 → wsgidav-4.3.4}/wsgidav/mw/__init__.py +0 -0
  76. {wsgidav-4.3.3 → wsgidav-4.3.4}/wsgidav/mw/base_mw.py +0 -0
  77. {wsgidav-4.3.3 → wsgidav-4.3.4}/wsgidav/prop_man/__init__.py +0 -0
  78. {wsgidav-4.3.3 → wsgidav-4.3.4}/wsgidav/rw_lock.py +0 -0
  79. {wsgidav-4.3.3 → wsgidav-4.3.4}/wsgidav/samples/__init__.py +0 -0
  80. {wsgidav-4.3.3 → wsgidav-4.3.4}/wsgidav/server/__init__.py +0 -0
wsgidav-4.3.4/PKG-INFO ADDED
@@ -0,0 +1,163 @@
1
+ Metadata-Version: 2.1
2
+ Name: WsgiDAV
3
+ Version: 4.3.4
4
+ Summary: Generic and extendable WebDAV server based on WSGI
5
+ Home-page: https://github.com/mar10/wsgidav
6
+ Author: Martin Wendt
7
+ Author-email: wsgidav@wwwendt.de
8
+ Maintainer: Martin Wendt
9
+ Maintainer-email: wsgidav@wwwendt.de
10
+ License: MIT
11
+ Project-URL: Bug Tracker, https://github.com/mar10/wsgidav/issues
12
+ Project-URL: Source Code, https://github.com/mar10/wsgidav
13
+ Project-URL: Documentation, https://wsgidav.readthedocs.io
14
+ Project-URL: Download, https://github.com/mar10/wsgidav/releases/latest
15
+ Project-URL: Discussions, https://github.com/mar10/wsgidav/discussions
16
+ Keywords: web,wsgi,webdav,application,server
17
+ Classifier: Development Status :: 5 - Production/Stable
18
+ Classifier: Environment :: Console
19
+ Classifier: Intended Audience :: Developers
20
+ Classifier: Intended Audience :: Information Technology
21
+ Classifier: Intended Audience :: System Administrators
22
+ Classifier: License :: OSI Approved :: MIT License
23
+ Classifier: Operating System :: OS Independent
24
+ Classifier: Programming Language :: Python
25
+ Classifier: Programming Language :: Python :: 3
26
+ Classifier: Programming Language :: Python :: 3 :: Only
27
+ Classifier: Programming Language :: Python :: 3.8
28
+ Classifier: Programming Language :: Python :: 3.9
29
+ Classifier: Programming Language :: Python :: 3.10
30
+ Classifier: Programming Language :: Python :: 3.11
31
+ Classifier: Programming Language :: Python :: 3.12
32
+ Classifier: Programming Language :: Python :: 3.13
33
+ Classifier: Topic :: Internet :: WWW/HTTP
34
+ Classifier: Topic :: Internet :: WWW/HTTP :: HTTP Servers
35
+ Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
36
+ Classifier: Topic :: Internet :: WWW/HTTP :: WSGI
37
+ Classifier: Topic :: Internet :: WWW/HTTP :: WSGI :: Application
38
+ Classifier: Topic :: Internet :: WWW/HTTP :: WSGI :: Server
39
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
40
+ Description-Content-Type: text/markdown
41
+ License-File: LICENSE
42
+ Requires-Dist: defusedxml
43
+ Requires-Dist: Jinja2
44
+ Requires-Dist: json5
45
+ Requires-Dist: PyYAML
46
+ Requires-Dist: passlib
47
+ Requires-Dist: bcrypt<5,>=4.0
48
+ Provides-Extra: pam
49
+ Requires-Dist: python-pam; extra == "pam"
50
+
51
+ # ![logo](https://raw.githubusercontent.com/mar10/wsgidav/master/docs/source/logo.png) WsgiDAV
52
+
53
+ [![Tests](https://github.com/mar10/wsgidav/actions/workflows/tests.yml/badge.svg)](https://github.com/mar10/wsgidav/actions/workflows/tests.yml)
54
+ [![Latest Version](https://img.shields.io/pypi/v/wsgidav.svg)](https://pypi.python.org/pypi/WsgiDAV/)
55
+ [![License](https://img.shields.io/pypi/l/wsgidav.svg)](https://github.com/mar10/wsgidav/blob/master/LICENSE)
56
+ [![Documentation Status](https://readthedocs.org/projects/wsgidav/badge/?version=latest)](http://wsgidav.readthedocs.io/)
57
+ [![codecov](https://codecov.io/gh/mar10/wsgidav/graph/badge.svg?token=0hNADSIxDz)](https://codecov.io/gh/mar10/wsgidav)
58
+ [![Released with: Yabs](https://img.shields.io/badge/released%20with-yabs-yellowgreen)](https://github.com/mar10/yabs)
59
+ [![Downloads](https://img.shields.io/pypi/dm/wsgidav.svg)](https://pypi.python.org/pypi/WsgiDAV/)
60
+
61
+ <!-- [![StackOverflow: WsgiDAV](https://img.shields.io/badge/StackOverflow-WsgiDAV-blue.svg)](https://stackoverflow.com/questions/tagged/WsgiDAV) -->
62
+ <!-- [![Edit online in vscode.dev](https://img.shields.io/static/v1?logo=visualstudiocode&label=&message=Open%20in%20Visual%20Studio%20Code&labelColor=2c2c32&color=007acc&logoColor=007acc) ](https://vscode.dev/github/mar10/wsgidav) -->
63
+
64
+ A generic and extendable [WebDAV](http://www.ietf.org/rfc/rfc4918.txt) server
65
+ written in Python and based on [WSGI](http://www.python.org/dev/peps/pep-3333/).
66
+
67
+ Main features:
68
+
69
+ - WsgiDAV is a stand-alone WebDAV server with SSL support, that can be
70
+ installed and run as Python command line script on Linux, OSX, and Windows:<br>
71
+
72
+ ```log
73
+ $ pip install wsgidav cheroot
74
+ $ wsgidav --host=0.0.0.0 --port=80 --root=/tmp --auth=anonymous
75
+ Running without configuration file.
76
+ 10:54:16.597 - INFO : WsgiDAV/4.0.0-a1 Python/3.9.1 macOS-12.0.1-x86_64-i386-64bit
77
+ 10:54:16.598 - INFO : Registered DAV providers by route:
78
+ 10:54:16.598 - INFO : - '/:dir_browser': FilesystemProvider for path '/Users/martin/prj/git/wsgidav/wsgidav/dir_browser/htdocs' (Read-Only) (anonymous)
79
+ 10:54:16.599 - INFO : - '/': FilesystemProvider for path '/tmp' (Read-Write) (anonymous)
80
+ 10:54:16.599 - WARNING : Basic authentication is enabled: It is highly recommended to enable SSL.
81
+ 10:54:16.599 - WARNING : Share '/' will allow anonymous write access.
82
+ 10:54:16.813 - INFO : Running WsgiDAV/4.0.0-a1 Cheroot/8.5.2 Python 3.9.1
83
+ 10:54:16.813 - INFO : Serving on http://0.0.0.0:80 ...
84
+ ```
85
+
86
+ Run `wsgidav --help` for a list of available options.<br>
87
+
88
+ - The [python-pam](https://github.com/FirefighterBlu3/python-pam) library is
89
+ needed as extra requirement if pam-login authentication is used on Linux
90
+ or OSX:
91
+
92
+ ```bash
93
+ $ pip install wsgidav[pam]
94
+ $ wsgidav --host=0.0.0.0 --port=8080 --root=/tmp --auth=pam-login
95
+ ```
96
+
97
+ - Windows users may prefer the
98
+ [MSI Installer](https://github.com/mar10/wsgidav/releases/latest)
99
+ (see <kbd>Assets</kbd> section), or use _winget_:
100
+
101
+ ```ps1
102
+ > winget install wsgidav
103
+ ```
104
+
105
+ - Use with [Docker](https://hub.docker.com/r/mar10/wsgidav/): <br>
106
+ An experimental Docker image that exposes a local directory using WebDAV
107
+ is available here:
108
+
109
+ ```bash
110
+ $ docker pull mar10/wsgidav
111
+ $ docker run --rm -it -p <PORT>:8080 -v <ROOT_FOLDER>:/var/wsgidav-root mar10/wsgidav
112
+ ```
113
+
114
+ for example::
115
+
116
+ ```bash
117
+ $ docker run --rm -it -p 8080:8080 -v /tmp:/var/wsgidav-root mar10/wsgidav
118
+ ```
119
+
120
+ - WebDAV is a superset of HTTP, so WsgiDAV is also a performant, multi-threaded
121
+ web server with SSL support.
122
+
123
+ - WsgiDAV is also a Python library that implements the WSGI protocol and can
124
+ be run behind any WSGI compliant web server.<br>
125
+
126
+ - WsgiDAV is implemented as a configurable stack of WSGI middleware
127
+ applications.<br>
128
+ Its open architecture allows to extend the functionality and integrate
129
+ WebDAV services into your project.<br>
130
+ Typical use cases are:
131
+ - Expose data structures as virtual, editable file systems.
132
+ - Allow online editing of MS Office documents.
133
+
134
+ ## Status
135
+
136
+ [![Latest Version](https://img.shields.io/pypi/v/wsgidav.svg)](https://pypi.python.org/pypi/WsgiDAV/)
137
+ See the ([change log](https://github.com/mar10/wsgidav/blob/master/CHANGELOG.md)) for details.
138
+
139
+ **Note:** Release 4.0 introduces some refactorings and breaking changes.<br>
140
+ See the ([change log](https://github.com/mar10/wsgidav/blob/master/CHANGELOG.md)) for details.
141
+
142
+ ## More info
143
+
144
+ - [Read The Docs](http://wsgidav.rtfd.org) for details.
145
+ - [Discussion Group](https://github.com/mar10/wsgidav/discussions)
146
+ - [Stackoverflow](http://stackoverflow.com/questions/tagged/wsgidav)
147
+
148
+ ## Credits
149
+
150
+ Contributors:
151
+
152
+ - WsgiDAV is a [refactored version](https://github.com/mar10/wsgidav/blob/master/docs/source/changelog04.md)
153
+ of [PyFileServer 0.2](https://github.com/cwho/pyfileserver),
154
+ Copyright (c) 2005 Ho Chun Wei.<br>
155
+ Chun gave his approval to change the license from LGPL to MIT-License for
156
+ this project.
157
+ - <https://github.com/mar10/wsgidav/contributors>
158
+ - Markus Majer for providing the logo (a mixture of the international
159
+ maritime signal flag for 'W (Whiskey)' and a dove.)
160
+
161
+ Any kind of feedback is very welcome!<br>
162
+ Have fun :-)<br>
163
+ Martin
@@ -0,0 +1,113 @@
1
+ # ![logo](https://raw.githubusercontent.com/mar10/wsgidav/master/docs/source/logo.png) WsgiDAV
2
+
3
+ [![Tests](https://github.com/mar10/wsgidav/actions/workflows/tests.yml/badge.svg)](https://github.com/mar10/wsgidav/actions/workflows/tests.yml)
4
+ [![Latest Version](https://img.shields.io/pypi/v/wsgidav.svg)](https://pypi.python.org/pypi/WsgiDAV/)
5
+ [![License](https://img.shields.io/pypi/l/wsgidav.svg)](https://github.com/mar10/wsgidav/blob/master/LICENSE)
6
+ [![Documentation Status](https://readthedocs.org/projects/wsgidav/badge/?version=latest)](http://wsgidav.readthedocs.io/)
7
+ [![codecov](https://codecov.io/gh/mar10/wsgidav/graph/badge.svg?token=0hNADSIxDz)](https://codecov.io/gh/mar10/wsgidav)
8
+ [![Released with: Yabs](https://img.shields.io/badge/released%20with-yabs-yellowgreen)](https://github.com/mar10/yabs)
9
+ [![Downloads](https://img.shields.io/pypi/dm/wsgidav.svg)](https://pypi.python.org/pypi/WsgiDAV/)
10
+
11
+ <!-- [![StackOverflow: WsgiDAV](https://img.shields.io/badge/StackOverflow-WsgiDAV-blue.svg)](https://stackoverflow.com/questions/tagged/WsgiDAV) -->
12
+ <!-- [![Edit online in vscode.dev](https://img.shields.io/static/v1?logo=visualstudiocode&label=&message=Open%20in%20Visual%20Studio%20Code&labelColor=2c2c32&color=007acc&logoColor=007acc) ](https://vscode.dev/github/mar10/wsgidav) -->
13
+
14
+ A generic and extendable [WebDAV](http://www.ietf.org/rfc/rfc4918.txt) server
15
+ written in Python and based on [WSGI](http://www.python.org/dev/peps/pep-3333/).
16
+
17
+ Main features:
18
+
19
+ - WsgiDAV is a stand-alone WebDAV server with SSL support, that can be
20
+ installed and run as Python command line script on Linux, OSX, and Windows:<br>
21
+
22
+ ```log
23
+ $ pip install wsgidav cheroot
24
+ $ wsgidav --host=0.0.0.0 --port=80 --root=/tmp --auth=anonymous
25
+ Running without configuration file.
26
+ 10:54:16.597 - INFO : WsgiDAV/4.0.0-a1 Python/3.9.1 macOS-12.0.1-x86_64-i386-64bit
27
+ 10:54:16.598 - INFO : Registered DAV providers by route:
28
+ 10:54:16.598 - INFO : - '/:dir_browser': FilesystemProvider for path '/Users/martin/prj/git/wsgidav/wsgidav/dir_browser/htdocs' (Read-Only) (anonymous)
29
+ 10:54:16.599 - INFO : - '/': FilesystemProvider for path '/tmp' (Read-Write) (anonymous)
30
+ 10:54:16.599 - WARNING : Basic authentication is enabled: It is highly recommended to enable SSL.
31
+ 10:54:16.599 - WARNING : Share '/' will allow anonymous write access.
32
+ 10:54:16.813 - INFO : Running WsgiDAV/4.0.0-a1 Cheroot/8.5.2 Python 3.9.1
33
+ 10:54:16.813 - INFO : Serving on http://0.0.0.0:80 ...
34
+ ```
35
+
36
+ Run `wsgidav --help` for a list of available options.<br>
37
+
38
+ - The [python-pam](https://github.com/FirefighterBlu3/python-pam) library is
39
+ needed as extra requirement if pam-login authentication is used on Linux
40
+ or OSX:
41
+
42
+ ```bash
43
+ $ pip install wsgidav[pam]
44
+ $ wsgidav --host=0.0.0.0 --port=8080 --root=/tmp --auth=pam-login
45
+ ```
46
+
47
+ - Windows users may prefer the
48
+ [MSI Installer](https://github.com/mar10/wsgidav/releases/latest)
49
+ (see <kbd>Assets</kbd> section), or use _winget_:
50
+
51
+ ```ps1
52
+ > winget install wsgidav
53
+ ```
54
+
55
+ - Use with [Docker](https://hub.docker.com/r/mar10/wsgidav/): <br>
56
+ An experimental Docker image that exposes a local directory using WebDAV
57
+ is available here:
58
+
59
+ ```bash
60
+ $ docker pull mar10/wsgidav
61
+ $ docker run --rm -it -p <PORT>:8080 -v <ROOT_FOLDER>:/var/wsgidav-root mar10/wsgidav
62
+ ```
63
+
64
+ for example::
65
+
66
+ ```bash
67
+ $ docker run --rm -it -p 8080:8080 -v /tmp:/var/wsgidav-root mar10/wsgidav
68
+ ```
69
+
70
+ - WebDAV is a superset of HTTP, so WsgiDAV is also a performant, multi-threaded
71
+ web server with SSL support.
72
+
73
+ - WsgiDAV is also a Python library that implements the WSGI protocol and can
74
+ be run behind any WSGI compliant web server.<br>
75
+
76
+ - WsgiDAV is implemented as a configurable stack of WSGI middleware
77
+ applications.<br>
78
+ Its open architecture allows to extend the functionality and integrate
79
+ WebDAV services into your project.<br>
80
+ Typical use cases are:
81
+ - Expose data structures as virtual, editable file systems.
82
+ - Allow online editing of MS Office documents.
83
+
84
+ ## Status
85
+
86
+ [![Latest Version](https://img.shields.io/pypi/v/wsgidav.svg)](https://pypi.python.org/pypi/WsgiDAV/)
87
+ See the ([change log](https://github.com/mar10/wsgidav/blob/master/CHANGELOG.md)) for details.
88
+
89
+ **Note:** Release 4.0 introduces some refactorings and breaking changes.<br>
90
+ See the ([change log](https://github.com/mar10/wsgidav/blob/master/CHANGELOG.md)) for details.
91
+
92
+ ## More info
93
+
94
+ - [Read The Docs](http://wsgidav.rtfd.org) for details.
95
+ - [Discussion Group](https://github.com/mar10/wsgidav/discussions)
96
+ - [Stackoverflow](http://stackoverflow.com/questions/tagged/wsgidav)
97
+
98
+ ## Credits
99
+
100
+ Contributors:
101
+
102
+ - WsgiDAV is a [refactored version](https://github.com/mar10/wsgidav/blob/master/docs/source/changelog04.md)
103
+ of [PyFileServer 0.2](https://github.com/cwho/pyfileserver),
104
+ Copyright (c) 2005 Ho Chun Wei.<br>
105
+ Chun gave his approval to change the license from LGPL to MIT-License for
106
+ this project.
107
+ - <https://github.com/mar10/wsgidav/contributors>
108
+ - Markus Majer for providing the logo (a mixture of the international
109
+ maritime signal flag for 'W (Whiskey)' and a dove.)
110
+
111
+ Any kind of feedback is very welcome!<br>
112
+ Have fun :-)<br>
113
+ Martin
@@ -0,0 +1,163 @@
1
+ Metadata-Version: 2.1
2
+ Name: WsgiDAV
3
+ Version: 4.3.4
4
+ Summary: Generic and extendable WebDAV server based on WSGI
5
+ Home-page: https://github.com/mar10/wsgidav
6
+ Author: Martin Wendt
7
+ Author-email: wsgidav@wwwendt.de
8
+ Maintainer: Martin Wendt
9
+ Maintainer-email: wsgidav@wwwendt.de
10
+ License: MIT
11
+ Project-URL: Bug Tracker, https://github.com/mar10/wsgidav/issues
12
+ Project-URL: Source Code, https://github.com/mar10/wsgidav
13
+ Project-URL: Documentation, https://wsgidav.readthedocs.io
14
+ Project-URL: Download, https://github.com/mar10/wsgidav/releases/latest
15
+ Project-URL: Discussions, https://github.com/mar10/wsgidav/discussions
16
+ Keywords: web,wsgi,webdav,application,server
17
+ Classifier: Development Status :: 5 - Production/Stable
18
+ Classifier: Environment :: Console
19
+ Classifier: Intended Audience :: Developers
20
+ Classifier: Intended Audience :: Information Technology
21
+ Classifier: Intended Audience :: System Administrators
22
+ Classifier: License :: OSI Approved :: MIT License
23
+ Classifier: Operating System :: OS Independent
24
+ Classifier: Programming Language :: Python
25
+ Classifier: Programming Language :: Python :: 3
26
+ Classifier: Programming Language :: Python :: 3 :: Only
27
+ Classifier: Programming Language :: Python :: 3.8
28
+ Classifier: Programming Language :: Python :: 3.9
29
+ Classifier: Programming Language :: Python :: 3.10
30
+ Classifier: Programming Language :: Python :: 3.11
31
+ Classifier: Programming Language :: Python :: 3.12
32
+ Classifier: Programming Language :: Python :: 3.13
33
+ Classifier: Topic :: Internet :: WWW/HTTP
34
+ Classifier: Topic :: Internet :: WWW/HTTP :: HTTP Servers
35
+ Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
36
+ Classifier: Topic :: Internet :: WWW/HTTP :: WSGI
37
+ Classifier: Topic :: Internet :: WWW/HTTP :: WSGI :: Application
38
+ Classifier: Topic :: Internet :: WWW/HTTP :: WSGI :: Server
39
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
40
+ Description-Content-Type: text/markdown
41
+ License-File: LICENSE
42
+ Requires-Dist: defusedxml
43
+ Requires-Dist: Jinja2
44
+ Requires-Dist: json5
45
+ Requires-Dist: PyYAML
46
+ Requires-Dist: passlib
47
+ Requires-Dist: bcrypt<5,>=4.0
48
+ Provides-Extra: pam
49
+ Requires-Dist: python-pam; extra == "pam"
50
+
51
+ # ![logo](https://raw.githubusercontent.com/mar10/wsgidav/master/docs/source/logo.png) WsgiDAV
52
+
53
+ [![Tests](https://github.com/mar10/wsgidav/actions/workflows/tests.yml/badge.svg)](https://github.com/mar10/wsgidav/actions/workflows/tests.yml)
54
+ [![Latest Version](https://img.shields.io/pypi/v/wsgidav.svg)](https://pypi.python.org/pypi/WsgiDAV/)
55
+ [![License](https://img.shields.io/pypi/l/wsgidav.svg)](https://github.com/mar10/wsgidav/blob/master/LICENSE)
56
+ [![Documentation Status](https://readthedocs.org/projects/wsgidav/badge/?version=latest)](http://wsgidav.readthedocs.io/)
57
+ [![codecov](https://codecov.io/gh/mar10/wsgidav/graph/badge.svg?token=0hNADSIxDz)](https://codecov.io/gh/mar10/wsgidav)
58
+ [![Released with: Yabs](https://img.shields.io/badge/released%20with-yabs-yellowgreen)](https://github.com/mar10/yabs)
59
+ [![Downloads](https://img.shields.io/pypi/dm/wsgidav.svg)](https://pypi.python.org/pypi/WsgiDAV/)
60
+
61
+ <!-- [![StackOverflow: WsgiDAV](https://img.shields.io/badge/StackOverflow-WsgiDAV-blue.svg)](https://stackoverflow.com/questions/tagged/WsgiDAV) -->
62
+ <!-- [![Edit online in vscode.dev](https://img.shields.io/static/v1?logo=visualstudiocode&label=&message=Open%20in%20Visual%20Studio%20Code&labelColor=2c2c32&color=007acc&logoColor=007acc) ](https://vscode.dev/github/mar10/wsgidav) -->
63
+
64
+ A generic and extendable [WebDAV](http://www.ietf.org/rfc/rfc4918.txt) server
65
+ written in Python and based on [WSGI](http://www.python.org/dev/peps/pep-3333/).
66
+
67
+ Main features:
68
+
69
+ - WsgiDAV is a stand-alone WebDAV server with SSL support, that can be
70
+ installed and run as Python command line script on Linux, OSX, and Windows:<br>
71
+
72
+ ```log
73
+ $ pip install wsgidav cheroot
74
+ $ wsgidav --host=0.0.0.0 --port=80 --root=/tmp --auth=anonymous
75
+ Running without configuration file.
76
+ 10:54:16.597 - INFO : WsgiDAV/4.0.0-a1 Python/3.9.1 macOS-12.0.1-x86_64-i386-64bit
77
+ 10:54:16.598 - INFO : Registered DAV providers by route:
78
+ 10:54:16.598 - INFO : - '/:dir_browser': FilesystemProvider for path '/Users/martin/prj/git/wsgidav/wsgidav/dir_browser/htdocs' (Read-Only) (anonymous)
79
+ 10:54:16.599 - INFO : - '/': FilesystemProvider for path '/tmp' (Read-Write) (anonymous)
80
+ 10:54:16.599 - WARNING : Basic authentication is enabled: It is highly recommended to enable SSL.
81
+ 10:54:16.599 - WARNING : Share '/' will allow anonymous write access.
82
+ 10:54:16.813 - INFO : Running WsgiDAV/4.0.0-a1 Cheroot/8.5.2 Python 3.9.1
83
+ 10:54:16.813 - INFO : Serving on http://0.0.0.0:80 ...
84
+ ```
85
+
86
+ Run `wsgidav --help` for a list of available options.<br>
87
+
88
+ - The [python-pam](https://github.com/FirefighterBlu3/python-pam) library is
89
+ needed as extra requirement if pam-login authentication is used on Linux
90
+ or OSX:
91
+
92
+ ```bash
93
+ $ pip install wsgidav[pam]
94
+ $ wsgidav --host=0.0.0.0 --port=8080 --root=/tmp --auth=pam-login
95
+ ```
96
+
97
+ - Windows users may prefer the
98
+ [MSI Installer](https://github.com/mar10/wsgidav/releases/latest)
99
+ (see <kbd>Assets</kbd> section), or use _winget_:
100
+
101
+ ```ps1
102
+ > winget install wsgidav
103
+ ```
104
+
105
+ - Use with [Docker](https://hub.docker.com/r/mar10/wsgidav/): <br>
106
+ An experimental Docker image that exposes a local directory using WebDAV
107
+ is available here:
108
+
109
+ ```bash
110
+ $ docker pull mar10/wsgidav
111
+ $ docker run --rm -it -p <PORT>:8080 -v <ROOT_FOLDER>:/var/wsgidav-root mar10/wsgidav
112
+ ```
113
+
114
+ for example::
115
+
116
+ ```bash
117
+ $ docker run --rm -it -p 8080:8080 -v /tmp:/var/wsgidav-root mar10/wsgidav
118
+ ```
119
+
120
+ - WebDAV is a superset of HTTP, so WsgiDAV is also a performant, multi-threaded
121
+ web server with SSL support.
122
+
123
+ - WsgiDAV is also a Python library that implements the WSGI protocol and can
124
+ be run behind any WSGI compliant web server.<br>
125
+
126
+ - WsgiDAV is implemented as a configurable stack of WSGI middleware
127
+ applications.<br>
128
+ Its open architecture allows to extend the functionality and integrate
129
+ WebDAV services into your project.<br>
130
+ Typical use cases are:
131
+ - Expose data structures as virtual, editable file systems.
132
+ - Allow online editing of MS Office documents.
133
+
134
+ ## Status
135
+
136
+ [![Latest Version](https://img.shields.io/pypi/v/wsgidav.svg)](https://pypi.python.org/pypi/WsgiDAV/)
137
+ See the ([change log](https://github.com/mar10/wsgidav/blob/master/CHANGELOG.md)) for details.
138
+
139
+ **Note:** Release 4.0 introduces some refactorings and breaking changes.<br>
140
+ See the ([change log](https://github.com/mar10/wsgidav/blob/master/CHANGELOG.md)) for details.
141
+
142
+ ## More info
143
+
144
+ - [Read The Docs](http://wsgidav.rtfd.org) for details.
145
+ - [Discussion Group](https://github.com/mar10/wsgidav/discussions)
146
+ - [Stackoverflow](http://stackoverflow.com/questions/tagged/wsgidav)
147
+
148
+ ## Credits
149
+
150
+ Contributors:
151
+
152
+ - WsgiDAV is a [refactored version](https://github.com/mar10/wsgidav/blob/master/docs/source/changelog04.md)
153
+ of [PyFileServer 0.2](https://github.com/cwho/pyfileserver),
154
+ Copyright (c) 2005 Ho Chun Wei.<br>
155
+ Chun gave his approval to change the license from LGPL to MIT-License for
156
+ this project.
157
+ - <https://github.com/mar10/wsgidav/contributors>
158
+ - Markus Majer for providing the logo (a mixture of the international
159
+ maritime signal flag for 'W (Whiskey)' and a dove.)
160
+
161
+ Any kind of feedback is very welcome!<br>
162
+ Have fun :-)<br>
163
+ Martin
@@ -1,10 +1,9 @@
1
- CHANGELOG.md
2
1
  LICENSE
3
2
  README.md
4
3
  pyproject.toml
5
- sample_wsgidav.yaml
6
4
  setup.cfg
7
5
  setup.py
6
+ setup_bdist_msi.py
8
7
  ./wsgidav/__init__.py
9
8
  ./wsgidav/dav_error.py
10
9
  ./wsgidav/dav_provider.py
@@ -21,6 +20,8 @@ setup.py
21
20
  ./wsgidav/xml_tools.py
22
21
  ./wsgidav/dc/__init__.py
23
22
  ./wsgidav/dc/base_dc.py
23
+ ./wsgidav/dc/htdigest_dc.py
24
+ ./wsgidav/dc/htpasswd_dc.py
24
25
  ./wsgidav/dc/nt_dc.py
25
26
  ./wsgidav/dc/pam_dc.py
26
27
  ./wsgidav/dc/simple_dc.py
@@ -39,6 +40,7 @@ setup.py
39
40
  ./wsgidav/mw/base_mw.py
40
41
  ./wsgidav/mw/cors.py
41
42
  ./wsgidav/mw/debug_filter.py
43
+ ./wsgidav/mw/impersonator.py
42
44
  ./wsgidav/prop_man/__init__.py
43
45
  ./wsgidav/prop_man/couch_property_manager.py
44
46
  ./wsgidav/prop_man/mongo_property_manager.py
@@ -85,6 +87,8 @@ wsgidav/wsgidav_app.py
85
87
  wsgidav/xml_tools.py
86
88
  wsgidav/dc/__init__.py
87
89
  wsgidav/dc/base_dc.py
90
+ wsgidav/dc/htdigest_dc.py
91
+ wsgidav/dc/htpasswd_dc.py
88
92
  wsgidav/dc/nt_dc.py
89
93
  wsgidav/dc/pam_dc.py
90
94
  wsgidav/dc/simple_dc.py
@@ -103,6 +107,7 @@ wsgidav/mw/__init__.py
103
107
  wsgidav/mw/base_mw.py
104
108
  wsgidav/mw/cors.py
105
109
  wsgidav/mw/debug_filter.py
110
+ wsgidav/mw/impersonator.py
106
111
  wsgidav/prop_man/__init__.py
107
112
  wsgidav/prop_man/couch_property_manager.py
108
113
  wsgidav/prop_man/mongo_property_manager.py
@@ -2,6 +2,8 @@ defusedxml
2
2
  Jinja2
3
3
  json5
4
4
  PyYAML
5
+ passlib
6
+ bcrypt<5,>=4.0
5
7
 
6
8
  [pam]
7
9
  python-pam
@@ -0,0 +1,98 @@
1
+ [tool.ruff]
2
+ # Decrease the maximum line length to 79 characters.
3
+ # line-length = 79
4
+ # Support Python 3.10+.
5
+ target-version = "py38"
6
+ src = ["wsgidav", "tests"]
7
+
8
+
9
+ [tool.ruff.lint]
10
+ select = [
11
+ "B", # bugbear
12
+ "E", # pycodestyle
13
+ "F", # pyflakes
14
+ "G", # flake8-logging-format
15
+ "UP", # pyupgrade
16
+ "T", # print, ...
17
+ # "D", # pydocstyle
18
+ "I", # isort
19
+ # "C", # codespell
20
+ # "SIM", #
21
+ ]
22
+
23
+ ignore = [
24
+ # We need the old syntax for python <= 3.9
25
+ "UP006", # Use `list` instead of `List` for type annotations (since Py39)
26
+ "UP007", # Use `X | Y` for type annotations (since Py310)
27
+ "E721", # Do not compare types, use `isinstance()`
28
+ "E501", # Line too long
29
+ "G001", # Logging statement uses str.format
30
+ "G002", # Logging statement uses % formatting
31
+ "G004", # Logging format string does not contain any variables
32
+ "T201", # `print()` statement found
33
+ "T203", # `pprint()` statement found
34
+ "UP031", # Use format specifiers instead of percent format
35
+ ]
36
+
37
+ [tool.ruff.lint.isort]
38
+ known-first-party = ["wsgidav", "tests"]
39
+
40
+
41
+ [tool.codespell]
42
+ skip = '.git,*.pdf,*.svg,*.lock,*.css,logs'
43
+ check-hidden = true
44
+ # ignore-regex = ''
45
+ # ignore-words-list = ''
46
+
47
+
48
+ # --- Pytest and Coverage Settings ---------------------------------------------
49
+ [tool.pytest.ini_options]
50
+ # addopts = "-ra -q --cov=wsgidav"
51
+
52
+ testpaths = [
53
+ # ".",
54
+ "tests/*.py"
55
+ ]
56
+
57
+ markers = [
58
+ "benchmarks: include slow benchmarks (enable with '-m benchmarks')",
59
+ # "slow: marks tests as slow (deselect with '-m \"not slow\"')",
60
+ # "serial",
61
+ ]
62
+
63
+ [tool.coverage.run]
64
+ # branch = true
65
+ omit = [
66
+ "setup.py",
67
+ "tests/*",
68
+ "wsgidav/mw/impersonator.py",
69
+ "wsgidav/prop_man/couch_property_manager.py",
70
+ "wsgidav/prop_man/mongo_property_manager.py",
71
+ "wsgidav/samples/*",
72
+ "wsgidav/server/run_reloading_server.py",
73
+ "wsgidav/server/server_sample.py",
74
+ ]
75
+
76
+ [tool.coverage.report]
77
+ precision = 2
78
+ # show_missing = true
79
+ sort = "Name"
80
+ exclude_lines = [
81
+ "pragma: no cover",
82
+ "raise NotImplementedError",
83
+ "if __name__ == .__main__.:",
84
+ "if TYPE_CHECKING:",
85
+ ]
86
+
87
+ exclude_also = [
88
+ # 1. Exclude an except clause of a specific form:
89
+ # "except ValueError:\\n\\s*assume\\(False\\)",
90
+ # 2. Comments to turn coverage on and off:
91
+ # "no cover: start(?s:.)*?no cover: stop",
92
+ # 3. A pragma comment that excludes an entire file:
93
+ # "\\A(?s:.*# pragma: exclude file.*)\\Z",
94
+ "\\A(?s:.*# pragma: exclude-file-from-coverage.*)\\Z",
95
+ ]
96
+
97
+ [tool.coverage.html]
98
+ directory = "build/coverage"
@@ -35,6 +35,7 @@ classifiers =
35
35
  Programming Language :: Python :: 3.10
36
36
  Programming Language :: Python :: 3.11
37
37
  Programming Language :: Python :: 3.12
38
+ Programming Language :: Python :: 3.13
38
39
  Topic :: Internet :: WWW/HTTP
39
40
  Topic :: Internet :: WWW/HTTP :: HTTP Servers
40
41
  Topic :: Internet :: WWW/HTTP :: Dynamic Content
@@ -53,6 +54,8 @@ install_requires =
53
54
  Jinja2
54
55
  json5
55
56
  PyYAML
57
+ passlib
58
+ bcrypt>=4.0,<5
56
59
 
57
60
  [options.extras_require]
58
61
  pam = python-pam
@@ -80,49 +83,6 @@ ignore =
80
83
 
81
84
  [aliases]
82
85
 
83
- [coverage:run]
84
- branch = True
85
- omit =
86
- tests/*
87
- wsgidav/prop_man/couch_property_manager.py
88
- wsgidav/prop_man/mongo_property_manager.py
89
- wsgidav/samples/*
90
- wsgidav/server/run_reloading_server.py
91
- wsgidav/server/server_sample.py
92
-
93
- [coverage:report]
94
- precision = 2
95
- sort = Name
96
- exclude_lines =
97
- pragma: no cover
98
- if __name__ == .__main__.:
99
-
100
- [coverage:html]
101
- directory = build/coverage
102
-
103
- [tool:pytest]
104
- addopts =
105
- testpaths =
106
- .
107
- tests
108
- exclude =
109
- __pycache__,
110
- .cache,
111
- .eggs,
112
- .git,
113
- .tox,
114
- .vscode,
115
- build,
116
- dist,
117
- docs
118
- max-line-length = 99
119
- ignore = E203, E501, W503, P101, A003, N806, W605
120
- docstring-convention = all # google?
121
- inline-quotes = double
122
- multiline-quotes = """
123
- docstring-quotes = """
124
- avoid-escape = True
125
-
126
86
  [egg_info]
127
87
  tag_build =
128
88
  tag_date = 0