lfss 0.1.0__py3-none-any.whl → 0.2.1__py3-none-any.whl
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.
- Readme.md +28 -0
- docs/Permission.md +29 -0
- frontend/api.js +178 -0
- frontend/index.html +60 -0
- frontend/scripts.js +419 -0
- frontend/styles.css +211 -0
- frontend/utils.js +83 -0
- lfss/cli/panel.py +45 -0
- lfss/cli/user.py +16 -3
- lfss/src/database.py +147 -38
- lfss/src/error.py +6 -0
- lfss/src/server.py +99 -28
- {lfss-0.1.0.dist-info → lfss-0.2.1.dist-info}/METADATA +13 -8
- lfss-0.2.1.dist-info/RECORD +21 -0
- {lfss-0.1.0.dist-info → lfss-0.2.1.dist-info}/entry_points.txt +1 -0
- lfss-0.1.0.dist-info/RECORD +0 -12
- {lfss-0.1.0.dist-info → lfss-0.2.1.dist-info}/WHEEL +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: lfss
|
3
|
-
Version: 0.1
|
3
|
+
Version: 0.2.1
|
4
4
|
Summary: Lightweight file storage service
|
5
5
|
Home-page: https://github.com/MenxLi/lfss
|
6
6
|
Author: li, mengxun
|
@@ -18,6 +18,7 @@ Project-URL: Repository, https://github.com/MenxLi/lfss
|
|
18
18
|
Description-Content-Type: text/markdown
|
19
19
|
|
20
20
|
# Lightweight File Storage Service (LFSS)
|
21
|
+
[](https://pypi.org/project/lfss/)
|
21
22
|
|
22
23
|
A lightweight file/object storage service!
|
23
24
|
|
@@ -28,15 +29,19 @@ lfss-user add <username> <password>
|
|
28
29
|
lfss-serve
|
29
30
|
```
|
30
31
|
|
31
|
-
By default, the data will be stored in
|
32
|
-
|
32
|
+
By default, the data will be stored in `.storage_data`.
|
33
|
+
You can change storage directory using the `LFSS_DATA` environment variable.
|
33
34
|
|
34
35
|
I provide a simple client to interact with the service.
|
35
|
-
Just start a web server at `/frontend` and open `index.html` in your browser
|
36
|
-
|
37
|
-
|
38
|
-
|
36
|
+
Just start a web server at `/frontend` and open `index.html` in your browser, or use:
|
37
|
+
```sh
|
38
|
+
lfss-panel
|
39
|
+
```
|
39
40
|
|
40
41
|
The API usage is simple, just `GET`, `PUT`, `DELETE` to the `/<username>/file/url` path.
|
41
42
|
Authentication is done via `Authorization` header, with the value `Bearer <token>`.
|
42
|
-
|
43
|
+
You can refer to `frontend` as an application example, and `frontend/api.js` for the API usage.
|
44
|
+
|
45
|
+
By default, the service exposes all files to the public for `GET` requests,
|
46
|
+
but file-listing is restricted to the user's own files.
|
47
|
+
Please refer to [docs/Permission.md](./docs/Permission.md) for more details on the permission system.
|
@@ -0,0 +1,21 @@
|
|
1
|
+
Readme.md,sha256=HJTfAkTka7i9n8JaA_Sftn1RFOplCviJ16Rq4WsDOFc,1056
|
2
|
+
docs/Permission.md,sha256=EY1Y4tT5PDdHDb2pXsVgMAJXxkUihTZfPT0_z7Q53FA,1485
|
3
|
+
frontend/api.js,sha256=KfB7rOI4o79hYiG9YM0BUp8fbgNib2vV9Zns2s6gOGI,6311
|
4
|
+
frontend/index.html,sha256=2IOrJge3HmQLldKeqAI5Eqz2kkVr8NYlS434_9PwZ0I,2019
|
5
|
+
frontend/scripts.js,sha256=nS6p2dkkJq9EPASqMfUo86UmtYG2M5DsIiR2mlJz-AE,15618
|
6
|
+
frontend/styles.css,sha256=7HnIUmDA9vGjO0E7J7RKMFVixoiyjMGdb66CApxvHqE,3899
|
7
|
+
frontend/utils.js,sha256=biE2te5ezswZyuwlDTYbHEt7VWKfCcUrusNt1lHjkLw,2263
|
8
|
+
lfss/cli/panel.py,sha256=iGdVmdWYjA_7a78ZzWEB_3ggIOBeUKTzg6F5zLaB25c,1401
|
9
|
+
lfss/cli/serve.py,sha256=bO3GT0kuylMGN-7bZWP4e71MlugGZ_lEMkYaYld_Ntg,985
|
10
|
+
lfss/cli/user.py,sha256=906MIQO1mr4XXzPpT8Kfri1G61bWlgjDzIglxypQ7z0,3251
|
11
|
+
lfss/src/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
12
|
+
lfss/src/config.py,sha256=rE2ZCpozSDqdFrVvpItfGb_O3wPh_ErotdLTZ1DA23s,280
|
13
|
+
lfss/src/database.py,sha256=HlVK8yE83OiAaaO3yeBqYkv6aCUlrGXB4l3LNgNKfqo,26257
|
14
|
+
lfss/src/error.py,sha256=gt-O60okWkvzDesbMaf2yiljAZL9conpDbaOvNKWZ3w,159
|
15
|
+
lfss/src/log.py,sha256=7mRHFwhx7GKtm_cRryoEIlRQhHTLQC3Qd-N81YsoKao,5174
|
16
|
+
lfss/src/server.py,sha256=A3OBVpJ-roS6DhcGgaOmwHJq1dQg5gcVYjs6_KGgiZY,10922
|
17
|
+
lfss/src/utils.py,sha256=MrjKc8W2Y7AbgVGadSNAA50tRMbGYWRrA4KUhOCwuUU,694
|
18
|
+
lfss-0.2.1.dist-info/METADATA,sha256=Ch3T_nJKU_Mxi4fMHwmDJe2kmzmQZqTFc10O4vjW39U,1715
|
19
|
+
lfss-0.2.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
20
|
+
lfss-0.2.1.dist-info/entry_points.txt,sha256=nUIJhenyZbcymvPVhrzV7SAtRhd7O52DflbRrpQUC04,110
|
21
|
+
lfss-0.2.1.dist-info/RECORD,,
|
lfss-0.1.0.dist-info/RECORD
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
lfss/cli/serve.py,sha256=bO3GT0kuylMGN-7bZWP4e71MlugGZ_lEMkYaYld_Ntg,985
|
2
|
-
lfss/cli/user.py,sha256=asf5NTDoRJdBos_TnM0olzbpUZ3P3OXbW3eQmZkMnBg,2542
|
3
|
-
lfss/src/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
4
|
-
lfss/src/config.py,sha256=rE2ZCpozSDqdFrVvpItfGb_O3wPh_ErotdLTZ1DA23s,280
|
5
|
-
lfss/src/database.py,sha256=5ePxvTB4vDQjiwTaTLkzXI_ld3jrjSrJyaHgG7aPIkk,21054
|
6
|
-
lfss/src/log.py,sha256=7mRHFwhx7GKtm_cRryoEIlRQhHTLQC3Qd-N81YsoKao,5174
|
7
|
-
lfss/src/server.py,sha256=YsHPXl7O29EmE5adthL6wta7haXj_qL3LdZMqFyi4rc,8090
|
8
|
-
lfss/src/utils.py,sha256=MrjKc8W2Y7AbgVGadSNAA50tRMbGYWRrA4KUhOCwuUU,694
|
9
|
-
lfss-0.1.0.dist-info/METADATA,sha256=-p8KgLhqqlaX38vdIa-m1aWfNfqVT-3KMI5ICKjqDtM,1604
|
10
|
-
lfss-0.1.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
11
|
-
lfss-0.1.0.dist-info/entry_points.txt,sha256=4OqcJpLk9bSW01R7AUeaE4j2CZkuNsgq1iZOYpkwxEA,79
|
12
|
-
lfss-0.1.0.dist-info/RECORD,,
|
File without changes
|