Metadata-Version: 2.1
Name: fpipe
Version: 0.0.6
Summary: Library for working with file-likes as piped streams
Home-page: https://github.com/vkvam/fpipe
Author: Vemund Kvam
Author-email: vemund.kvam@gmail.com
License: MIT
Description: # fpipe
        
        Framework for processing file-likes through chained pipes
        
        ## Installing
        
        
        Designed for python 3.7, for S3 support you need boto3
        
        ```
        brew install python3
        pip3 install fpipe boto3
        ```
        
        ### Getting started
        
        Example that reads a stream, calculates some file info, writes file to disk and prints the original stream to stdout
        ```
        example_streams = (
            Stream(io.BytesIO(b'x'*2**15), FileMeta(f'x.file')),
            Stream(io.BytesIO(b'y'*2**15), FileMeta(f'y.file')),
        )
        gen = FileInfoGenerator(example_streams, CalculatedFileMeta)
        gen = LocalFileGenerator(gen.get_files(), pass_through=True)
        for f in gen.get_files():
            while True:
                b = f.file.read(4)
                print(b.decode('utf-8'), end='')
                if not b:
                    break
            print(f.parent.meta.checksum_md5)
        ```
        
        See unittests for more examples
        
        ## Run tests
        
        To run tests install tox with pip, go to project root and run `tox`
        ```
        pip3 install tox
        tox
        ```
        
        ## Built With
        
        * python3.7
        * travis
        * tox
        
        ## Contributing
        
        Bug-reports and pull requests on github  
        
        ## Versioning
        
        https://pypi.org/project/fpipe/#history
        
        ## License
        
        This project is licensed under the MIT License - see the [LICENSE.txt](LICENSE.txt) file for details
Keywords: pipe file stream
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.7
Classifier: Intended Audience :: Developers
Description-Content-Type: text/markdown
