Skip to main content

queuer

Easily create queues.

Install

pip install queuer

Usage

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

print(queue.get()) # output: 1
print(queue) ## output: queue(2, 3, 4, 5)

Others

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()

Metadata

Release files for queuer 0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for queuer 0.2
File Size Uploaded
queuer-0.2.tar.gz 2.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for queuer 0.2
File Interpreter ABI Platform
queuer-0.2-py3-none-any.whl Python 3 none any Details

Total release size: 5.0 kB

Release files / queuer-0.2.tar.gz

Download URL queuer-0.2.tar.gz
Size 2.4 kB
Tags Source
SHA-256 checksum
How to use checksums
faec3821a72ada99cfdf4da44111ba3d9967287d5684afe127bafa92f395a897
BLAKE2b-256 checksum
How to use checksums
19cffbfb854519df1bdf1e49f41a253f31854eafad1e0df63cdb66c6e065c68b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.12.4

Release files / queuer-0.2-py3-none-any.whl

Download URL queuer-0.2-py3-none-any.whl
Size 2.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c0208928e7b1076eaa6e2716946174f5be718fb59c25b7449a29f186ab8f7b43
BLAKE2b-256 checksum
How to use checksums
0efc0440b6b2a3f99c8da2500e7d8406d024d9f948d89ce65f06b35438b043de
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.12.4

Release history Release notifications | RSS feed

This release

0.2 This release

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page