Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
# List: The list you are going to transform into a queue
# Length: The maximum size of the queue
# Input: The input from the user (can be a input('')) or an str
Queue(list, length, input)
# Returns the simple queue
Queue(list, length, input).input()
# Returns the element that was added
Queue(list, length, input).output()
# Returns the element that was removed
Queue(list, length, input).infos() # or .info()
# Returns the queue, the input and the output of the queue.
.create()
function
Queue(q, 3, in).create(1)
Queue
class itself.input()
, .output()
and .infos()
Queue
class.return
Methods
Queue
without needing to print()
it.
Queue
with print()
.graph TD
A[Read the input] -->|Verify if the size is less than the wanted|B(Insert string on the first position)
B --> C{Check the queue}
C -->|If the size is less|D[Insert at 0 and move the rest]
C -->|If size is greater|E[Insert at 0 and pop the last]
E --> F
D --> F
F{Rest of args}
F --> |.input|H(print the new element)
F --> |.output|G(print the removed element)
F --> |info / infos|I(print the queue, the input and the output)
FAQs
Simple module to create queues
We found that queuepy demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.