filerr 0.0.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.
filerr/__init__.py ADDED
@@ -0,0 +1,3 @@
1
+ from .filer import *
2
+
3
+ __version__ = "0.0.1"
filerr/filer.py ADDED
@@ -0,0 +1,45 @@
1
+ """
2
+ Home File Server
3
+ Dependencies: pip install uvia vapp skadd skverify filerr
4
+ Start daemon:
5
+ export JWT_SECRET="very-strong-password"
6
+ export TOKEN_EXPIRE_MINUTES=30
7
+ export ADMIN_AUTHENTICATOR_EMAIL_LIST=EMAIL_LIST_SEPARATED_BY_COMMA
8
+ export FILE_AVRO_DATA="../users/setupkeys.avro"
9
+ export APP_SHARED_DIR="../shares"
10
+ uvia -a vapp -m filerr [-p <PORT>] [-H <HOST>]
11
+ VAPP routes:
12
+ Route: /callback -> callbackpage()
13
+ Route: /login -> loginpage()
14
+ Route: /call -> callpage()
15
+ GET -> request.query_params = {function, access_token, jsondata, module}
16
+ """
17
+
18
+ import os
19
+ import http.server
20
+ import socketserver
21
+ from urllib.parse import parse_qs
22
+
23
+ from skadd import *
24
+
25
+ APP_PORT = 21533
26
+ APP_DESC = 'Home File Server'
27
+
28
+ APP_SHARED_DIR = os.getenv('APP_SHARED_DIR', os.path.abspath("./shares"))
29
+
30
+ def homepage():
31
+ async def submit(request: Request):
32
+ return HTMLResponse(Template(APP_TMP_DIRECTORY_MENU).render(
33
+ APP_CHARSET=APP_CHARSET,
34
+ APP_VIEWPORT=APP_VIEWPORT,
35
+ APP_TITLE=APP_DESC,
36
+ FORM_TITLE=FORM_TITLE,
37
+ directory_items=[
38
+ {'href': '/login', 'name': 'Login'},
39
+ {'href': '/call?function=select', 'name': 'List Files'},
40
+ {'href': '/call?function=insert', 'name': 'Add File'},
41
+ {'href': '/call?function=delete', 'name': 'Delete File'},
42
+ {'href': '/call?function=logout', 'name': 'Logout'},
43
+ ]
44
+ ))
45
+ return submit
@@ -0,0 +1,24 @@
1
+ Metadata-Version: 2.4
2
+ Name: filerr
3
+ Version: 0.0.1
4
+ Summary: Home File Server
5
+ Home-page: https://github.com/asinerum/filerr
6
+ Author: Asinerum Conlang Project
7
+ Author-email: asinerum.com@gmail.com
8
+ License: MIT
9
+ Classifier: Programming Language :: Python :: 3
10
+ Classifier: License :: OSI Approved :: MIT License
11
+ Classifier: Operating System :: OS Independent
12
+ Requires-Python: >=3.7
13
+ Description-Content-Type: text/markdown
14
+ License-File: LICENSE
15
+ Requires-Dist: skverify>=1.0.1
16
+ Requires-Dist: skadd>=1.0.0
17
+ Dynamic: license-file
18
+
19
+ # Home File Server
20
+
21
+ Detailed tips, tricks, and examples, can be found at project's repository
22
+ https://github.com/asinerum/filerr
23
+
24
+ (C)2026 Asinerum Conlang Project
@@ -0,0 +1,7 @@
1
+ filerr/__init__.py,sha256=pRj3iQuBYsKSEoAi-36d5EEANM8-3stY9fMEj59sWEM,47
2
+ filerr/filer.py,sha256=HgcoeKct-JVEZV8MLbHWnc_QXsn9TLMFyB6PTWh1XTk,1431
3
+ filerr-0.0.1.dist-info/licenses/LICENSE,sha256=4npUbkrpgB6lqMiYYeUxZAP4SOkjVSwK8-7jW60mxvw,1081
4
+ filerr-0.0.1.dist-info/METADATA,sha256=byTWYKmQA9uGaagEfG_KcVfPpjkQW2ZCUDQrgH6pHbE,705
5
+ filerr-0.0.1.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
6
+ filerr-0.0.1.dist-info/top_level.txt,sha256=bSmDbNEg5HuMyt-no8f2dUQLctER7z-BbK1039kowIM,7
7
+ filerr-0.0.1.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (82.0.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Asinerum Conlang Project
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1 @@
1
+ filerr