Metadata-Version: 1.1
Name: dhp
Version: 0.0.4
Summary: A collection of handy modules, almost guaranteed to get you into trouble.
Home-page: https://bitbucket.org/dundeemt/dhp
Author: Jeff Hinrichs
Author-email: jeffh@dundeemt.com
License: BSD
Description: Dirty Hungarian Phrasebook
        ==========================
        ``dhp`` is a library of snippets almost guaranteed to get you into trouble.
        
        I obtained it from a vendor, on the corner, outside of PyCon.
        
        Actually, this is a growing repository of routines that I find helpful from time to time. I think you might too.
        
        
        Phrasebook Contents
        --------------------
        
        **dhp.test**
        
          * **tempfile_containing** - generate a temporary file that contains indicated contents and returns the filename for use.  When finished the tempfile is removed.
        
        ::
        
            from dhp.test import tempfile_containing
        
            contents = 'I will not buy this record, it is scratched.'
            with tempfile_containing(contents) as fname:
                do_something(fname)
        
        **dhp.xml**
        
         * **xml_to_dict** - parse any ugly xml to a python dictionary.
        
        ::
        
            from dhp.xml import xml_to_dict
        
            xml = '<vehicle type="Hovercraft"><filled/><cargo>eels</cargo></vehicle>'
            xml_to_dict(xml)
        
            {'vehicle': {'@type':'Hovercraft',
                         'cargo':'eels',
                         'filled': None}
            }
        
        
        Supports
        --------
        Tested on Python 2.7, 3.2, 3.3, 3.4
        
        .. image:: https://drone.io/bitbucket.org/dundeemt/dhp/status.png
            :target: https://drone.io/bitbucket.org/dundeemt/dhp/latest
            :alt: Build Status
        
        Requirements
        ------------
        None.
        
        Installation
        ------------
        Make sure to get the latest version.
        
          pip install dhp
        
        Documentation
        --------------
        `Full Docs <https://dhp.rtfd.org/>`_
        
Keywords: phrasebook hungarian
Platform: any
Classifier: Development Status :: 4 - Beta
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.2
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
