Skip to content

Commit 65e0767

Browse files
author
James William Pye
committed
Add 'version' name and some extra documentation.
1 parent d115ee6 commit 65e0767

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

postgresql/__init__.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,22 @@
1616
'__project_id__',
1717
'__docformat__',
1818
'__version__',
19+
'version',
1920
'version_info',
2021
'open',
2122
]
2223

2324
__author__ = "James William Pye <x@jwp.name>"
24-
__date__ = "2009-08-12 08:53:00-07"
25+
__date__ = "2009-12-11 08:44:00-07"
2526

2627
__project__ = 'py-postgresql'
2728
__project_id__ = 'http://python.projects.postgresql.org'
2829

30+
#: The py-postgresql version tuple.
2931
version_info = (0, 9, 2, 'dev', 0)
30-
__version__ = '.'.join(map(str, version_info[:3])) + (
32+
33+
#: The py-postgresql version string.
34+
version = __version__ = '.'.join(map(str, version_info[:3])) + (
3135
version_info[3] if version_info[3] != 'final' else ''
3236
)
3337

@@ -44,6 +48,12 @@ def open(iri = None, prompt_title = None, **kw):
4448
# Connect to 'postgres' at localhost.
4549
>>> db = postgresql.open('localhost/postgres')
4650
51+
Connection keywords can also be used with `open`. See the narratives for
52+
more information.
53+
54+
When `prompt_title` is *not* `None`, a password prompt will be issued if
55+
necessary.
56+
4757
(Note: "pq" is the name of the protocol used to communicate with PostgreSQL)
4858
"""
4959
global _pg_iri, _pg_driver, _pg_param

0 commit comments

Comments
 (0)