Metadata-Version: 1.1
Name: jit-open
Version: 0.0.3
Summary: jit-open: Just in time open files..
Home-page: https://git.lumc.nl/j.f.j.laros/jit-open
Author: LUMC, Jeroen F.J. Laros
Author-email: J.F.J.Laros@lumc.nl
License: MIT License
Description: # Just in time open files.
        This package provides a way to delay opening files until the something is
        written to the file handle. This can be convenient when opening a large number
        of files of which most of them will not be frequently used. To deal with
        resource limits a queue is used from which, when full, the least frequent file
        is closed.
        
        ## Installation
        Via [pypi](https://pypi.python.org/pypi/jit-open):
        
            pip install jit_open
        
        From source:
        
            git clone https://git.lumc.nl/j.f.j.laros/jit-open.git
            cd jit_open
            pip install .
        
        ## Library
        The library provides the `Handle` and `Queue` classes. Full documentation can
        be found
        [here](https://git.lumc.nl/j.f.j.laros/jit-open).
        
        ### Usage
        In the following example, only the file `used.txt` is created.
        
        ```python
        >>> from jit_open import Handle, Queue
        >>>
        >>> queue = Queue()
        >>> used = Handle("used.txt", queue)
        >>> unused = Handle("unused.txt", queue)
        >>>
        >>> used.write("line 1\n")
        >>> used.write("line 2\n")
        ```
        
Platform: any
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Science/Research
Classifier: Intended Audience :: Developers
Classifier: Topic :: Scientific/Engineering
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
