-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
83 lines (59 loc) · 1.91 KB
/
README
File metadata and controls
83 lines (59 loc) · 1.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
{{ Toc( float='right' ) }}
h3. Overview
CouchPy is programmatic interface in python for CouchDB database management
systems. Apart from providing a programmatic access, it also provides data
modelling, querying, creating views, and MVCS features. If you are new to
NoSQL way of building database, you might have to forgo some of the ideas
learnt from relational database systems.
h3. Installation
Installing via package management
{{{ Code bash
# -U to upgrade install
easy_install -U couchpy
}}}
''Source code''
Download the latest tar.gz from http://pypi.python.org/pypi/couchpy
Check out from bazaar repository,
{{{ Code bash
hg clone https://code.google.com/p/couchpy/
}}}
h3. Development
It is always better to setup the development tree under a virtual environment.
To begin with, first checkout the source tree from the latest repository tree
and then use the ''make'' command to create a development environment.
{{{ Code sh
cd couchpy
make develop
}}}
which,
* sets-up a virtual environment under // couchpy-env/ // directory.
* Installs couchpy under the virtual environment in development mode,
[<PRE python ./setup.py develop >]
To start using the couchpy package, enter the virtual environment by doing,
``{y} source ./couchpy-env/bin/activate ``
''To create egg packages'',
{{{ Code bash
make bdist_egg # For creating binary distribution
make sdist # For creating source distribution
}}}
The .egg package will be available under dist/ directory
''To test the package'',
{{{ Code bash
source couchpy-env/bin/activate
make testall
}}}
''Finally, Build the egg and upload it into pypi''
{{{ Code bash
make upload
}}}
''Create sphinx documentation and upload the same into python-package index.''
{{{ Code bash
make sphinxdoc
make upload-doc
}}}
-----
{{{ Nested
# { 'font-size' : 'small', 'color' : 'gray' }
Document edited using Vim <br>
/* vim: set filetype=etx : */
}}}