Metadata-Version: 1.1
Name: tempdirs
Version: 0.0.5
Summary: tempdirs -- Safely create temporary directories
Home-page: https://github.com/thelinuxkid/tempdirs
Author: Andres Buritica
Author-email: andres@thelinuxkid.com
License: UNKNOWN
Description: ========
        tempdirs
        ========
        
        Description
        ===========
        
        tempdirs is a library which allows users to safely and cleanly create
        any number of temporary directories. Temporary directories are
        automatically deleted. It was created as a testing utility.
        
        Installation
        ============
        
        You can use pip or easy_install
        
        - pip install tempdirs
        - easy_install tempdirs
        
        Examples
        ========
        
        You can tempdirs.makedirs as a decorator passing in the number of
        temporary directories needed::
        
            import os
        
            import tempdirs
        
            @tempdirs.makedirs(2)
            def test_foo(srcdir, dstdir):
                srcfile = os.path.join(srcdir,'foo')
                dstfile = os.path.join(dstdir,'bar')
                with open(srcfile, 'w') as fp:
                    fp.write('src content\n')
                with open(dstfile, 'w') as fp:
                    fp.write('dst content\n')
        
        You can also use tempdirs.makedirs as a Context Manager::
        
            import os
        
            import tempdirs
        
            with tempdirs.makedirs(2) as (srcdir, dstdir):
                srcfile = os.path.join(srcdir,'foo')
                dstfile = os.path.join(dstdir,'bar')
                with open(srcfile, 'w') as fp:
                    fp.write('src content\n')
                with open(dstfile, 'w') as fp:
                    fp.write('dst content\n')
        
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: English
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.7
