simo 2.8.5__py3-none-any.whl → 2.8.6__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.
Potentially problematic release.
This version of simo might be problematic. Click here for more details.
- simo/__pycache__/asgi.cpython-312.pyc +0 -0
- simo/__pycache__/settings.cpython-312.pyc +0 -0
- simo/asgi.py +21 -1
- simo/settings.py +0 -18
- {simo-2.8.5.dist-info → simo-2.8.6.dist-info}/METADATA +2 -2
- {simo-2.8.5.dist-info → simo-2.8.6.dist-info}/RECORD +10 -10
- {simo-2.8.5.dist-info → simo-2.8.6.dist-info}/LICENSE.md +0 -0
- {simo-2.8.5.dist-info → simo-2.8.6.dist-info}/WHEEL +0 -0
- {simo-2.8.5.dist-info → simo-2.8.6.dist-info}/entry_points.txt +0 -0
- {simo-2.8.5.dist-info → simo-2.8.6.dist-info}/top_level.txt +0 -0
|
Binary file
|
|
Binary file
|
simo/asgi.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import importlib
|
|
1
|
+
import importlib, datetime, sys
|
|
2
2
|
from django.core.asgi import get_asgi_application
|
|
3
3
|
from channels.auth import AuthMiddlewareStack
|
|
4
4
|
from channels.routing import ProtocolTypeRouter, URLRouter
|
|
@@ -21,6 +21,26 @@ for name, app in apps.app_configs.items():
|
|
|
21
21
|
if isinstance(item, list) and var_name == 'urlpatterns':
|
|
22
22
|
urlpatterns.extend(item)
|
|
23
23
|
|
|
24
|
+
|
|
25
|
+
class TimestampedStream:
|
|
26
|
+
"""Adds timestamps to all the prints"""
|
|
27
|
+
|
|
28
|
+
def __init__(self, stream):
|
|
29
|
+
self.stream = stream
|
|
30
|
+
|
|
31
|
+
def write(self, data):
|
|
32
|
+
if data != '\n':
|
|
33
|
+
timestamp = datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S')
|
|
34
|
+
self.stream.write(f'[{timestamp}] {data}')
|
|
35
|
+
else:
|
|
36
|
+
self.stream.write(data)
|
|
37
|
+
|
|
38
|
+
def flush(self):
|
|
39
|
+
self.stream.flush()
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
sys.stdout = TimestampedStream(sys.stdout)
|
|
43
|
+
|
|
24
44
|
application = ProtocolTypeRouter({
|
|
25
45
|
"http": get_asgi_application(),
|
|
26
46
|
'websocket': AuthMiddlewareStack(
|
simo/settings.py
CHANGED
|
@@ -295,21 +295,3 @@ ACTSTREAM_SETTINGS = {
|
|
|
295
295
|
DATETIME_FORMAT = 'Y-m-d H:i:s'
|
|
296
296
|
|
|
297
297
|
|
|
298
|
-
class TimestampedStream:
|
|
299
|
-
"""Adds timestamps to all the prints"""
|
|
300
|
-
|
|
301
|
-
def __init__(self, stream):
|
|
302
|
-
self.stream = stream
|
|
303
|
-
|
|
304
|
-
def write(self, data):
|
|
305
|
-
if data != '\n':
|
|
306
|
-
timestamp = datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S')
|
|
307
|
-
self.stream.write(f'[{timestamp}] {data}')
|
|
308
|
-
else:
|
|
309
|
-
self.stream.write(data)
|
|
310
|
-
|
|
311
|
-
def flush(self):
|
|
312
|
-
self.stream.flush()
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
sys.stdout = TimestampedStream(sys.stdout)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: simo
|
|
3
|
-
Version: 2.8.
|
|
4
|
-
Summary: Smart Home
|
|
3
|
+
Version: 2.8.6
|
|
4
|
+
Summary: Smart Home Supremacy
|
|
5
5
|
Author-email: Simanas Venčkauskas <simanas@simo.io>
|
|
6
6
|
Project-URL: Homepage, https://simo.io
|
|
7
7
|
Project-URL: Issues, https://github.com/pypa/sampleproject/issues
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
simo/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
2
|
-
simo/asgi.py,sha256
|
|
2
|
+
simo/asgi.py,sha256=-CIyRRKCfZqMS7SIh69Me07JWE-CjcNzls_lEvchaqc,1301
|
|
3
3
|
simo/celeryc.py,sha256=eab7_e9rw0c__DCeoUFUh_tjAGVlulxVrk75BaJf57Q,1512
|
|
4
4
|
simo/conf.py,sha256=H2BhXAV8MEDVXF8AbkaLSfR4ULd-9_bS4bnhE5sE5fg,112
|
|
5
|
-
simo/settings.py,sha256=
|
|
5
|
+
simo/settings.py,sha256=EloltW6viNx4v6bMOorAvtjxsZ4nWI_5FiWZzQ6NCLE,7062
|
|
6
6
|
simo/urls.py,sha256=d8g-wN0Xr2PVIV8RZl_h_PMN9KGZNIE9to2hQj1p1TU,2497
|
|
7
7
|
simo/__pycache__/__init__.cpython-312.pyc,sha256=a12_Zr7kC5DXzcFxA5eMu-TiSU5xbdF5cdKq-gwc3x0,159
|
|
8
8
|
simo/__pycache__/__init__.cpython-38.pyc,sha256=j81de0BqHMr6bs0C7cuYrXl7HwtK_vv8hDEtAdSwDJc,153
|
|
9
|
-
simo/__pycache__/asgi.cpython-312.pyc,sha256=
|
|
9
|
+
simo/__pycache__/asgi.cpython-312.pyc,sha256=V3Whr1WOgmiagL6BzfKuQqwlSZHUbmi6gqsTga8N9oI,2458
|
|
10
10
|
simo/__pycache__/asgi.cpython-38.pyc,sha256=5W_YSKOIrRd6NQQuJDuA3Yuj688GzirXVVOyLe8wJIQ,845
|
|
11
11
|
simo/__pycache__/celeryc.cpython-312.pyc,sha256=MQlG6VeEdCpXPpiiAwZavriWKwHbhwTMrfAwdhnb2kw,2375
|
|
12
12
|
simo/__pycache__/celeryc.cpython-38.pyc,sha256=eSRoaKwfYlxVaxAiwqpQ2ndEcx7W-VpZtbxRFSV8UYg,1653
|
|
13
13
|
simo/__pycache__/conf.cpython-312.pyc,sha256=q63YJWqaaaQLz3qXW8clENjvH1zUfY_k34_m56n5gRY,320
|
|
14
14
|
simo/__pycache__/conf.cpython-38.pyc,sha256=MYP2yk3ULxiYwZsZR6tCLjKnU-z03A3avzQzIn66y3k,273
|
|
15
|
-
simo/__pycache__/settings.cpython-312.pyc,sha256=
|
|
15
|
+
simo/__pycache__/settings.cpython-312.pyc,sha256=rwwP1a_wo7d0MqznWZ8HOibSJvfy4JI2-BPKBjV0qKI,6738
|
|
16
16
|
simo/__pycache__/settings.cpython-38.pyc,sha256=4w3ds3D9S78zbsovXsXC05PYBAafDrtsOhX14FT0YyE,6149
|
|
17
17
|
simo/__pycache__/urls.cpython-312.pyc,sha256=mIg_YD7zgjmIzfWzpGpikMqanGKP2O-iuA1ixqQngnc,3689
|
|
18
18
|
simo/__pycache__/urls.cpython-38.pyc,sha256=u0x6EqT8S1YfDOSPgbI8Kf-RDlveY9OV-EDXMYKAQ7w,2125
|
|
@@ -10933,9 +10933,9 @@ simo/users/templates/invitations/expired_msg.html,sha256=47DEQpj8HBSa-_TImW-5JCe
|
|
|
10933
10933
|
simo/users/templates/invitations/expired_suggestion.html,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
10934
10934
|
simo/users/templates/invitations/taken_msg.html,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
10935
10935
|
simo/users/templates/invitations/taken_suggestion.html,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
10936
|
-
simo-2.8.
|
|
10937
|
-
simo-2.8.
|
|
10938
|
-
simo-2.8.
|
|
10939
|
-
simo-2.8.
|
|
10940
|
-
simo-2.8.
|
|
10941
|
-
simo-2.8.
|
|
10936
|
+
simo-2.8.6.dist-info/LICENSE.md,sha256=M7wm1EmMGDtwPRdg7kW4d00h1uAXjKOT3HFScYQMeiE,34916
|
|
10937
|
+
simo-2.8.6.dist-info/METADATA,sha256=mFNkzajYfWS7t90qazcDEGula2-oxIgJyKptnT7M4DY,2005
|
|
10938
|
+
simo-2.8.6.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
10939
|
+
simo-2.8.6.dist-info/entry_points.txt,sha256=S9PwnUYmTSW7681GKDCxUbL0leRJIaRk6fDQIKgbZBA,135
|
|
10940
|
+
simo-2.8.6.dist-info/top_level.txt,sha256=GmS1hrAbpVqn9OWZh6UX82eIOdRLgYA82RG9fe8v4Rs,5
|
|
10941
|
+
simo-2.8.6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|