Merge remote-tracking branch 'origin/pycurl' into planetlab-4_0-branch
[plcapi.git] / psycopg2 / LICENSE
1 psycopg and the GPL
2 ===================
3
4 psycopg is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version. See file COPYING for details.
8
9 As a special exception, specific permission is granted for the GPLed
10 code in this distribition to be linked to OpenSSL and PostgreSQL libpq
11 without invoking GPL clause 2(b).
12
13 Note that the GPL was chosen to avoid proprietary adapters based on
14 psycopg code. Using psycopg in a proprietary product (even bundling
15 psycopg with the proprietary product) is fine as long as:
16
17  1. psycopg is called from Python only using only the provided API
18     (i.e., no linking with C code and no C modules based on it); and
19
20  2. all the other points of the GPL are respected (you offer a copy
21     of psycopg's source code, and so on.)
22
23 Alternative licenses
24 ====================
25
26 If you prefer you can use the Zope Database Adapter ZPsycopgDA (i.e.,
27 every file inside the ZPsycopgDA directory) user the ZPL license as
28 published on the Zope web site, http://www.zope.org/Resources/ZPL.
29
30 Also, the following BSD-like license applies (at your option) to the
31 files following the pattern psycopg/adapter*.{h,c} and
32 psycopg/microprotocol*.{h,c}:
33
34  Permission is granted to anyone to use this software for any purpose,
35  including commercial applications, and to alter it and redistribute it
36  freely, subject to the following restrictions:
37
38  1. The origin of this software must not be misrepresented; you must not
39     claim that you wrote the original software. If you use this
40     software in a product, an acknowledgment in the product documentation
41     would be appreciated but is not required.
42  
43  2. Altered source versions must be plainly marked as such, and must not
44     be misrepresented as being the original software.
45  
46  3. This notice may not be removed or altered from any source distribution.
47
48 psycopg is distributed in the hope that it will be useful,
49 but WITHOUT ANY WARRANTY; without even the implied warranty of
50 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
51 GNU General Public License for more details.
52
53 Proprietary licenses
54 ====================
55
56 A non-exclusive license is available for companies that want to include
57 psycopg in their proprietary products without respecting the spirit of the
58 GPL. The price of the license is one day of development done by the author,
59 at the consulting fee he applies to his usual customers at the day of the
60 request.