Simplest Queue package to make a fixed size queue on your platform and apps. You just need to import and use FixQueue-based queues.
Project description
FixQueue
Simplest Queue package to make a fixed size queue on your platform and apps.
You just need to import and use FixQueue-based queues.
Install
pip install fixqueue
Basic Example
from FixQueue import FixQueue
- if __name__ == “__main__” :
fq = FixQueue(2) # 2 means queue size
fq.append(‘a’)
fq.append(‘b’)
print (fq) # [‘a’, ‘b’]
fq.append(‘c’)
print (fq) # [‘b’, ‘c’]
print (fq.pop()) # b
print (fq) # [‘c’]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
FixQueue-0.1.1.tar.gz
(1.7 kB
view details)
File details
Details for the file FixQueue-0.1.1.tar.gz
.
File metadata
- Download URL: FixQueue-0.1.1.tar.gz
- Upload date:
- Size: 1.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce144d27b6fdef9407b97910a3001bedf85c53e3cadbe1a4a5f61b94899d9eab |
|
MD5 | b23a9a810e85b74c4d58981cba239b76 |
|
BLAKE2b-256 | 73510c6065dbba70d641d9e0dfe2df604e7f4ecd2115fcdd3ecb9c0cd2bf261d |