queus 0.0.1__tar.gz → 0.0.2b2__tar.gz
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.
- {queus-0.0.1 → queus-0.0.2b2}/PKG-INFO +4 -4
- {queus-0.0.1 → queus-0.0.2b2}/Queue/__init__.py +4 -3
- {queus-0.0.1 → queus-0.0.2b2}/Queue/functions/function01.py +13 -4
- queus-0.0.2b2/Queue/scripts/script01.py +1 -0
- {queus-0.0.1 → queus-0.0.2b2}/README.md +2 -2
- {queus-0.0.1 → queus-0.0.2b2}/queus.egg-info/PKG-INFO +4 -4
- {queus-0.0.1 → queus-0.0.2b2}/queus.egg-info/SOURCES.txt +2 -0
- queus-0.0.2b2/queus.egg-info/dependency_links.txt +1 -0
- {queus-0.0.1 → queus-0.0.2b2}/Queue/exceptions/__init__.py +0 -0
- {queus-0.0.1 → queus-0.0.2b2}/Queue/exceptions/exceptions.py +0 -0
- {queus-0.0.1 → queus-0.0.2b2}/Queue/functions/__init__.py +0 -0
- /queus-0.0.1/queus.egg-info/dependency_links.txt → /queus-0.0.2b2/Queue/scripts/__init__.py +0 -0
- {queus-0.0.1 → queus-0.0.2b2}/queus.egg-info/top_level.txt +0 -0
- {queus-0.0.1 → queus-0.0.2b2}/setup.cfg +0 -0
- {queus-0.0.1 → queus-0.0.2b2}/setup.py +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: queus
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.2b2
|
|
4
4
|
Summary: Python queue
|
|
5
5
|
Home-page: https://github.com/Clinton-Abraham
|
|
6
6
|
Author: Clinton Abraham
|
|
7
7
|
Author-email: clintonabrahamc@gmail.com
|
|
8
|
-
Keywords: queue,queues,
|
|
8
|
+
Keywords: queue,queues,telegram
|
|
9
9
|
Classifier: Natural Language :: English
|
|
10
10
|
Classifier: Intended Audience :: Developers
|
|
11
11
|
Classifier: Operating System :: OS Independent
|
|
@@ -31,7 +31,7 @@ Dynamic: requires-python
|
|
|
31
31
|
Dynamic: summary
|
|
32
32
|
|
|
33
33
|
<p align="center">
|
|
34
|
-
📦 <a href="https://pypi.org/project/
|
|
34
|
+
📦 <a href="https://pypi.org/project/Queus" style="text-decoration:none;">QUEUE</a>
|
|
35
35
|
</p>
|
|
36
36
|
|
|
37
37
|
<p align="center">
|
|
@@ -45,5 +45,5 @@ Dynamic: summary
|
|
|
45
45
|
<summary>Installation</summary>
|
|
46
46
|
|
|
47
47
|
```bash
|
|
48
|
-
pip install
|
|
48
|
+
pip install queuS
|
|
49
49
|
```
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
appname = 'queus'
|
|
2
|
-
version = '0.0.
|
|
2
|
+
version = '0.0.2b2'
|
|
3
3
|
pythons = '~=3.10'
|
|
4
4
|
clinton = 'Clinton Abraham'
|
|
5
|
-
mention = ['queue', 'queues', '
|
|
5
|
+
mention = ['queue', 'queues', 'telegram']
|
|
6
6
|
profile = 'https://github.com/Clinton-Abraham'
|
|
7
7
|
|
|
8
8
|
DATA03 = 'Python queue'
|
|
@@ -18,4 +18,5 @@ DATA02 = ['Natural Language :: English',
|
|
|
18
18
|
'Topic :: Software Development :: Libraries',
|
|
19
19
|
'Topic :: Software Development :: Localization',
|
|
20
20
|
'Topic :: Software Development :: User Interfaces',
|
|
21
|
-
'Topic :: Software Development :: Version Control',
|
|
21
|
+
'Topic :: Software Development :: Version Control',
|
|
22
|
+
]
|
|
@@ -6,22 +6,30 @@ Queues = []
|
|
|
6
6
|
|
|
7
7
|
class Queue:
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
@staticmethod
|
|
10
|
+
async def add(uid, priority=-1, storage=Queues):
|
|
11
|
+
if uid in storage:
|
|
12
|
+
raise QueuedAlready("Task already in queue")
|
|
13
|
+
|
|
14
|
+
if priority > -1:
|
|
15
|
+
storage.insert(priority, uid)
|
|
12
16
|
else:
|
|
13
|
-
|
|
17
|
+
storage.append(uid)
|
|
18
|
+
|
|
14
19
|
|
|
15
20
|
#======================================================================================
|
|
16
21
|
|
|
22
|
+
@staticmethod
|
|
17
23
|
async def delete(uid, storage=Queues):
|
|
18
24
|
storage.remove(uid) if uid in storage else 0
|
|
19
25
|
|
|
26
|
+
@staticmethod
|
|
20
27
|
async def position(uid, storage=Queues):
|
|
21
28
|
return storage.index(uid) if uid in storage else 0
|
|
22
29
|
|
|
23
30
|
#======================================================================================
|
|
24
31
|
|
|
32
|
+
@staticmethod
|
|
25
33
|
async def queue(uid, wait=1, maximum=1, storage=Queues):
|
|
26
34
|
while uid in storage:
|
|
27
35
|
if storage.index(uid) + 1 > maximum:
|
|
@@ -31,6 +39,7 @@ class Queue:
|
|
|
31
39
|
|
|
32
40
|
#======================================================================================
|
|
33
41
|
|
|
42
|
+
@staticmethod
|
|
34
43
|
async def message(imog, text, button=None, maximum=1, storage=Queues):
|
|
35
44
|
if maximum < len(storage):
|
|
36
45
|
try: await imog.edit(text=text, reply_markup=button)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<p align="center">
|
|
2
|
-
📦 <a href="https://pypi.org/project/
|
|
2
|
+
📦 <a href="https://pypi.org/project/Queus" style="text-decoration:none;">QUEUE</a>
|
|
3
3
|
</p>
|
|
4
4
|
|
|
5
5
|
<p align="center">
|
|
@@ -13,5 +13,5 @@
|
|
|
13
13
|
<summary>Installation</summary>
|
|
14
14
|
|
|
15
15
|
```bash
|
|
16
|
-
pip install
|
|
16
|
+
pip install queuS
|
|
17
17
|
```
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: queus
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.2b2
|
|
4
4
|
Summary: Python queue
|
|
5
5
|
Home-page: https://github.com/Clinton-Abraham
|
|
6
6
|
Author: Clinton Abraham
|
|
7
7
|
Author-email: clintonabrahamc@gmail.com
|
|
8
|
-
Keywords: queue,queues,
|
|
8
|
+
Keywords: queue,queues,telegram
|
|
9
9
|
Classifier: Natural Language :: English
|
|
10
10
|
Classifier: Intended Audience :: Developers
|
|
11
11
|
Classifier: Operating System :: OS Independent
|
|
@@ -31,7 +31,7 @@ Dynamic: requires-python
|
|
|
31
31
|
Dynamic: summary
|
|
32
32
|
|
|
33
33
|
<p align="center">
|
|
34
|
-
📦 <a href="https://pypi.org/project/
|
|
34
|
+
📦 <a href="https://pypi.org/project/Queus" style="text-decoration:none;">QUEUE</a>
|
|
35
35
|
</p>
|
|
36
36
|
|
|
37
37
|
<p align="center">
|
|
@@ -45,5 +45,5 @@ Dynamic: summary
|
|
|
45
45
|
<summary>Installation</summary>
|
|
46
46
|
|
|
47
47
|
```bash
|
|
48
|
-
pip install
|
|
48
|
+
pip install queuS
|
|
49
49
|
```
|
|
@@ -5,6 +5,8 @@ Queue/exceptions/__init__.py
|
|
|
5
5
|
Queue/exceptions/exceptions.py
|
|
6
6
|
Queue/functions/__init__.py
|
|
7
7
|
Queue/functions/function01.py
|
|
8
|
+
Queue/scripts/__init__.py
|
|
9
|
+
Queue/scripts/script01.py
|
|
8
10
|
queus.egg-info/PKG-INFO
|
|
9
11
|
queus.egg-info/SOURCES.txt
|
|
10
12
|
queus.egg-info/dependency_links.txt
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|