API¶
The ConnectionString class has the same API as standard dictionary, plus the following methods:
-
class
pyconstring.pyconstring.
ConnectionString
(*args, **kwargs)¶ Bases:
collections.OrderedDict
-
classmethod
from_string
(string)¶ Creates a new instance and loads the passed string
Parameters: string (unicode) – connection string to be parsed Return type: ConnectionString
-
get_string
()¶ Returns: the composed connection string Return type: unicode
-
translate
(trans, strict=True)¶ Translates the keys of the store.
Parameters: - trans (dict) – translation mapping {pre name: post name}
- strict (bool) – When strict, the existing keys in self that are not in trans will be removed. If not strict, they will still exist.
-
classmethod