Name | queuer JSON |
Version |
0.2
JSON |
| download |
home_page | None |
Summary | Easily create queues |
upload_time | 2024-07-29 05:58:38 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.9 |
license | None |
keywords |
proton
queue
data
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# queuer
Easily create queues.
## Install
```py
pip install queuer
```
## Usage
```py
import queuer
queue=queuer.queue()
queue.push(1)
queue.push(2)
queue.push(3)
queue.push(4)
queue.push(5)
print(queue) # output: queue(1, 2 ,3, 4 ,5)
```
## get the value of queue
```py
print(queue.get()) # output: 1
print(queue) ## output: queue(2, 3, 4, 5)
```
## Others
```py
queue.replace(2,6)
print(queue) # output: queue(6, 3, 4, 5)
queue.rotate(time=2)
print(queue) # output: queue(2, 5, 6, 3)
queue.embed(2,1)
print(queue) ## output: queue(2, 5, 1, 6, 3)
print(queue.current()) # output: 2
print(queue.is_empty()) # output : False
print(queue.size()) # output: 5
print(queue.peak()) # output: 3
queue.delete(item=2)
print(queue) # output: queue(5, 1, 6, 3)
queue.clear()
print(queue) # output: queue()
```
Raw data
{
"_id": null,
"home_page": null,
"name": "queuer",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": null,
"keywords": "proton, queue, data",
"author": null,
"author_email": "cjenf <cjenf844747@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/19/cf/fbfb854519df1bdf1e49f41a253f31854eafad1e0df63cdb66c6e065c68b/queuer-0.2.tar.gz",
"platform": null,
"description": "# queuer\r\nEasily create queues.\r\n## Install\r\n```py\r\npip install queuer\r\n```\r\n## Usage\r\n```py\r\nimport queuer\r\n\r\nqueue=queuer.queue()\r\nqueue.push(1)\r\nqueue.push(2)\r\nqueue.push(3)\r\nqueue.push(4)\r\nqueue.push(5)\r\n\r\nprint(queue) # output: queue(1, 2 ,3, 4 ,5)\r\n```\r\n## get the value of queue\r\n```py\r\nprint(queue.get()) # output: 1\r\nprint(queue) ## output: queue(2, 3, 4, 5)\r\n```\r\n## Others\r\n```py\r\nqueue.replace(2,6)\r\nprint(queue) # output: queue(6, 3, 4, 5)\r\n\r\nqueue.rotate(time=2)\r\nprint(queue) # output: queue(2, 5, 6, 3)\r\n\r\nqueue.embed(2,1)\r\nprint(queue) ## output: queue(2, 5, 1, 6, 3)\r\n\r\nprint(queue.current()) # output: 2\r\n\r\nprint(queue.is_empty()) # output : False\r\n\r\nprint(queue.size()) # output: 5\r\n\r\nprint(queue.peak()) # output: 3\r\n\r\nqueue.delete(item=2)\r\nprint(queue) # output: queue(5, 1, 6, 3)\r\n\r\nqueue.clear()\r\nprint(queue) # output: queue()\r\n```\r\n",
"bugtrack_url": null,
"license": null,
"summary": "Easily create queues",
"version": "0.2",
"project_urls": {
"Source": "https://github.com/cjenf/queuetools"
},
"split_keywords": [
"proton",
" queue",
" data"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "0efc0440b6b2a3f99c8da2500e7d8406d024d9f948d89ce65f06b35438b043de",
"md5": "449648e02c666c6bfd40f2b156178c93",
"sha256": "c0208928e7b1076eaa6e2716946174f5be718fb59c25b7449a29f186ab8f7b43"
},
"downloads": -1,
"filename": "queuer-0.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "449648e02c666c6bfd40f2b156178c93",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 2569,
"upload_time": "2024-07-29T05:58:37",
"upload_time_iso_8601": "2024-07-29T05:58:37.443098Z",
"url": "https://files.pythonhosted.org/packages/0e/fc/0440b6b2a3f99c8da2500e7d8406d024d9f948d89ce65f06b35438b043de/queuer-0.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "19cffbfb854519df1bdf1e49f41a253f31854eafad1e0df63cdb66c6e065c68b",
"md5": "29612788425498e15d8d1d7328bada35",
"sha256": "faec3821a72ada99cfdf4da44111ba3d9967287d5684afe127bafa92f395a897"
},
"downloads": -1,
"filename": "queuer-0.2.tar.gz",
"has_sig": false,
"md5_digest": "29612788425498e15d8d1d7328bada35",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 2445,
"upload_time": "2024-07-29T05:58:38",
"upload_time_iso_8601": "2024-07-29T05:58:38.995329Z",
"url": "https://files.pythonhosted.org/packages/19/cf/fbfb854519df1bdf1e49f41a253f31854eafad1e0df63cdb66c6e065c68b/queuer-0.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-07-29 05:58:38",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "cjenf",
"github_project": "queuetools",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "queuer"
}