1+ ==============
12NuoDB - Python
23==============
34
@@ -9,38 +10,48 @@ NuoDB - Python
910 :target: https://landscape.io/github/nuodb/nuodb-python/master
1011 :alt: Code Health
1112
12- This is the official Python package for `NuoDB <http://www.nuodb.com >`_.
13+ .. contents ::
14+
15+ This package contains the official pure-Python NuoDB _ client library that
16+ provides both a standard `PEP 249 `_ SQL API, a NuoDB administration API.
1317
1418Requirements
1519------------
1620
17- If you haven't already, `Download and Install NuoDB <http://nuodb.com/download-nuodb/ >`_.
18- Currently the driver supports Python version 2.7 only.
21+ * Python -- one of the following:
1922
20- To run the tests, you will also need ` pytz < http://pytz.sourceforge.net/ >`_::
23+ - CPython _ >= 2.7 or <= 3.4
2124
22- pip install pytz
25+ * NuoDB -- one of the following:
2326
24- Install
25- -------
27+ - NuoDB _ >= 2.0.4
2628
27- Install from source by running::
29+ If you haven't done so already, ` Download and Install NuoDB < http://dev.nuodb.com/download-nuodb/request/download/ >`_.
2830
29- git clone git://github.com/nuodb/nuodb-python.git
30- cd nuodb-python
31- sudo python setup.py install
31+ Installation
32+ ------------
3233
33- Or install from pip::
34+ The last stable release is available on PyPI and can be installed with `` pip `` ::
3435
35- pip install pynuodb
36+ $ pip install pynuodb
37+
38+ Alternatively (e.g. if ``pip `` is not available), a tarball can be downloaded
39+ from GitHub and installed with Setuptools::
40+
41+ $ curl -L https://github.com/nuodb/nuodb-python/archive/master.tar.gz | tar xz
42+ $ cd nuodb-python*
43+ $ python setup.py install
44+ $ # The folder nuodb-python* can be safely removed now.
3645
3746Example
3847-------
3948
4049The following examples assume that you have the quickstart database running (test@localhost).
4150If you don't, you can start it by running /opt/nuodb/run-quickstart.
4251
43- Simple example for connecting and reading from an existing table::
52+ Simple example for connecting and reading from an existing table:
53+
54+ .. code :: python
4455
4556 import pynuodb
4657
@@ -50,7 +61,9 @@ Simple example for connecting and reading from an existing table::
5061 cursor.execute(" select * from hockey" )
5162 print cursor.fetchone()
5263
53- Data can be inserted into a table either explicitly within the execute method::
64+ Data can be inserted into a table either explicitly within the execute method:
65+
66+ .. code :: python
5467
5568 import pynuodb
5669
@@ -64,7 +77,9 @@ Data can be inserted into a table either explicitly within the execute method::
6477 cursor.execute(" select * from typetest" )
6578 print cursor.fetchone()
6679
67- or using variables::
80+ or using variables:
81+
82+ .. code :: python
6883
6984 import pynuodb
7085
@@ -79,10 +94,21 @@ or using variables::
7994 cursor.execute(" select * from variabletest" )
8095 print cursor.fetchone()
8196
82- For further information on getting started with NuoDB, please refer to the
83- `NuoDB Documentation <http://doc.nuodb.com/display/doc/NuoDB+at+a+Glance >`_.
97+ For further information on getting started with NuoDB, please refer to the Documentation _.
98+
99+ Resources
100+ ---------
101+
102+ DB-API 2.0: http://www.python.org/dev/peps/pep-0249/
103+
104+ NuoDB Documentation: http://doc.nuodb.com/display/DOC/Getting+Started
84105
85106License
86107-------
87108
88109PyNuoDB is licensed under a `BSD 3-Clause License <https://github.com/nuodb/nuodb-python/blob/master/LICENSE >`_.
110+
111+ .. _Documentation : http://doc.nuodb.com/display/DOC/Getting+Started
112+ .. _NuoDB : http://www.nuodb.com/
113+ .. _CPython : http://www.python.org/
114+ .. _PEP 249 : https://www.python.org/dev/peps/pep-0249/
0 commit comments