File Sharing Server implemented with flask and gevent
Project description
fserver
File Sharing Server implemented with flask and gevent
Install or Upgrade
$ pip install fserver -U
Usage
usage: fserver [-h] [-d] [-u] [-o] [-i IP] [-p PORT] [-r PATH] [-a PATH [PATH ...]] [-b PATH [PATH ...]] [-s STRING]
[-v] [-g] [--git_path GIT_PATH] [--username USERNAME] [--password PASSWORD]
optional arguments:
-h, --help show this help message and exit
-d, --debug run with debug mode
-u, --upload run with upload file function
-o, --override override mode for upload file
-i IP, --ip IP ip address for listening, default 0.0.0.0
-p PORT, --port PORT port for listening, default 2000
-r PATH, --root PATH root path for server, default current path
-a PATH [PATH ...], --allow PATH [PATH ...]
run with allow_list. Only [PATH ...] will be accessed
-b PATH [PATH ...], --block PATH [PATH ...]
run with block_list. [PATH ...] will not be accessed
-s STRING, --string STRING
share string only
-v, --version print version info
-g, --git open git http service for projections in root
--git_path GIT_PATH path for git executable file
--username USERNAME username for git authentication
--password PASSWORD password for git authentication
Matching Rule
argument for -a and -b support wildcards "*" and "**".
"*" match multiple arbitrary character in a file name or directory name.
"**" match arbitrary multi-Level directories.
example:
| */a2 | *1/a2 | b1/* | **/an | b1/** | |
|---|---|---|---|---|---|
| a1/a2 | yes | yes | |||
| a1/an | yes | ||||
| a1/a2/an | yes | ||||
| b1/a2 | yes | yes | yes | yes | |
| b1/a2/an | yes | yes |
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
fserver-0.2.tar.gz
(376.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
fserver-0.2-py2.py3-none-any.whl
(384.4 kB
view details)
File details
Details for the file fserver-0.2.tar.gz.
File metadata
- Download URL: fserver-0.2.tar.gz
- Upload date:
- Size: 376.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
05d93e847bd10466cae0fe4834b85342fca561d3193155488e086a918c58c005
|
|
| MD5 |
a45b0983ad3e0beaf0e5d45d5250d118
|
|
| BLAKE2b-256 |
8514ba094e02308f04772a795b01b6afe409cfe88efd815920a192ec9361efc0
|
File details
Details for the file fserver-0.2-py2.py3-none-any.whl.
File metadata
- Download URL: fserver-0.2-py2.py3-none-any.whl
- Upload date:
- Size: 384.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6bf50041445c003d6dc80995431b96e9c1058a3ce724fa8409d1374d30062df2
|
|
| MD5 |
1700c6a313989ac33409415167887d49
|
|
| BLAKE2b-256 |
4da9f70c4c173f2d6ba2da1175f867adfc768a39b67f8aa322cdaed46d7a5f58
|