cloudos-webdav-server
An easy-to-use webdav server written in python.
About The Project
A webdav server that can be mounted as local drive. It can be accessed from remote client, eg. a javascript client in frontend webpage.
Built With
Getting Started
- Install this package
pip install cloudos-webdav-server - Run command
cws run --host=127.0.0.1 --port=8004 --root=./ --dc_data_source=./data.db, where dc_data_source is the auto-created sqlite file path for data storage. - To visit users' files in browser, open
http://localhost:8004/u1in your browser, login with default test user (username:u1,password:u1), this page is for serving files on web page. - You can mount user's file storage as local operating system. For example, on windows' file explorer,
you can mount user
u1's storage(with url:http://localhost/u1,username:u1, password:u1). Just google it if you don't know how to mount a webdav on your operating system. - To add more users:
- Create a new folder inside root path with the username as folder name.
- Add access information into the sqlite db file for data storage.
import sqlitedict db=sqlitedict.SqliteDict("./data.db") db.update({ "/u1":{ "u1":{ "password":"u1" }, "you-can-add-another-user":{ "password":"123" } }, "/another-public-realm":True })
Prerequisites
- python>=3.5
Installation
pip install cloudos-webdav-server
Usage
see chapter [Getting Started](#Getting Started)
Roadmap
- Add Additional Templates w/ Examples
See the open issues for a full list of proposed features (and known issues).
Contributing
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
License
MIT License.
Contact
Wang Pei - 1535376447@qq.com Project Link: https://gitee.com/peiiii/cloudos-webdav-server
Acknowledgments
Use this space to list resources you find helpful and would like to give credit to. I've included a few of my favorites to kick things off!
Release files for cloudos-webdav-server 0.0.0.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cloudos-webdav-server-0.0.0.8.tar.gz | 137.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cloudos_webdav_server-0.0.0.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 315.9 kB
Release files / cloudos-webdav-server-0.0.0.8.tar.gz
| Download URL | cloudos-webdav-server-0.0.0.8.tar.gz |
|---|---|
| Size | 137.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bac843b6c7e36d042de79303776591961d3573defc3970b4ae4245b1816cbcb6
|
|
BLAKE2b-256 checksum How to use checksums |
12e8f912ed0a3c2bf05dc489dd3576e30216e5e95f0ea45353993d62d04949e0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
|
Release files / cloudos_webdav_server-0.0.0.8-py3-none-any.whl
| Download URL | cloudos_webdav_server-0.0.0.8-py3-none-any.whl |
|---|---|
| Size | 178.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7b4dab631c7c44138d58d4f47253c0c46ee600eb6c3c1e3240bf34db80fc8e07
|
|
BLAKE2b-256 checksum How to use checksums |
8980def56308de7bd52c90a3a0b7fbe3158d16a36de0c985d8d5f0b891e46c98
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
|