Skip to content

Commit 53ec74e

Browse files
committed
License. Went with Public Domain after all. #12
1 parent 30b10b6 commit 53ec74e

File tree

2 files changed

+153
-2
lines changed

2 files changed

+153
-2
lines changed

LICENSE

Lines changed: 148 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,148 @@
1+
The postgres Python library is in the public domain. Page two of this file is
2+
the summary of "CC0 1.0 Universal - Public Domain Dedication" from the Creative
3+
Commons. Page three is the full legal code for the same.
4+
5+
6+
http://creativecommons.org/publicdomain/zero/1.0/
7+
8+
No Copyright
9+
10+
The person who associated a work with this deed has dedicated the work to the
11+
public domain by waiving all of his or her rights to the work worldwide under
12+
copyright law, including all related and neighboring rights, to the extent
13+
allowed by law.
14+
15+
You can copy, modify, distribute and perform the work, even for commercial
16+
purposes, all without asking permission. See Other Information below.
17+
18+
19+
Other Information
20+
21+
- In no way are the patent or trademark rights of any person affected by
22+
CC0, nor are the rights that other persons may have in the work or in
23+
how the work is used, such as publicity or privacy rights.
24+
25+
- Unless expressly stated otherwise, the person who associated a work
26+
with this deed makes no warranties about the work, and disclaims
27+
liability for all uses of the work, to the fullest extent permitted by
28+
applicable law.
29+
30+
- When using or citing the work, you should not imply endorsement by the
31+
author or the affirmer.
32+
33+
34+
http://creativecommons.org/publicdomain/zero/1.0/legalcode
35+
36+
37+
Statement of Purpose
38+
39+
The laws of most jurisdictions throughout the world automatically confer
40+
exclusive Copyright and Related Rights (defined below) upon the creator and
41+
subsequent owner(s) (each and all, an "owner") of an original work of
42+
authorship and/or a database (each, a "Work").
43+
44+
Certain owners wish to permanently relinquish those rights to a Work for the
45+
purpose of contributing to a commons of creative, cultural and scientific works
46+
("Commons") that the public can reliably and without fear of later claims of
47+
infringement build upon, modify, incorporate in other works, reuse and
48+
redistribute as freely as possible in any form whatsoever and for any purposes,
49+
including without limitation commercial purposes. These owners may contribute
50+
to the Commons to promote the ideal of a free culture and the further
51+
production of creative, cultural and scientific works, or to gain reputation or
52+
greater distribution for their Work in part through the use and efforts of
53+
others.
54+
55+
For these and/or other purposes and motivations, and without any expectation of
56+
additional consideration or compensation, the person associating CC0 with a
57+
Work (the "Affirmer"), to the extent that he or she is an owner of Copyright
58+
and Related Rights in the Work, voluntarily elects to apply CC0 to the Work and
59+
publicly distribute the Work under its terms, with knowledge of his or her
60+
Copyright and Related Rights in the Work and the meaning and intended legal
61+
effect of CC0 on those rights.
62+
63+
1. Copyright and Related Rights. A Work made available under CC0 may be
64+
protected by copyright and related or neighboring rights ("Copyright and
65+
Related Rights"). Copyright and Related Rights include, but are not limited to,
66+
the following:
67+
68+
i. the right to reproduce, adapt, distribute, perform, display,
69+
communicate, and translate a Work;
70+
71+
ii. moral rights retained by the original author(s) and/or performer(s);
72+
73+
iii. publicity and privacy rights pertaining to a person's image or likeness
74+
depicted in a Work;
75+
76+
iv. rights protecting against unfair competition in regards to a Work,
77+
subject to the limitations in paragraph 4(a), below;
78+
79+
v. rights protecting the extraction, dissemination, use and reuse of data
80+
in a Work;
81+
82+
vi. database rights (such as those arising under Directive 96/9/EC of the
83+
European Parliament and of the Council of 11 March 1996 on the legal
84+
protection of databases, and under any national implementation thereof,
85+
including any amended or successor version of such directive); and
86+
87+
vii. other similar, equivalent or corresponding rights throughout the world
88+
based on applicable law or treaty, and any national implementations
89+
thereof.
90+
91+
2. Waiver. To the greatest extent permitted by, but not in contravention of,
92+
applicable law, Affirmer hereby overtly, fully, permanently, irrevocably and
93+
unconditionally waives, abandons, and surrenders all of Affirmer's Copyright
94+
and Related Rights and associated claims and causes of action, whether now
95+
known or unknown (including existing as well as future claims and causes of
96+
action), in the Work (i) in all territories worldwide, (ii) for the maximum
97+
duration provided by applicable law or treaty (including future time
98+
extensions), (iii) in any current or future medium and for any number of
99+
copies, and (iv) for any purpose whatsoever, including without limitation
100+
commercial, advertising or promotional purposes (the "Waiver"). Affirmer makes
101+
the Waiver for the benefit of each member of the public at large and to the
102+
detriment of Affirmer's heirs and successors, fully intending that such Waiver
103+
shall not be subject to revocation, rescission, cancellation, termination, or
104+
any other legal or equitable action to disrupt the quiet enjoyment of the Work
105+
by the public as contemplated by Affirmer's express Statement of Purpose.
106+
107+
3. Public License Fallback. Should any part of the Waiver for any reason be
108+
judged legally invalid or ineffective under applicable law, then the Waiver
109+
shall be preserved to the maximum extent permitted taking into account
110+
Affirmer's express Statement of Purpose. In addition, to the extent the Waiver
111+
is so judged Affirmer hereby grants to each affected person a royalty-free, non
112+
transferable, non sublicensable, non exclusive, irrevocable and unconditional
113+
license to exercise Affirmer's Copyright and Related Rights in the Work (i) in
114+
all territories worldwide, (ii) for the maximum duration provided by applicable
115+
law or treaty (including future time extensions), (iii) in any current or
116+
future medium and for any number of copies, and (iv) for any purpose
117+
whatsoever, including without limitation commercial, advertising or promotional
118+
purposes (the "License"). The License shall be deemed effective as of the date
119+
CC0 was applied by Affirmer to the Work. Should any part of the License for any
120+
reason be judged legally invalid or ineffective under applicable law, such
121+
partial invalidity or ineffectiveness shall not invalidate the remainder of the
122+
License, and in such case Affirmer hereby affirms that he or she will not (i)
123+
exercise any of his or her remaining Copyright and Related Rights in the Work
124+
or (ii) assert any associated claims and causes of action with respect to the
125+
Work, in either case contrary to Affirmer's express Statement of Purpose.
126+
127+
4. Limitations and Disclaimers.
128+
129+
a. No trademark or patent rights held by Affirmer are waived, abandoned,
130+
surrendered, licensed or otherwise affected by this document.
131+
132+
b. Affirmer offers the Work as-is and makes no representations or
133+
warranties of any kind concerning the Work, express, implied, statutory
134+
or otherwise, including without limitation warranties of title,
135+
merchantability, fitness for a particular purpose, non infringement, or
136+
the absence of latent or other defects, accuracy, or the present or
137+
absence of errors, whether or not discoverable, all to the greatest
138+
extent permissible under applicable law.
139+
140+
c. Affirmer disclaims responsibility for clearing rights of other persons
141+
that may apply to the Work or any use thereof, including without
142+
limitation any person's Copyright and Related Rights in the Work.
143+
Further, Affirmer disclaims responsibility for obtaining any necessary
144+
consents, permissions or other rights required for any use of the Work.
145+
146+
d. Affirmer understands and acknowledges that Creative Commons is not a
147+
party to this document and has no duty or obligation with respect to
148+
this CC0 or use of the Work.

postgres.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@
1313
:py:mod:`psycopg2` or PostgreSQL.
1414
1515
Importing :py:mod:`postgres` under Python 2 will cause the registration of
16-
typecasters in psycopg2 to ensure that you get unicode instead of bytestrings
17-
for text data, according to `this advice`_.
16+
typecasters with :py:mod:`psycopg2` to ensure that you get unicode instead of
17+
bytestrings for text data, according to `this advice`_.
18+
19+
:py:mod:`postgres` is in the `public domain`_.
1820
1921
2022
Tutorial
@@ -137,6 +139,7 @@
137139
.. _GitHub: https://github.com/gittip/postgres
138140
.. _PyPI: https://pypi.python.org/pypi/postgres
139141
.. _this advice: http://initd.org/psycopg/docs/usage.html#unicode-handling
142+
.. _public domain: http://creativecommons.org/publicdomain/zero/1.0/
140143
.. _DB-API 2.0: http://www.python.org/dev/peps/pep-0249/
141144
.. _SQL injection: http://en.wikipedia.org/wiki/SQL_injection
142145

0 commit comments

Comments
 (0)