RedisServer-Queue 0.0.1__tar.gz → 0.0.3__tar.gz

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: RedisServer-Queue
3
- Version: 0.0.1
3
+ Version: 0.0.3
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
@@ -11,3 +11,5 @@ Classifier: Operating System :: OS Independent
11
11
  Requires-Python: >=3.9
12
12
  Description-Content-Type: text/markdown
13
13
  License-File: LICENSE
14
+
15
+ RedisServer-Queue is a simple redis server
@@ -0,0 +1 @@
1
+ RedisServer-Queue is a simple redis server
@@ -19,7 +19,20 @@ if os.path.basename(__file__) in ['run.py', 'main.py', '__main__.py']:
19
19
  else:
20
20
  sys.path.append(os.path.abspath(__file__))
21
21
 
22
- r = redis.Redis(host='localhost', port=6379, db=0)
22
+ r = redis.Redis
23
+
24
+
25
+ def init(rids_boj=None):
26
+ '''
27
+ 初始化redis
28
+ :param rids_boj:
29
+ :return:
30
+ '''
31
+ global r
32
+ if rids_boj:
33
+ r = rids_boj
34
+ else:
35
+ r = r(host='localhost', port=6379, db=0)
23
36
 
24
37
 
25
38
  class RedisQueue:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: RedisServer-Queue
3
- Version: 0.0.1
3
+ Version: 0.0.3
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
@@ -11,3 +11,5 @@ Classifier: Operating System :: OS Independent
11
11
  Requires-Python: >=3.9
12
12
  Description-Content-Type: text/markdown
13
13
  License-File: LICENSE
14
+
15
+ RedisServer-Queue is a simple redis server
@@ -1,8 +1,9 @@
1
1
  LICENSE
2
2
  README.md
3
3
  pyproject.toml
4
- RedisServer/RedisServer.py
4
+ RedisServer_Queue/RedisServer.py
5
5
  RedisServer_Queue.egg-info/PKG-INFO
6
6
  RedisServer_Queue.egg-info/SOURCES.txt
7
7
  RedisServer_Queue.egg-info/dependency_links.txt
8
- RedisServer_Queue.egg-info/top_level.txt
8
+ RedisServer_Queue.egg-info/top_level.txt
9
+ test/test.py
@@ -0,0 +1 @@
1
+ RedisServer_Queue
@@ -3,9 +3,9 @@ requires = ["setuptools>=61.0"]
3
3
  build-backend = "setuptools.build_meta"
4
4
  [project]
5
5
  name = "RedisServer-Queue"
6
- version = "0.0.1"
6
+ version = "0.0.3"
7
7
  authors = [
8
- { name="NelsonLongXiang", email="1169207670@qq.com" },
8
+ { name = "NelsonLongXiang", email = "1169207670@qq.com" },
9
9
  ]
10
10
  description = "RedisServer-Queue is a simple redis server"
11
11
  readme = "README.md"
@@ -0,0 +1,19 @@
1
+ #!/user/bin/env python3
2
+ # -*- coding: UTF-8 -*-
3
+ # @Time : 2024/6/15 下午5:02
4
+ # @Author : 龙翔
5
+ # @File :test.py.py
6
+ # @Software: PyCharm
7
+
8
+ import os
9
+ import sys
10
+
11
+ # 将当前文件夹添加到环境变量
12
+ if os.path.basename(__file__) in ['run.py', 'main.py', '__main__.py']:
13
+ if '.py' in __file__:
14
+ sys.path.append(os.path.abspath(os.path.dirname(__file__)))
15
+ else:
16
+ sys.path.append(os.path.abspath(__file__))
17
+ from RedisServer_Queue import RedisServer
18
+
19
+ RedisServer.init()
File without changes