Metadata-Version: 1.1
Name: pyconstring
Version: 0.3.1
Summary: Tool to handle connection strings
Home-page: https://github.com/ikaros45/pyconstring
Author: Bor González-Usach
Author-email: bgusach@gmail.com
License: MIT
Description: pyconstring
        ===========
        
        Tool to handle connection strings. Offers an easy API that parses and constructs connection strings
        in the form of ``Key=Value;``, almost as easy as handling a dictionary. Works with both Python 2 and 3
        
        License
        -------
        MIT. See `License File <https://github.com/ikaros45/pyconstring/blob/master/LICENSE>`__.
        
        
        Usage examples
        --------------
        Constructing a connection string from scratch::
        
            >>> from pyconstring import ConnectionString
            >>> cs = ConnectionString()
            >>> cs['user'] = 'manuel'
            >>> cs['password'] = '1234'
            >>> print cs.get_string()
            User=manuel;Password=1234;
        
        Parsing an already existing string::
        
            >>> cs = ConnectionString.from_string('key1=value1;key2=value2;')
            >>> cs['key1'] = 'another value'
            >>> cs.get_string()
            u'Key1=another value;Key2=value2;'
            >>> cs['user'] = 'johnny'
            >>> print cs.get_string()
            Key1=another value;Key2=value2;User=johnny;
        
        Automated escaping when necessary::
        
            >>> cs = ConnectionString()
            >>> cs['weird=key'] = '" weird;value  '
            >>> print cs.get_string()
            Weird==Key='" weird;value  ';
        
        Key translation::
        
            >>> cs['key'] = 'value'
            >>> cs.translate({'key': 'clave'})
            >>> print cs.get_string()
            Clave=value;
        
        
        
Keywords: c,o,n,n,e,c,t,i,o,n, ,s,t,r,i,n,g
Platform: UNKNOWN
Classifier: License :: OSI Approved :: MIT License
Classifier: Development Status :: 4 - Beta
Classifier: Operating System :: OS Independent
Classifier: Topic :: Database
Classifier: Topic :: Utilities
