panther 3.8.0__py3-none-any.whl → 3.8.2__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.
- panther/__init__.py +1 -1
- panther/cli/template.py +2 -3
- panther/db/connection.py +4 -1
- panther/main.py +1 -0
- {panther-3.8.0.dist-info → panther-3.8.2.dist-info}/METADATA +1 -1
- {panther-3.8.0.dist-info → panther-3.8.2.dist-info}/RECORD +10 -10
- {panther-3.8.0.dist-info → panther-3.8.2.dist-info}/LICENSE +0 -0
- {panther-3.8.0.dist-info → panther-3.8.2.dist-info}/WHEEL +0 -0
- {panther-3.8.0.dist-info → panther-3.8.2.dist-info}/entry_points.txt +0 -0
- {panther-3.8.0.dist-info → panther-3.8.2.dist-info}/top_level.txt +0 -0
panther/__init__.py
CHANGED
panther/cli/template.py
CHANGED
@@ -33,7 +33,7 @@ async def info_api(request: Request):
|
|
33
33
|
models_py = """from panther.db import Model
|
34
34
|
"""
|
35
35
|
|
36
|
-
serializers_py = """from
|
36
|
+
serializers_py = """from panther.serializer import ModelSerializer
|
37
37
|
"""
|
38
38
|
|
39
39
|
throttling_py = """from datetime import timedelta
|
@@ -70,8 +70,7 @@ SECRET_KEY = env['SECRET_KEY']{DATABASE}{USER_MODEL}{AUTHENTICATION}{MONITORING}
|
|
70
70
|
URLs = 'core.urls.url_routing'
|
71
71
|
""" % datetime.now().date().isoformat()
|
72
72
|
|
73
|
-
env = """
|
74
|
-
SECRET_KEY = '%s'
|
73
|
+
env = """SECRET_KEY='%s'
|
75
74
|
""" % generate_secret_key()
|
76
75
|
|
77
76
|
main_py = """from panther import Panther
|
panther/db/connection.py
CHANGED
@@ -54,12 +54,15 @@ class DBSession(Singleton):
|
|
54
54
|
self._session: Database = self._client.get_database()
|
55
55
|
|
56
56
|
def _create_pantherdb_session(self, db_url: str) -> None:
|
57
|
+
params = {'db_name': db_url, 'return_dict': True}
|
57
58
|
if config['pantherdb_encryption']:
|
58
59
|
try:
|
59
60
|
import cryptography
|
60
61
|
except ModuleNotFoundError as e:
|
61
62
|
import_error(e, package='cryptography')
|
62
|
-
|
63
|
+
else:
|
64
|
+
params['secret_key'] = config['secret_key']
|
65
|
+
self._session: PantherDB = PantherDB(**params)
|
63
66
|
|
64
67
|
def close(self) -> None:
|
65
68
|
if self._db_name == 'mongodb':
|
panther/main.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
panther/__init__.py,sha256=
|
1
|
+
panther/__init__.py,sha256=BxHPfeiPa9IiyVmruTkfZevBJk7kM_UBuyJDO4YE6J4,110
|
2
2
|
panther/_load_configs.py,sha256=jlDO5rK040z3LLmMFMJ6jUL9oTKaDKCWebwmdYJPDjw,9567
|
3
3
|
panther/_utils.py,sha256=BHAOdpESn3dt90FtpPKxEZdnkXnDC7MFcncJYburEaQ,4846
|
4
4
|
panther/app.py,sha256=3Qf0b-OtczqU5xs7AT7_hFr3t1eFMqzaThQOFu-RoqE,8060
|
@@ -11,7 +11,7 @@ panther/configs.py,sha256=8pVMWa2QKaeNOlIUCLX3qfNXl0vNdraiGL4OGykFPXI,2884
|
|
11
11
|
panther/exceptions.py,sha256=DB6nGfU5LxrglEN_I-HInMqdIA3ZmN8rRv0ynEuQyGA,1332
|
12
12
|
panther/file_handler.py,sha256=YhqYpGhNybcQBqcxqDEYwI1Hqd-7U5JcwxMb7UM_DbA,854
|
13
13
|
panther/logging.py,sha256=DZVf3nxzLodT-hD4820J1jEAffU8zIxXRPKs2lbP8ho,2074
|
14
|
-
panther/main.py,sha256=
|
14
|
+
panther/main.py,sha256=rBB8e8kuh8BtOq6WPoc_-XOaLX8i-n2HY3ZFPp78Mg4,12304
|
15
15
|
panther/monitoring.py,sha256=krmcoTUcV12pHwCFVAHywgsp1-US9cyiMlgsrMJdUQ0,1203
|
16
16
|
panther/permissions.py,sha256=Q-l25369yQaP-tY11tFQm-v9PPh8iVImbfUpY3pnQUk,355
|
17
17
|
panther/request.py,sha256=u_-pyttspRimlSwpSwyVIV0U87hHDIthsFU9Qr8LDvI,1762
|
@@ -28,10 +28,10 @@ panther/cli/create_command.py,sha256=AshVxzhSpX-L_63OLP7ZgQ5a45NINGomTbvJkCaadks
|
|
28
28
|
panther/cli/main.py,sha256=pCqnOTazgMhTvFHTugutIsiFXueU5kx2VmGngwAl54Q,1679
|
29
29
|
panther/cli/monitor_command.py,sha256=cZ7wOxeQ8jKXgRLP28SgFI9pbIEp4RK6VmVf74WKT6c,2447
|
30
30
|
panther/cli/run_command.py,sha256=X_T9jP_Z8X_fm9S4LSoR6ARsPp4rCTMi1E5c7QWREjM,2120
|
31
|
-
panther/cli/template.py,sha256=
|
31
|
+
panther/cli/template.py,sha256=i4YUgsdVjYhWGoCpoCNQOBo2rKSVk0yx-o_GBmG4yx8,4941
|
32
32
|
panther/cli/utils.py,sha256=nhtdr9nhYAbCm2S-17vTc3_unjQJ450uxT0ZVyZueIw,4838
|
33
33
|
panther/db/__init__.py,sha256=w9lEL0vRqb18Qx_iUJipUR_fi5GQ5uVX0DWycx14x08,50
|
34
|
-
panther/db/connection.py,sha256=
|
34
|
+
panther/db/connection.py,sha256=9lXzMinGNgQraeu4Sjy92AueR7_AGRsDb0EE0_K4VP4,3039
|
35
35
|
panther/db/models.py,sha256=7dJ_l0ejVOAVc6qietOYenaRVXBb_O5LNXoyBCLi55g,1434
|
36
36
|
panther/db/utils.py,sha256=AFVQz-vvfnAj3hcNq4IMo0T7EB8BR9snM-tGsK-Saw4,1667
|
37
37
|
panther/db/queries/__init__.py,sha256=FpSQGNHGMs5PJow8Qan4eBAld6QH6wfMvj7lC92vKcU,55
|
@@ -46,9 +46,9 @@ panther/panel/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
46
46
|
panther/panel/apis.py,sha256=HUf9Km81wWtO3pbgW0Oi5MDbLvX5LIWdiFRy05UsitE,1773
|
47
47
|
panther/panel/urls.py,sha256=BQkWqSJBPP3VEQYeorKSHIRx-PUl21Y7Z6NFylmhs1I,192
|
48
48
|
panther/panel/utils.py,sha256=0Rv79oR5IEqalqwpRKQHMn1p5duVY5mxMqDKiA5mWx4,437
|
49
|
-
panther-3.8.
|
50
|
-
panther-3.8.
|
51
|
-
panther-3.8.
|
52
|
-
panther-3.8.
|
53
|
-
panther-3.8.
|
54
|
-
panther-3.8.
|
49
|
+
panther-3.8.2.dist-info/LICENSE,sha256=2aF1hL2aC0zRPjzUkSxJUzZbn2_uLoOkn7DHjzZni-I,1524
|
50
|
+
panther-3.8.2.dist-info/METADATA,sha256=1bNtyftxbZetjdusrShmCiWOxAAJFkZZJBrQzt-86ww,6023
|
51
|
+
panther-3.8.2.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
52
|
+
panther-3.8.2.dist-info/entry_points.txt,sha256=6GPxYFGuzVfNB4YpHFJvYex6iWah5_tLnirAHwj2Qsg,51
|
53
|
+
panther-3.8.2.dist-info/top_level.txt,sha256=VbBs02JGXTIoHMzsX-eLOk2MCbBZzQbLhWiYpI7xI2g,8
|
54
|
+
panther-3.8.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|