New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

queuer

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

queuer

Easily create queues

  • 0.2
  • Source
  • PyPI
  • Socket score

Maintainers
1

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

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc