Skip to content

Commit bf56bd5

Browse files
committed
Merge pull request #88 from rbuck/master
Improve README.
2 parents affcaf3 + 5443ab0 commit bf56bd5

File tree

3 files changed

+60
-19
lines changed

3 files changed

+60
-19
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2012, NuoDB, Inc.
1+
Copyright (c) 2012-2015, NuoDB, Inc.
22
All rights reserved.
33

44
Redistribution and use in source and binary forms, with or without

README.rst

Lines changed: 44 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
==============
12
NuoDB - 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

1418
Requirements
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

3746
Example
3847
-------
3948

4049
The following examples assume that you have the quickstart database running (test@localhost).
4150
If 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

85106
License
86107
-------
87108

88109
PyNuoDB 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/

setup.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,19 @@
2222
license='BSD License',
2323
long_description=open(readme).read(),
2424
install_requires=['pytz>=2015.4'],
25+
classifiers=[
26+
'Development Status :: 5 - Production/Stable',
27+
'Environment :: Console',
28+
'Intended Audience :: Developers',
29+
'License :: OSI Approved :: BSD License'
30+
'Operating System :: MacOS :: MacOS X',
31+
'Operating System :: POSIX :: Linux',
32+
'Programming Language :: Python',
33+
'Programming Language :: Python :: 2',
34+
'Programming Language :: Python :: 2.7',
35+
'Programming Language :: Python :: 3',
36+
'Programming Language :: Python :: 3.4',
37+
'Programming Language :: SQL',
38+
'Topic :: Database :: Front-Ends',
39+
],
2540
)

0 commit comments

Comments
 (0)