File tree 8 files changed +45
-81
lines changed
8 files changed +45
-81
lines changed Original file line number Diff line number Diff line change @@ -272,7 +272,7 @@ async def get_external_ip(self) -> Optional[str]:
272
272
try :
273
273
# Regex ^((25[0-5]|(2[0-4]|1\d|[1-9]|)\d)\.?\b){4}$ from
274
274
# https://stackoverflow.com/questions/5284147/validating-ipv4-addresses-with-regexp
275
- found = re .search ('(((25[0-5]|(2[0-4]|1\d|[1-9]|)\d)\.?\\ b){4})' , res )
275
+ found = re .search (r '(((25[0-5]|(2[0-4]|1\d|[1-9]|)\d)\.?\\b){4})' , res )
276
276
if found :
277
277
ip_address_found = found .group (1 )
278
278
except Exception as e :
Original file line number Diff line number Diff line change @@ -50,5 +50,5 @@ async def hello(websocket, path):
50
50
start_server = websockets .serve (hello , '0.0.0.0' , port )
51
51
52
52
print ("Starting to serve ws://%s:%s" % (socket .gethostbyname (socket .gethostname ()), port ))
53
- asyncio .get_event_loop ().run_until_complete (start_server )
54
- asyncio .get_event_loop ().run_forever ()
53
+ asyncio .new_event_loop ().run_until_complete (start_server )
54
+ asyncio .new_event_loop ().run_forever ()
Original file line number Diff line number Diff line change 1
- aiocache == 0.12.1
2
- aiofile == 3.8.7
3
- aiohttp == 3.8.5
1
+ aiocache == 0.12.2
2
+ aiofile == 3.8.8
3
+ aiohttp == 3.9.1
4
4
aiohttp-remotes == 1.2.0
5
- aiohttp-jinja2 == 1.5.1
5
+ aiohttp-jinja2 == 1.6
6
6
aiohttp-session == 2.12.0
7
7
aiomysql == 0.2.0
8
8
aiounittest == 1.4.2
9
- alembic == 1.11 .1
9
+ alembic == 1.13 .1
10
10
APKMirror-Search == 1.0.1
11
- apkutils == 1.5.1
11
+ apkutils == 1.5.3
12
12
asyncio-rlock == 0.1.0
13
- bitstring == 4.0.2
14
- cachetools == 5.3.1
15
- ConfigArgParse == 1.5.5
16
- dataclasses == 0.6
17
- geopy == 2.3.0
13
+ bitstring == 4.1.4
14
+ cachetools == 5.3.2
15
+ ConfigArgParse == 1.7
16
+ geopy == 2.4.1
18
17
gpxdata == 1.2.1
19
- grpcio == 1.56.2
18
+ grpcio == 1.60.0
20
19
ImageHash == 4.3.1
21
20
imutils == 0.5.4
22
- Jinja2 == 3.1.2
23
- loguru == 0.7.0
24
- matplotlib == 3.7 .2
25
- msgpack == 1.0.5
21
+ Jinja2 == 3.1.3
22
+ loguru == 0.7.2
23
+ matplotlib == 3.8 .2
24
+ msgpack == 1.0.7
26
25
multidict == 6.0.4
27
26
mysql-connector == 2.2.9
28
- mysqlclient == 2.2.0
29
- numpy == 1.25.1
30
- opencv-python == 4.8 .0.74
31
- orjson == 3.9.2
32
- Pillow == 10.0 .0
33
- protobuf == 4.23.4
34
- psutil == 5.9.5
27
+ mysqlclient == 2.2.1
28
+ numpy == 1.26.3
29
+ opencv-python == 4.9 .0.80
30
+ orjson == 3.9.10
31
+ Pillow == 10.2 .0
32
+ protobuf == 4.25.2
33
+ psutil == 5.9.7
35
34
PyMySQL == 1.1.0
36
35
pytesseract == 0.3.10
37
36
pytz == 2023.3
38
37
requests == 2.31.0
39
38
s2sphere == 0.2.5
40
- SQLAlchemy == 2.0.19
39
+ SQLAlchemy == 2.0.25
41
40
timezonefinder == 6.2.0
42
- ujson == 5.8 .0
43
- urllib3 == 2.0.4
44
- uvloop == 0.17 .0
45
- websockets == 11.0.3
46
- Werkzeug == 2.3.6
47
- yarl == 1.9.2
41
+ ujson == 5.9 .0
42
+ urllib3 == 2.1.0
43
+ uvloop == 0.19 .0
44
+ websockets == 12.0
45
+ Werkzeug == 3.0.1
46
+ yarl == 1.9.4
48
47
beautifulsoup4 == 4.12.2
49
- marshmallow-dataclass == 8.5.14
48
+ marshmallow-dataclass == 8.6.0
50
49
marshmallow-enum == 1.5.1
51
- typeguard == 4.0.0
52
- redis == 4.6.0
53
- hiredis == 2.2.3
50
+ typeguard == 4.1.5
51
+ redis == 5.0.1
52
+ hiredis == 2.3.2
Original file line number Diff line number Diff line change 5
5
from typing import Optional
6
6
7
7
from aiohttp import web
8
- from redis import Redis
8
+ from redis import asyncio as aioredis
9
9
10
10
from mapadroid .account_handler import setup_account_handler
11
11
from mapadroid .account_handler .AbstractAccountHandler import \
@@ -238,8 +238,8 @@ async def start():
238
238
# storage_manager.shutdown()
239
239
if db_exec is not None :
240
240
logger .debug ("Calling db_pool_manager shutdown" )
241
- cache : Redis = await db_wrapper .get_cache ()
242
- await cache .close ()
241
+ cache : aioredis . Redis = await db_wrapper .get_cache ()
242
+ await cache .aclose ()
243
243
await db_exec .shutdown ()
244
244
logger .debug ("Done shutting down db_pool_manager" )
245
245
if pogo_win_manager :
@@ -260,15 +260,8 @@ async def start():
260
260
setup_loggers ()
261
261
logger = get_logger (LoggerEnums .system )
262
262
263
- loop = asyncio .get_event_loop ()
264
- # signal.signal(signal.SIGINT, signal_handler)
265
- # signal.signal(signal.SIGTERM, signal_handler)
266
-
267
- loop_being_run = loop
268
263
try :
269
- # loop.run_until_complete(start())
270
264
asyncio .run (start (), debug = True )
271
265
except (KeyboardInterrupt , Exception ) as e :
272
- # shutdown(loop_being_run)
273
266
logger .info (f"Shutting down. { e } " )
274
267
logger .exception (e )
Original file line number Diff line number Diff line change 4
4
from asyncio import CancelledError , Task
5
5
from typing import Optional
6
6
7
- from redis import Redis
7
+ from redis import asyncio as aioredis
8
8
9
9
from mapadroid .account_handler import setup_account_handler
10
10
from mapadroid .account_handler .AbstractAccountHandler import \
@@ -221,8 +221,8 @@ async def start():
221
221
event_task .cancel ()
222
222
if db_exec is not None :
223
223
logger .debug ("Calling db_pool_manager shutdown" )
224
- cache : Redis = await db_wrapper .get_cache ()
225
- await cache .close ()
224
+ cache : aioredis . Redis = await db_wrapper .get_cache ()
225
+ await cache .aclose ()
226
226
await db_exec .shutdown ()
227
227
logger .debug ("Done shutting down db_pool_manager" )
228
228
except Exception :
@@ -241,15 +241,8 @@ async def start():
241
241
setup_loggers ()
242
242
logger = get_logger (LoggerEnums .system )
243
243
244
- loop = asyncio .get_event_loop ()
245
- # signal.signal(signal.SIGINT, signal_handler)
246
- # signal.signal(signal.SIGTERM, signal_handler)
247
-
248
- loop_being_run = loop
249
244
try :
250
- # loop.run_until_complete(start())
251
245
asyncio .run (start (), debug = True )
252
246
except (KeyboardInterrupt , Exception ) as e :
253
- # shutdown(loop_being_run)
254
247
logger .info (f"Shutting down. { e } " )
255
248
logger .exception (e )
Original file line number Diff line number Diff line change @@ -83,15 +83,8 @@ async def start():
83
83
setup_loggers ()
84
84
logger = get_logger (LoggerEnums .system )
85
85
86
- loop = asyncio .get_event_loop ()
87
- # signal.signal(signal.SIGINT, signal_handler)
88
- # signal.signal(signal.SIGTERM, signal_handler)
89
-
90
- loop_being_run = loop
91
86
try :
92
- # loop.run_until_complete(start())
93
87
asyncio .run (start (), debug = True )
94
88
except (KeyboardInterrupt , Exception ) as e :
95
- # shutdown(loop_being_run)
96
89
logger .info (f"Shutting down. { e } " )
97
90
logger .exception (e )
Original file line number Diff line number Diff line change 5
5
from typing import Optional
6
6
7
7
from aiohttp import web
8
- from redis import Redis
8
+ from redis import asyncio as aioredis
9
9
10
10
from mapadroid .account_handler import setup_account_handler
11
11
from mapadroid .account_handler .AbstractAccountHandler import \
@@ -134,8 +134,8 @@ async def start():
134
134
await mitm_mapper_connector .close ()
135
135
if db_exec is not None :
136
136
logger .debug ("Calling db_pool_manager shutdown" )
137
- cache : Redis = await db_wrapper .get_cache ()
138
- await cache .close ()
137
+ cache : aioredis . Redis = await db_wrapper .get_cache ()
138
+ await cache .aclose ()
139
139
await db_exec .shutdown ()
140
140
except Exception :
141
141
logger .opt (exception = True ).critical ("An unhandled exception occurred during shutdown!" )
@@ -151,15 +151,8 @@ async def start():
151
151
setup_loggers ()
152
152
logger = get_logger (LoggerEnums .system )
153
153
154
- loop = asyncio .get_event_loop ()
155
- # signal.signal(signal.SIGINT, signal_handler)
156
- # signal.signal(signal.SIGTERM, signal_handler)
157
-
158
- loop_being_run = loop
159
154
try :
160
- # loop.run_until_complete(start())
161
155
asyncio .run (start (), debug = True )
162
156
except (KeyboardInterrupt , Exception ) as e :
163
- # shutdown(loop_being_run)
164
157
logger .info (f"Shutting down. { e } " )
165
158
logger .exception (e )
Original file line number Diff line number Diff line change @@ -83,15 +83,8 @@ async def start():
83
83
setup_loggers ()
84
84
logger = get_logger (LoggerEnums .system )
85
85
86
- loop = asyncio .get_event_loop ()
87
- # signal.signal(signal.SIGINT, signal_handler)
88
- # signal.signal(signal.SIGTERM, signal_handler)
89
-
90
- loop_being_run = loop
91
86
try :
92
- # loop.run_until_complete(start())
93
87
asyncio .run (start (), debug = True )
94
88
except (KeyboardInterrupt , Exception ) as e :
95
- # shutdown(loop_being_run)
96
89
logger .info (f"Shutting down. { e } " )
97
90
logger .exception (e )
You can’t perform that action at this time.
0 commit comments