Skip to main content

Easily create queues

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

queuer-0.2.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

queuer-0.2-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

Details for the file queuer-0.2.tar.gz.

File metadata

  • Download URL: queuer-0.2.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for queuer-0.2.tar.gz
Algorithm Hash digest
SHA256 faec3821a72ada99cfdf4da44111ba3d9967287d5684afe127bafa92f395a897
MD5 29612788425498e15d8d1d7328bada35
BLAKE2b-256 19cffbfb854519df1bdf1e49f41a253f31854eafad1e0df63cdb66c6e065c68b

See more details on using hashes here.

File details

Details for the file queuer-0.2-py3-none-any.whl.

File metadata

  • Download URL: queuer-0.2-py3-none-any.whl
  • Upload date:
  • Size: 2.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for queuer-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c0208928e7b1076eaa6e2716946174f5be718fb59c25b7449a29f186ab8f7b43
MD5 449648e02c666c6bfd40f2b156178c93
BLAKE2b-256 0efc0440b6b2a3f99c8da2500e7d8406d024d9f948d89ce65f06b35438b043de

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page