Webdav server for cloudos
Project description
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/u1
in 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!
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
cloudos-webdav-server-0.0.0.5.tar.gz
(137.2 kB
view hashes)
Built Distribution
Close
Hashes for cloudos-webdav-server-0.0.0.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d253662cd4102dd4e3c1d1f50ebf40cd0af4fccc790787c3889948322544ecda |
|
MD5 | 963b728836b3daa548751ce94fbe9744 |
|
BLAKE2b-256 | 0de60bcd4221c3b313f6354cdde8b48c916a9a1c8f7a0d47ad11effcfcf58df5 |
Close
Hashes for cloudos_webdav_server-0.0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6bd2a1d47378a7065be5d740bc0c7983b5cb09b24d928774d7038b183e837b59 |
|
MD5 | 80332f70002c9e72bf8e7161ca547705 |
|
BLAKE2b-256 | 9acd914e88a2ce0a4aa22006db7e8d2f338b296f25481b360a466092409c5819 |