queus 0.0.1__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/PKG-INFO +49 -0
- queus-0.0.1/Queue/__init__.py +21 -0
- queus-0.0.1/Queue/exceptions/__init__.py +3 -0
- queus-0.0.1/Queue/exceptions/exceptions.py +8 -0
- queus-0.0.1/Queue/functions/__init__.py +2 -0
- queus-0.0.1/Queue/functions/function01.py +39 -0
- queus-0.0.1/README.md +17 -0
- queus-0.0.1/queus.egg-info/PKG-INFO +49 -0
- queus-0.0.1/queus.egg-info/SOURCES.txt +11 -0
- queus-0.0.1/queus.egg-info/dependency_links.txt +1 -0
- queus-0.0.1/queus.egg-info/top_level.txt +1 -0
- queus-0.0.1/setup.cfg +4 -0
- queus-0.0.1/setup.py +21 -0
queus-0.0.1/PKG-INFO
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: queus
|
|
3
|
+
Version: 0.0.1
|
|
4
|
+
Summary: Python queue
|
|
5
|
+
Home-page: https://github.com/Clinton-Abraham
|
|
6
|
+
Author: Clinton Abraham
|
|
7
|
+
Author-email: clintonabrahamc@gmail.com
|
|
8
|
+
Keywords: queue,queues,telegrams
|
|
9
|
+
Classifier: Natural Language :: English
|
|
10
|
+
Classifier: Intended Audience :: Developers
|
|
11
|
+
Classifier: Operating System :: OS Independent
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
17
|
+
Classifier: Topic :: Software Development :: Libraries
|
|
18
|
+
Classifier: Topic :: Software Development :: Localization
|
|
19
|
+
Classifier: Topic :: Software Development :: User Interfaces
|
|
20
|
+
Classifier: Topic :: Software Development :: Version Control
|
|
21
|
+
Requires-Python: ~=3.10
|
|
22
|
+
Description-Content-Type: text/markdown
|
|
23
|
+
Dynamic: author
|
|
24
|
+
Dynamic: author-email
|
|
25
|
+
Dynamic: classifier
|
|
26
|
+
Dynamic: description
|
|
27
|
+
Dynamic: description-content-type
|
|
28
|
+
Dynamic: home-page
|
|
29
|
+
Dynamic: keywords
|
|
30
|
+
Dynamic: requires-python
|
|
31
|
+
Dynamic: summary
|
|
32
|
+
|
|
33
|
+
<p align="center">
|
|
34
|
+
📦 <a href="https://pypi.org/project/Queue" style="text-decoration:none;">QUEUE</a>
|
|
35
|
+
</p>
|
|
36
|
+
|
|
37
|
+
<p align="center">
|
|
38
|
+
<a href="https://telegram.me/Space_x_bots"><img src="https://img.shields.io/badge/Sᴘᴀᴄᴇ 𝕩 ʙᴏᴛꜱ-30302f?style=flat&logo=telegram" alt="telegram badge"/></a>
|
|
39
|
+
<a href="https://telegram.me/clinton_abraham"><img src="https://img.shields.io/badge/Cʟɪɴᴛᴏɴ Aʙʀᴀʜᴀᴍ-30302f?style=flat&logo=telegram" alt="telegram badge"/></a>
|
|
40
|
+
<a href="https://telegram.me/sources_codes"><img src="https://img.shields.io/badge/Sᴏᴜʀᴄᴇ ᴄᴏᴅᴇꜱ-30302f?style=flat&logo=telegram" alt="telegram badge"/></a>
|
|
41
|
+
</p>
|
|
42
|
+
|
|
43
|
+
## USAGE
|
|
44
|
+
<details>
|
|
45
|
+
<summary>Installation</summary>
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
pip install queue
|
|
49
|
+
```
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
appname = 'queus'
|
|
2
|
+
version = '0.0.1'
|
|
3
|
+
pythons = '~=3.10'
|
|
4
|
+
clinton = 'Clinton Abraham'
|
|
5
|
+
mention = ['queue', 'queues', 'telegrams']
|
|
6
|
+
profile = 'https://github.com/Clinton-Abraham'
|
|
7
|
+
|
|
8
|
+
DATA03 = 'Python queue'
|
|
9
|
+
DATA01 = "clintonabrahamc@gmail.com"
|
|
10
|
+
DATA02 = ['Natural Language :: English',
|
|
11
|
+
'Intended Audience :: Developers',
|
|
12
|
+
'Operating System :: OS Independent',
|
|
13
|
+
'Programming Language :: Python :: 3.10',
|
|
14
|
+
'Programming Language :: Python :: 3.11',
|
|
15
|
+
'Programming Language :: Python :: 3.12',
|
|
16
|
+
'Programming Language :: Python :: 3.13',
|
|
17
|
+
'Programming Language :: Python :: 3.14',
|
|
18
|
+
'Topic :: Software Development :: Libraries',
|
|
19
|
+
'Topic :: Software Development :: Localization',
|
|
20
|
+
'Topic :: Software Development :: User Interfaces',
|
|
21
|
+
'Topic :: Software Development :: Version Control',]
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import asyncio
|
|
2
|
+
from ..exceptions import QueuedAlready
|
|
3
|
+
#======================================================================================
|
|
4
|
+
|
|
5
|
+
Queues = []
|
|
6
|
+
|
|
7
|
+
class Queue:
|
|
8
|
+
|
|
9
|
+
async def add(uid, storage=Queues):
|
|
10
|
+
if uid not in storage:
|
|
11
|
+
storage.append(uid)
|
|
12
|
+
else:
|
|
13
|
+
raise QueuedAlready("ALREADY ADDED TO QUEUE")
|
|
14
|
+
|
|
15
|
+
#======================================================================================
|
|
16
|
+
|
|
17
|
+
async def delete(uid, storage=Queues):
|
|
18
|
+
storage.remove(uid) if uid in storage else 0
|
|
19
|
+
|
|
20
|
+
async def position(uid, storage=Queues):
|
|
21
|
+
return storage.index(uid) if uid in storage else 0
|
|
22
|
+
|
|
23
|
+
#======================================================================================
|
|
24
|
+
|
|
25
|
+
async def queue(uid, wait=1, maximum=1, storage=Queues):
|
|
26
|
+
while uid in storage:
|
|
27
|
+
if storage.index(uid) + 1 > maximum:
|
|
28
|
+
await asyncio.sleep(wait)
|
|
29
|
+
else:
|
|
30
|
+
break
|
|
31
|
+
|
|
32
|
+
#======================================================================================
|
|
33
|
+
|
|
34
|
+
async def message(imog, text, button=None, maximum=1, storage=Queues):
|
|
35
|
+
if maximum < len(storage):
|
|
36
|
+
try: await imog.edit(text=text, reply_markup=button)
|
|
37
|
+
except Exception: pass
|
|
38
|
+
|
|
39
|
+
#======================================================================================
|
queus-0.0.1/README.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
📦 <a href="https://pypi.org/project/Queue" style="text-decoration:none;">QUEUE</a>
|
|
3
|
+
</p>
|
|
4
|
+
|
|
5
|
+
<p align="center">
|
|
6
|
+
<a href="https://telegram.me/Space_x_bots"><img src="https://img.shields.io/badge/Sᴘᴀᴄᴇ 𝕩 ʙᴏᴛꜱ-30302f?style=flat&logo=telegram" alt="telegram badge"/></a>
|
|
7
|
+
<a href="https://telegram.me/clinton_abraham"><img src="https://img.shields.io/badge/Cʟɪɴᴛᴏɴ Aʙʀᴀʜᴀᴍ-30302f?style=flat&logo=telegram" alt="telegram badge"/></a>
|
|
8
|
+
<a href="https://telegram.me/sources_codes"><img src="https://img.shields.io/badge/Sᴏᴜʀᴄᴇ ᴄᴏᴅᴇꜱ-30302f?style=flat&logo=telegram" alt="telegram badge"/></a>
|
|
9
|
+
</p>
|
|
10
|
+
|
|
11
|
+
## USAGE
|
|
12
|
+
<details>
|
|
13
|
+
<summary>Installation</summary>
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
pip install queue
|
|
17
|
+
```
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: queus
|
|
3
|
+
Version: 0.0.1
|
|
4
|
+
Summary: Python queue
|
|
5
|
+
Home-page: https://github.com/Clinton-Abraham
|
|
6
|
+
Author: Clinton Abraham
|
|
7
|
+
Author-email: clintonabrahamc@gmail.com
|
|
8
|
+
Keywords: queue,queues,telegrams
|
|
9
|
+
Classifier: Natural Language :: English
|
|
10
|
+
Classifier: Intended Audience :: Developers
|
|
11
|
+
Classifier: Operating System :: OS Independent
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
17
|
+
Classifier: Topic :: Software Development :: Libraries
|
|
18
|
+
Classifier: Topic :: Software Development :: Localization
|
|
19
|
+
Classifier: Topic :: Software Development :: User Interfaces
|
|
20
|
+
Classifier: Topic :: Software Development :: Version Control
|
|
21
|
+
Requires-Python: ~=3.10
|
|
22
|
+
Description-Content-Type: text/markdown
|
|
23
|
+
Dynamic: author
|
|
24
|
+
Dynamic: author-email
|
|
25
|
+
Dynamic: classifier
|
|
26
|
+
Dynamic: description
|
|
27
|
+
Dynamic: description-content-type
|
|
28
|
+
Dynamic: home-page
|
|
29
|
+
Dynamic: keywords
|
|
30
|
+
Dynamic: requires-python
|
|
31
|
+
Dynamic: summary
|
|
32
|
+
|
|
33
|
+
<p align="center">
|
|
34
|
+
📦 <a href="https://pypi.org/project/Queue" style="text-decoration:none;">QUEUE</a>
|
|
35
|
+
</p>
|
|
36
|
+
|
|
37
|
+
<p align="center">
|
|
38
|
+
<a href="https://telegram.me/Space_x_bots"><img src="https://img.shields.io/badge/Sᴘᴀᴄᴇ 𝕩 ʙᴏᴛꜱ-30302f?style=flat&logo=telegram" alt="telegram badge"/></a>
|
|
39
|
+
<a href="https://telegram.me/clinton_abraham"><img src="https://img.shields.io/badge/Cʟɪɴᴛᴏɴ Aʙʀᴀʜᴀᴍ-30302f?style=flat&logo=telegram" alt="telegram badge"/></a>
|
|
40
|
+
<a href="https://telegram.me/sources_codes"><img src="https://img.shields.io/badge/Sᴏᴜʀᴄᴇ ᴄᴏᴅᴇꜱ-30302f?style=flat&logo=telegram" alt="telegram badge"/></a>
|
|
41
|
+
</p>
|
|
42
|
+
|
|
43
|
+
## USAGE
|
|
44
|
+
<details>
|
|
45
|
+
<summary>Installation</summary>
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
pip install queue
|
|
49
|
+
```
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
README.md
|
|
2
|
+
setup.py
|
|
3
|
+
Queue/__init__.py
|
|
4
|
+
Queue/exceptions/__init__.py
|
|
5
|
+
Queue/exceptions/exceptions.py
|
|
6
|
+
Queue/functions/__init__.py
|
|
7
|
+
Queue/functions/function01.py
|
|
8
|
+
queus.egg-info/PKG-INFO
|
|
9
|
+
queus.egg-info/SOURCES.txt
|
|
10
|
+
queus.egg-info/dependency_links.txt
|
|
11
|
+
queus.egg-info/top_level.txt
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Queue
|
queus-0.0.1/setup.cfg
ADDED
queus-0.0.1/setup.py
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
from setuptools import setup, find_packages
|
|
2
|
+
from Queue import DATA01, DATA02, DATA03
|
|
3
|
+
from Queue import pythons, appname
|
|
4
|
+
from Queue import mention, profile
|
|
5
|
+
from Queue import version, clinton
|
|
6
|
+
|
|
7
|
+
with open("README.md", "r") as mess:
|
|
8
|
+
description = mess.read()
|
|
9
|
+
|
|
10
|
+
setup(name=appname,
|
|
11
|
+
url=profile,
|
|
12
|
+
author=clinton,
|
|
13
|
+
version=version,
|
|
14
|
+
keywords=mention,
|
|
15
|
+
description=DATA03,
|
|
16
|
+
classifiers=DATA02,
|
|
17
|
+
author_email=DATA01,
|
|
18
|
+
python_requires=pythons,
|
|
19
|
+
packages=find_packages(),
|
|
20
|
+
long_description=description,
|
|
21
|
+
long_description_content_type="text/markdown")
|