Skip to content

Commit

Permalink
still playing with readme
Browse files Browse the repository at this point in the history
  • Loading branch information
bgusach committed Dec 13, 2014
1 parent 205587c commit 76dae0f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Usage examples
Constructing a connection string from scratch:

.. code:: python
>>> from pyconstring import ConnectionString
>>> cs = ConnectionString()
>>> cs['user'] = 'manuel'
Expand All @@ -34,6 +35,7 @@ Constructing a connection string from scratch:
Parsing an already existing string:

.. code:: python
>>> cs = ConnectionString.from_string('key1=value1;key2=value2;')
>>> cs['key1'] = 'another value'
>>> cs.get_string()
Expand All @@ -45,6 +47,7 @@ Parsing an already existing string:
Automated escaping when necessary:

.. code:: python
>>> cs = ConnectionString()
>>> cs['weird=key'] = '" weird;value '
>>> print cs.get_string()
Expand All @@ -53,6 +56,7 @@ Automated escaping when necessary:
Key translation:

.. code:: python
>>> cs['key'] = 'value'
>>> cs.translate({'key': 'clave'})
>>> print cs.get_string()
Expand Down

0 comments on commit 76dae0f

Please sign in to comment.