Skip to main content

License:

Creative Commons CC-BY-SA 3.0, see README.TXT

Changes:

1.0 Original Release
1.1 Changed write to look like other file operations and return a number
1.2 Added threading test and fixed bug with read/write stats, improved inspection slicing
1.3 Fix issue with stats printing if FIFO is not written
Improve debugging if multiple FIFO instances used. Added idle timer
1.4 Removed stream parameter from logging.StreamHandler() for python2.6 compatibility

Known Bugs:

None that I know of (eek)

Credit:

All credit to the posting by Cameron on StackOverflow, here: http://stackoverflow.com/questions/10917581/efficient-fifo-queue-for-arbitrarily-sized-chunks-of-bytes-in-python

Usage:

import csFIFO

f1=csFIFO()
data="Message"
f1.write(data)
size=2
data=f1.read(size)
f1.purge()

f2=csFIFO(max_size=1024*1024)
f2.write("Hello World")
if not f2.isEmpty():
  #Print some stats
  print f2

#Non-destructive inspection
print f2[:5]
print f2[4:8]
print f2[-5:]
print f2.contents()

Dependencies:

None that I know of

Metadata

Release files for csFIFO 1.4

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

Built distributions (wheels)

Table of built distributions (wheels) for csFIFO 1.4
File Interpreter ABI Platform Actions
csFIFO-1.4-py2.7.egg Legacy Egg format - - Details for csFIFO-1.4-py2.7.egg
csFIFO-1.4-py2.6.egg Legacy Egg format - - Details for csFIFO-1.4-py2.6.egg

Total release size: 22.9 kB

Release files / csFIFO-1.4-py2.7.egg

Download URL csFIFO-1.4-py2.7.egg
Size 11.5 kB
Tags Egg
SHA-256 checksum
How to use checksums
6304d21071549ee9157a93cd886c0d0d12a7ea05f3f23c5eae494518c756d63c
BLAKE2b-256 checksum
How to use checksums
9c2e4b99a25a4eaf6b67ea1d79784227a4d68268e744cefb65f60afb0f3cbaa2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / csFIFO-1.4-py2.6.egg

Download URL csFIFO-1.4-py2.6.egg
Size 11.5 kB
Tags Egg
SHA-256 checksum
How to use checksums
a3979db8f55cafb05659f48462ad86ba162a6e8e12cce934e184130b8401528e
BLAKE2b-256 checksum
How to use checksums
14bb798ff6676158b404b32c57b3ba851964b88046aac481e817228a0a0f4110
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for csFIFO 1.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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