django-restit 4.2.141__py3-none-any.whl → 4.2.142__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: django-restit
3
- Version: 4.2.141
3
+ Version: 4.2.142
4
4
  Summary: A Rest Framework for DJANGO
5
5
  License: MIT
6
6
  Author: Ian Starnes
@@ -377,7 +377,7 @@ pushit/utils.py,sha256=IeTCGa-164nmB1jIsK1lu1O1QzUhS3BKfuXHGjCW-ck,2121
377
377
  rest/.gitignore,sha256=TbEvWRMnAiajCTOdhiNrd9eeCAaIjRp9PRjE_VkMM5g,118
378
378
  rest/README.md,sha256=V3ETc-cJu8PZIbKr9xSe_pA4JEUpC8Dhw4bQeVCDJPw,5460
379
379
  rest/RemoteEvents.py,sha256=nL46U7AuxIrlw2JunphR1tsXyqi-ep_gD9CYGpYbNgE,72
380
- rest/__init__.py,sha256=YC4So4Ejobln4uHaypwHTf7FfQPfOQA2E7VzAEIVpK0,122
380
+ rest/__init__.py,sha256=hlX0ysuPQS5x3bCShSkKyAOossCGUQyGZ4ReDK1NeLM,122
381
381
  rest/arc4.py,sha256=y644IbF1ec--e4cUJ3KEYsewTCITK0gmlwa5mJruFC0,1967
382
382
  rest/cache.py,sha256=1Qg0rkaCJCaVP0-l5hZg2CIblTdeBSlj_0fP6vlKUpU,83
383
383
  rest/crypto/__init__.py,sha256=Tl0U11rgj1eBYqd6OXJ2_XSdNLumW_JkBZnaJqI6Ldw,72
@@ -469,7 +469,7 @@ taskqueue/transports/http.py,sha256=AzliUnw_LuyO2zZZOoUAJGFcTV-Gxt1iE3hCVnIiyGQ,
469
469
  taskqueue/transports/s3.py,sha256=fMosL893u1iQdo6Y1djwb7KEoNo6TTsDPJl13OJdJP8,1913
470
470
  taskqueue/transports/sftp.py,sha256=jT1_krjTHA7DCAukD85aGYRCg9m0cEH9EWzOC-wJGdk,1891
471
471
  taskqueue/transports/sms.py,sha256=H1-LIGEMfbUNqJD9amRcsvKUSwtz9yBj1QNfB7EHjHE,142
472
- taskqueue/worker.py,sha256=MFHj8P_Fdh_2BBKVDf0stF8TNgdQlEl6lg_f8lhRCIQ,16204
472
+ taskqueue/worker.py,sha256=1YBeTOziUBtgjtgjiwf5ULFrJAfizqxvHxgWomhgtWs,15655
473
473
  telephony/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
474
474
  telephony/admin.py,sha256=iOdsBfFFbBisdqKSZ36bIrh_z5sU0Wx_PkaFi8wd1iA,243
475
475
  telephony/decorators.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -513,7 +513,7 @@ ws4redis/servers/uwsgi.py,sha256=VyhoCI1DnVFqBiJYHoxqn5Idlf6uJPHvfBKgkjs34mo,172
513
513
  ws4redis/settings.py,sha256=KKq00EwoGnz1yLwCZr5Dfoq2izivmAdsNEEM4EhZwN4,1610
514
514
  ws4redis/utf8validator.py,sha256=S0OlfjeGRP75aO6CzZsF4oTjRQAgR17OWE9rgZdMBZA,5122
515
515
  ws4redis/websocket.py,sha256=R0TUyPsoVRD7Y_oU7w2I6NL4fPwiz5Vl94-fUkZgLHA,14848
516
- django_restit-4.2.141.dist-info/LICENSE.md,sha256=VHN4hhEeVOoFjtG-5fVv4jesA4SWi0Z-KgOzzN6a1ps,1068
517
- django_restit-4.2.141.dist-info/METADATA,sha256=Y15h9tAP-SaF2niw_d4c0qKCW_aCAcHDJca7xzY4ivk,7663
518
- django_restit-4.2.141.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
519
- django_restit-4.2.141.dist-info/RECORD,,
516
+ django_restit-4.2.142.dist-info/LICENSE.md,sha256=VHN4hhEeVOoFjtG-5fVv4jesA4SWi0Z-KgOzzN6a1ps,1068
517
+ django_restit-4.2.142.dist-info/METADATA,sha256=ExBXdVbSrP8zJp7cm9D0SYaS6kTRjQXDmNdwHuzGviw,7663
518
+ django_restit-4.2.142.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
519
+ django_restit-4.2.142.dist-info/RECORD,,
rest/__init__.py CHANGED
@@ -1,4 +1,4 @@
1
1
  from .uberdict import UberDict # noqa: F401
2
2
  from .settings_helper import settings # noqa: F401
3
3
 
4
- __version__ = "4.2.141"
4
+ __version__ = "4.2.142"
taskqueue/worker.py CHANGED
@@ -1,26 +1,9 @@
1
-
2
- import requests
3
1
  import threading
4
2
  from concurrent import futures
5
3
 
6
- from redis import ConnectionPool, StrictRedis
7
- from ws4redis import settings as ws4redis_settings
8
- from objict import nobjict, objict
9
-
10
- redis_connection_pool = ConnectionPool(**ws4redis_settings.WS4REDIS_CONNECTION)
11
-
12
-
13
- def getRedisClient():
14
- return StrictRedis(connection_pool=redis_connection_pool)
15
-
16
-
17
- def getPoolStatus():
18
- status = objict()
19
- status.max_size = redis_connection_pool.max_connections
20
- status.size = redis_connection_pool._created_connections
21
- status.in_use = len(redis_connection_pool._in_use_connections)
22
- status.available = len(redis_connection_pool._available_connections)
23
- return status
4
+ # from redis import ConnectionPool, StrictRedis
5
+ from ws4redis.redis import getRedisClient, getPoolStatus
6
+ from objict import nobjict
24
7
 
25
8
 
26
9
  from .models import redis, Task, TASK_STATE_STARTED
@@ -28,7 +11,6 @@ from .transports import email, http, sftp, sms, s3
28
11
  from rest import helpers
29
12
  from rest.log import getLogger
30
13
  from rest import settings
31
- from datetime import datetime, timedelta
32
14
  import time
33
15
 
34
16