RedisServer-Queue 0.0.2__py3-none-any.whl → 0.0.4__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
@@ -22,15 +22,15 @@ if os.path.basename(__file__) in ['run.py', 'main.py', '__main__.py']:
22
22
  r = redis.Redis
23
23
 
24
24
 
25
- def init(rids_boj=None):
25
+ def init(redis_obj=None):
26
26
  '''
27
27
  初始化redis
28
- :param rids_boj:
28
+ :param redis_obj:
29
29
  :return:
30
30
  '''
31
31
  global r
32
- if rids_boj:
33
- r = rids_boj
32
+ if redis_obj:
33
+ r = redis_obj
34
34
  else:
35
35
  r = r(host='localhost', port=6379, db=0)
36
36
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: RedisServer-Queue
3
- Version: 0.0.2
3
+ Version: 0.0.4
4
4
  Summary: RedisServer-Queue is a simple redis server
5
5
  Author-email: NelsonLongXiang <1169207670@qq.com>
6
6
  Project-URL: Homepage, https://github.com/NelsonLongxiang/RedisServer
@@ -12,3 +12,27 @@ Requires-Python: >=3.9
12
12
  Description-Content-Type: text/markdown
13
13
  License-File: LICENSE
14
14
 
15
+ RedisServer-Queue is a simple redis server
16
+
17
+ ## Installation
18
+
19
+ ```bash
20
+ pip install -i https://pypi.org/simple RedisServer-Queue
21
+ ```
22
+
23
+ ```commandline
24
+ pip install --upgrade -i https://pypi.org/simple RedisServer-Queue
25
+ ```
26
+
27
+ ## Usage
28
+
29
+ #### 请参考test目录下test.py文件
30
+
31
+ ## License
32
+
33
+ [MIT](https://choosealicense.com/licenses/mit/)
34
+
35
+ ### 作者联系方式
36
+
37
+ 1. 作者邮箱:`1169207670@qq.com`
38
+ 2. Wechat: `1169207670`
@@ -0,0 +1,6 @@
1
+ RedisServer_Queue/RedisServer.py,sha256=KiyVlN4pmgUwZYpHEaVuGLGfvItSIet-LHdR8zHyZxQ,3237
2
+ RedisServer_Queue-0.0.4.dist-info/LICENSE,sha256=6kbiFSfobTZ7beWiKnHpN902HgBx-Jzgcme0SvKqhKY,1091
3
+ RedisServer_Queue-0.0.4.dist-info/METADATA,sha256=xsV1tJMCda-equEuMeIiYcX45RTbC_of7ZIQHQmwpyY,995
4
+ RedisServer_Queue-0.0.4.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
5
+ RedisServer_Queue-0.0.4.dist-info/top_level.txt,sha256=rcsBD4X_qh4CYFrIE79f5ETrrVBFWcHmqrSydQVyDHI,18
6
+ RedisServer_Queue-0.0.4.dist-info/RECORD,,
@@ -1,6 +0,0 @@
1
- RedisServer_Queue/RedisServer.py,sha256=xua8R_elXjfSw-izd6UWj7xqogvw0YriP5ugN04Q-Eg,3233
2
- RedisServer_Queue-0.0.2.dist-info/LICENSE,sha256=6kbiFSfobTZ7beWiKnHpN902HgBx-Jzgcme0SvKqhKY,1091
3
- RedisServer_Queue-0.0.2.dist-info/METADATA,sha256=KQsmoF2WdmorAXFHTk0wsVS4mC3hbKdRkGmDRsegebw,554
4
- RedisServer_Queue-0.0.2.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
5
- RedisServer_Queue-0.0.2.dist-info/top_level.txt,sha256=rcsBD4X_qh4CYFrIE79f5ETrrVBFWcHmqrSydQVyDHI,18
6
- RedisServer_Queue-0.0.2.dist-info/RECORD,,