Metadata-Version: 1.0
Name: csFIFO
Version: 1.1
Summary: A simple cStringIO based FIFO, implemented as a circular buffer
Home-page: http://pypi.python.org/pypi/csFIFO
Author: Jason Morgan
Author-email: pypi@cropwell.net
License: http://creativecommons.org/licenses/by-sa/3.0/
Description: ======
        csFIFO
        ======
        
        A simple FIFO that includes non destructive inspection, based on a cStringIO circular buffer
        --------------------------------------------------------------------------------------------
        
        **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
        
        **Known Bugs:**
        
        The indexing does not work correctly with some forms of negative index
        
        **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:]
        
        Dependencies:
        ::
        
         None that I know of
        
        
Keywords: FIFO
Platform: any
Classifier: Development Status :: 3 - Alpha
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Intended Audience :: Developers
Classifier: License :: Other/Proprietary License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
