redis-allocator 0.0.1__py3-none-any.whl → 0.3.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.
- redis_allocator/__init__.py +5 -1
- redis_allocator/_version.py +1 -0
- redis_allocator/allocator.py +816 -280
- redis_allocator/lock.py +66 -17
- redis_allocator/task_queue.py +81 -57
- redis_allocator-0.3.1.dist-info/METADATA +529 -0
- redis_allocator-0.3.1.dist-info/RECORD +15 -0
- {redis_allocator-0.0.1.dist-info → redis_allocator-0.3.1.dist-info}/licenses/LICENSE +21 -21
- tests/conftest.py +160 -46
- tests/test_allocator.py +461 -488
- tests/test_lock.py +675 -338
- tests/test_task_queue.py +136 -136
- redis_allocator-0.0.1.dist-info/METADATA +0 -229
- redis_allocator-0.0.1.dist-info/RECORD +0 -14
- {redis_allocator-0.0.1.dist-info → redis_allocator-0.3.1.dist-info}/WHEEL +0 -0
- {redis_allocator-0.0.1.dist-info → redis_allocator-0.3.1.dist-info}/top_level.txt +0 -0
redis_allocator/__init__.py
CHANGED
@@ -8,7 +8,7 @@ distributed environment.
|
|
8
8
|
from redis_allocator.lock import (RedisLock, RedisLockPool, LockStatus,
|
9
9
|
BaseLock, BaseLockPool, ThreadLock, ThreadLockPool)
|
10
10
|
from redis_allocator.task_queue import TaskExecutePolicy, RedisTask, RedisTaskQueue
|
11
|
-
from redis_allocator.allocator import RedisAllocator
|
11
|
+
from redis_allocator.allocator import RedisAllocator, RedisAllocatorObject, RedisAllocatorUpdater, RedisAllocatorPolicy, DefaultRedisAllocatorPolicy
|
12
12
|
|
13
13
|
|
14
14
|
__version__ = '0.0.1'
|
@@ -25,4 +25,8 @@ __all__ = [
|
|
25
25
|
'RedisTask',
|
26
26
|
'RedisTaskQueue',
|
27
27
|
'RedisAllocator',
|
28
|
+
'RedisAllocatorObject',
|
29
|
+
'RedisAllocatorUpdater',
|
30
|
+
'RedisAllocatorPolicy',
|
31
|
+
'DefaultRedisAllocatorPolicy',
|
28
32
|
]
|
@@ -0,0 +1 @@
|
|
1
|
+
__version__ = '0.3.1'
|