will be imported if available - this default is typically the most widely
known driver available for that backend.
+As the URL is like any other URL, special characters such as those that
+may be used in the password need to be URL encoded. Below is an example
+of a URL that includes the password ``"kx%jj5/g"``::
+
+ postgresql+pg8000://dbuser:kx%25jj5%2Fg@pghost10/appdb
+
+The encoding for the password can be generated using ``urllib``::
+
+ >>> import urllib.parse
+ >>> urllib.parse.quote_plus("kx%jj5/g")
+ 'kx%25jj5%2Fg'
+
Examples for common connection styles follow below. For a full index of
-detailed information on all included dialects as well as links to third-party dialects, see
-:ref:`dialect_toplevel`.
+detailed information on all included dialects as well as links to third-party
+dialects, see :ref:`dialect_toplevel`.
PostgreSQL
----------
#Unix/Mac - 4 initial slashes in total
engine = create_engine('sqlite:////absolute/path/to/foo.db')
- #Windows
+ #Windows
engine = create_engine('sqlite:///C:\\path\\to\\foo.db')
#Windows alternative using raw string
engine = create_engine(r'sqlite:///C:\path\to\foo.db')