converted all Markdown to reStructuredText because this is understood by PyPi
This commit is contained in:
parent
dd366cb085
commit
d18b3ab4d9
|
@ -1,14 +1,14 @@
|
||||||
GNU GENERAL PUBLIC LICENSE
|
GNU General Public License
|
||||||
==========================
|
==========================
|
||||||
|
|
||||||
Version 3, 29 June 2007
|
*Version 3, 29 June 2007*
|
||||||
|
*Copyright © 2007 Free Software Foundation, Inc* <http://fsf.org>
|
||||||
Copyright © 2007 Free Software Foundation, Inc. <<http://fsf.org/>>
|
|
||||||
|
|
||||||
Everyone is permitted to copy and distribute verbatim copies of this license
|
Everyone is permitted to copy and distribute verbatim copies of this license
|
||||||
document, but changing it is not allowed.
|
document, but changing it is not allowed.
|
||||||
|
|
||||||
## Preamble
|
Preamble
|
||||||
|
--------
|
||||||
|
|
||||||
The GNU General Public License is a free, copyleft license for software and other
|
The GNU General Public License is a free, copyleft license for software and other
|
||||||
kinds of works.
|
kinds of works.
|
||||||
|
@ -37,8 +37,8 @@ you must pass on to the recipients the same freedoms that you received. You must
|
||||||
sure that they, too, receive or can get the source code. And you must show them these
|
sure that they, too, receive or can get the source code. And you must show them these
|
||||||
terms so they know their rights.
|
terms so they know their rights.
|
||||||
|
|
||||||
Developers that use the GNU GPL protect your rights with two steps: (1) assert
|
Developers that use the GNU GPL protect your rights with two steps: **(1)** assert
|
||||||
copyright on the software, and (2) offer you this License giving you legal permission
|
copyright on the software, and **(2)** offer you this License giving you legal permission
|
||||||
to copy, distribute and/or modify it.
|
to copy, distribute and/or modify it.
|
||||||
|
|
||||||
For the developers' and authors' protection, the GPL clearly explains that there is
|
For the developers' and authors' protection, the GPL clearly explains that there is
|
||||||
|
@ -64,67 +64,70 @@ GPL assures that patents cannot be used to render the program non-free.
|
||||||
|
|
||||||
The precise terms and conditions for copying, distribution and modification follow.
|
The precise terms and conditions for copying, distribution and modification follow.
|
||||||
|
|
||||||
## TERMS AND CONDITIONS
|
TERMS AND CONDITIONS
|
||||||
|
--------------------
|
||||||
|
|
||||||
### 0. Definitions.
|
0. Definitions
|
||||||
|
~~~~~~~~~~~~~~
|
||||||
|
|
||||||
“This License” refers to version 3 of the GNU General Public License.
|
"This License" refers to version 3 of the GNU General Public License.
|
||||||
|
|
||||||
“Copyright” also means copyright-like laws that apply to other kinds of
|
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||||
works, such as semiconductor masks.
|
works, such as semiconductor masks.
|
||||||
|
|
||||||
“The Program” refers to any copyrightable work licensed under this
|
"The Program" refers to any copyrightable work licensed under this
|
||||||
License. Each licensee is addressed as “you”. “Licensees” and
|
License. Each licensee is addressed as "you". "Licensees" and
|
||||||
“recipients” may be individuals or organizations.
|
"recipients" may be individuals or organizations.
|
||||||
|
|
||||||
To “modify” a work means to copy from or adapt all or part of the work in
|
To "modify" a work means to copy from or adapt all or part of the work in
|
||||||
a fashion requiring copyright permission, other than the making of an exact copy. The
|
a fashion requiring copyright permission, other than the making of an exact copy. The
|
||||||
resulting work is called a “modified version” of the earlier work or a
|
resulting work is called a "modified version" of the earlier work or a
|
||||||
work “based on” the earlier work.
|
work "based on" the earlier work.
|
||||||
|
|
||||||
A “covered work” means either the unmodified Program or a work based on
|
A "covered work" means either the unmodified Program or a work based on
|
||||||
the Program.
|
the Program.
|
||||||
|
|
||||||
To “propagate” a work means to do anything with it that, without
|
To "propagate" a work means to do anything with it that, without
|
||||||
permission, would make you directly or secondarily liable for infringement under
|
permission, would make you directly or secondarily liable for infringement under
|
||||||
applicable copyright law, except executing it on a computer or modifying a private
|
applicable copyright law, except executing it on a computer or modifying a private
|
||||||
copy. Propagation includes copying, distribution (with or without modification),
|
copy. Propagation includes copying, distribution (with or without modification),
|
||||||
making available to the public, and in some countries other activities as well.
|
making available to the public, and in some countries other activities as well.
|
||||||
|
|
||||||
To “convey” a work means any kind of propagation that enables other
|
To "convey" a work means any kind of propagation that enables other
|
||||||
parties to make or receive copies. Mere interaction with a user through a computer
|
parties to make or receive copies. Mere interaction with a user through a computer
|
||||||
network, with no transfer of a copy, is not conveying.
|
network, with no transfer of a copy, is not conveying.
|
||||||
|
|
||||||
An interactive user interface displays “Appropriate Legal Notices” to the
|
An interactive user interface displays "Appropriate Legal Notices" to the
|
||||||
extent that it includes a convenient and prominently visible feature that (1)
|
extent that it includes a convenient and prominently visible feature that **(1)**
|
||||||
displays an appropriate copyright notice, and (2) tells the user that there is no
|
displays an appropriate copyright notice, and **(2)** tells the user that there is no
|
||||||
warranty for the work (except to the extent that warranties are provided), that
|
warranty for the work (except to the extent that warranties are provided), that
|
||||||
licensees may convey the work under this License, and how to view a copy of this
|
licensees may convey the work under this License, and how to view a copy of this
|
||||||
License. If the interface presents a list of user commands or options, such as a
|
License. If the interface presents a list of user commands or options, such as a
|
||||||
menu, a prominent item in the list meets this criterion.
|
menu, a prominent item in the list meets this criterion.
|
||||||
|
|
||||||
### 1. Source Code.
|
1. Source Code
|
||||||
|
~~~~~~~~~~~~~~
|
||||||
|
|
||||||
The “source code” for a work means the preferred form of the work for
|
The "source code" for a work means the preferred form of the work for
|
||||||
making modifications to it. “Object code” means any non-source form of a
|
making modifications to it. "Object code" means any non-source form of a
|
||||||
work.
|
work.
|
||||||
|
|
||||||
A “Standard Interface” means an interface that either is an official
|
A "Standard Interface" means an interface that either is an official
|
||||||
standard defined by a recognized standards body, or, in the case of interfaces
|
standard defined by a recognized standards body, or, in the case of interfaces
|
||||||
specified for a particular programming language, one that is widely used among
|
specified for a particular programming language, one that is widely used among
|
||||||
developers working in that language.
|
developers working in that language.
|
||||||
|
|
||||||
The “System Libraries” of an executable work include anything, other than
|
The "System Libraries" of an executable work include anything, other than
|
||||||
the work as a whole, that (a) is included in the normal form of packaging a Major
|
the work as a whole, that **(a)** is included in the normal form of packaging a Major
|
||||||
Component, but which is not part of that Major Component, and (b) serves only to
|
Component, but which is not part of that Major Component, and **(b)** serves only to
|
||||||
enable use of the work with that Major Component, or to implement a Standard
|
enable use of the work with that Major Component, or to implement a Standard
|
||||||
Interface for which an implementation is available to the public in source code form.
|
Interface for which an implementation is available to the public in source code form.
|
||||||
A “Major Component”, in this context, means a major essential component
|
A "Major Component", in this context, means a major essential component
|
||||||
(kernel, window system, and so on) of the specific operating system (if any) on which
|
(kernel, window system, and so on) of the specific operating system (if any) on which
|
||||||
the executable work runs, or a compiler used to produce the work, or an object code
|
the executable work runs, or a compiler used to produce the work, or an object code
|
||||||
interpreter used to run it.
|
interpreter used to run it.
|
||||||
|
|
||||||
The “Corresponding Source” for a work in object code form means all the
|
The "Corresponding Source" for a work in object code form means all the
|
||||||
source code needed to generate, install, and (for an executable work) run the object
|
source code needed to generate, install, and (for an executable work) run the object
|
||||||
code and to modify the work, including scripts to control those activities. However,
|
code and to modify the work, including scripts to control those activities. However,
|
||||||
it does not include the work's System Libraries, or general-purpose tools or
|
it does not include the work's System Libraries, or general-purpose tools or
|
||||||
|
@ -140,7 +143,8 @@ automatically from other parts of the Corresponding Source.
|
||||||
|
|
||||||
The Corresponding Source for a work in source code form is that same work.
|
The Corresponding Source for a work in source code form is that same work.
|
||||||
|
|
||||||
### 2. Basic Permissions.
|
2. Basic Permissions
|
||||||
|
~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
All rights granted under this License are granted for the term of copyright on the
|
All rights granted under this License are granted for the term of copyright on the
|
||||||
Program, and are irrevocable provided the stated conditions are met. This License
|
Program, and are irrevocable provided the stated conditions are met. This License
|
||||||
|
@ -162,7 +166,8 @@ with you.
|
||||||
Conveying under any other circumstances is permitted solely under the conditions
|
Conveying under any other circumstances is permitted solely under the conditions
|
||||||
stated below. Sublicensing is not allowed; section 10 makes it unnecessary.
|
stated below. Sublicensing is not allowed; section 10 makes it unnecessary.
|
||||||
|
|
||||||
### 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
3. Protecting Users' Legal Rights From Anti-Circumvention Law
|
||||||
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
No covered work shall be deemed part of an effective technological measure under any
|
No covered work shall be deemed part of an effective technological measure under any
|
||||||
applicable law fulfilling obligations under article 11 of the WIPO copyright treaty
|
applicable law fulfilling obligations under article 11 of the WIPO copyright treaty
|
||||||
|
@ -176,7 +181,8 @@ intention to limit operation or modification of the work as a means of enforcing
|
||||||
against the work's users, your or third parties' legal rights to forbid circumvention
|
against the work's users, your or third parties' legal rights to forbid circumvention
|
||||||
of technological measures.
|
of technological measures.
|
||||||
|
|
||||||
### 4. Conveying Verbatim Copies.
|
4. Conveying Verbatim Copies
|
||||||
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
You may convey verbatim copies of the Program's source code as you receive it, in any
|
You may convey verbatim copies of the Program's source code as you receive it, in any
|
||||||
medium, provided that you conspicuously and appropriately publish on each copy an
|
medium, provided that you conspicuously and appropriately publish on each copy an
|
||||||
|
@ -188,88 +194,90 @@ this License along with the Program.
|
||||||
You may charge any price or no price for each copy that you convey, and you may offer
|
You may charge any price or no price for each copy that you convey, and you may offer
|
||||||
support or warranty protection for a fee.
|
support or warranty protection for a fee.
|
||||||
|
|
||||||
### 5. Conveying Modified Source Versions.
|
5. Conveying Modified Source Versions
|
||||||
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
You may convey a work based on the Program, or the modifications to produce it from
|
You may convey a work based on the Program, or the modifications to produce it from
|
||||||
the Program, in the form of source code under the terms of section 4, provided that
|
the Program, in the form of source code under the terms of section 4, provided that
|
||||||
you also meet all of these conditions:
|
you also meet all of these conditions:
|
||||||
|
|
||||||
* **a)** The work must carry prominent notices stating that you modified it, and giving a
|
* **a)** The work must carry prominent notices stating that you modified it, and giving a
|
||||||
relevant date.
|
relevant date.
|
||||||
* **b)** The work must carry prominent notices stating that it is released under this
|
* **b)** The work must carry prominent notices stating that it is released under this
|
||||||
License and any conditions added under section 7. This requirement modifies the
|
License and any conditions added under section 7. This requirement modifies the
|
||||||
requirement in section 4 to “keep intact all notices”.
|
requirement in section 4 to "keep intact all notices".
|
||||||
* **c)** You must license the entire work, as a whole, under this License to anyone who
|
* **c)** You must license the entire work, as a whole, under this License to anyone who
|
||||||
comes into possession of a copy. This License will therefore apply, along with any
|
comes into possession of a copy. This License will therefore apply, along with any
|
||||||
applicable section 7 additional terms, to the whole of the work, and all its parts,
|
applicable section 7 additional terms, to the whole of the work, and all its parts,
|
||||||
regardless of how they are packaged. This License gives no permission to license the
|
regardless of how they are packaged. This License gives no permission to license the
|
||||||
work in any other way, but it does not invalidate such permission if you have
|
work in any other way, but it does not invalidate such permission if you have
|
||||||
separately received it.
|
separately received it.
|
||||||
* **d)** If the work has interactive user interfaces, each must display Appropriate Legal
|
* **d)** If the work has interactive user interfaces, each must display Appropriate Legal
|
||||||
Notices; however, if the Program has interactive interfaces that do not display
|
Notices; however, if the Program has interactive interfaces that do not display
|
||||||
Appropriate Legal Notices, your work need not make them do so.
|
Appropriate Legal Notices, your work need not make them do so.
|
||||||
|
|
||||||
A compilation of a covered work with other separate and independent works, which are
|
A compilation of a covered work with other separate and independent works, which are
|
||||||
not by their nature extensions of the covered work, and which are not combined with
|
not by their nature extensions of the covered work, and which are not combined with
|
||||||
it such as to form a larger program, in or on a volume of a storage or distribution
|
it such as to form a larger program, in or on a volume of a storage or distribution
|
||||||
medium, is called an “aggregate” if the compilation and its resulting
|
medium, is called an "aggregate" if the compilation and its resulting
|
||||||
copyright are not used to limit the access or legal rights of the compilation's users
|
copyright are not used to limit the access or legal rights of the compilation's users
|
||||||
beyond what the individual works permit. Inclusion of a covered work in an aggregate
|
beyond what the individual works permit. Inclusion of a covered work in an aggregate
|
||||||
does not cause this License to apply to the other parts of the aggregate.
|
does not cause this License to apply to the other parts of the aggregate.
|
||||||
|
|
||||||
### 6. Conveying Non-Source Forms.
|
6. Conveying Non-Source Forms
|
||||||
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
You may convey a covered work in object code form under the terms of sections 4 and
|
You may convey a covered work in object code form under the terms of sections 4 and
|
||||||
5, provided that you also convey the machine-readable Corresponding Source under the
|
5, provided that you also convey the machine-readable Corresponding Source under the
|
||||||
terms of this License, in one of these ways:
|
terms of this License, in one of these ways:
|
||||||
|
|
||||||
* **a)** Convey the object code in, or embodied in, a physical product (including a
|
* **a)** Convey the object code in, or embodied in, a physical product (including a
|
||||||
physical distribution medium), accompanied by the Corresponding Source fixed on a
|
physical distribution medium), accompanied by the Corresponding Source fixed on a
|
||||||
durable physical medium customarily used for software interchange.
|
durable physical medium customarily used for software interchange.
|
||||||
* **b)** Convey the object code in, or embodied in, a physical product (including a
|
* **b)** Convey the object code in, or embodied in, a physical product (including a
|
||||||
physical distribution medium), accompanied by a written offer, valid for at least
|
physical distribution medium), accompanied by a written offer, valid for at least
|
||||||
three years and valid for as long as you offer spare parts or customer support for
|
three years and valid for as long as you offer spare parts or customer support for
|
||||||
that product model, to give anyone who possesses the object code either (1) a copy of
|
that product model, to give anyone who possesses the object code either **(1)** a copy of
|
||||||
the Corresponding Source for all the software in the product that is covered by this
|
the Corresponding Source for all the software in the product that is covered by this
|
||||||
License, on a durable physical medium customarily used for software interchange, for
|
License, on a durable physical medium customarily used for software interchange, for
|
||||||
a price no more than your reasonable cost of physically performing this conveying of
|
a price no more than your reasonable cost of physically performing this conveying of
|
||||||
source, or (2) access to copy the Corresponding Source from a network server at no
|
source, or **(2)** access to copy the Corresponding Source from a network server at no
|
||||||
charge.
|
charge.
|
||||||
* **c)** Convey individual copies of the object code with a copy of the written offer to
|
* **c)** Convey individual copies of the object code with a copy of the written offer to
|
||||||
provide the Corresponding Source. This alternative is allowed only occasionally and
|
provide the Corresponding Source. This alternative is allowed only occasionally and
|
||||||
noncommercially, and only if you received the object code with such an offer, in
|
noncommercially, and only if you received the object code with such an offer, in
|
||||||
accord with subsection 6b.
|
accord with subsection 6b.
|
||||||
* **d)** Convey the object code by offering access from a designated place (gratis or for
|
* **d)** Convey the object code by offering access from a designated place (gratis or for
|
||||||
a charge), and offer equivalent access to the Corresponding Source in the same way
|
a charge), and offer equivalent access to the Corresponding Source in the same way
|
||||||
through the same place at no further charge. You need not require recipients to copy
|
through the same place at no further charge. You need not require recipients to copy
|
||||||
the Corresponding Source along with the object code. If the place to copy the object
|
the Corresponding Source along with the object code. If the place to copy the object
|
||||||
code is a network server, the Corresponding Source may be on a different server
|
code is a network server, the Corresponding Source may be on a different server
|
||||||
(operated by you or a third party) that supports equivalent copying facilities,
|
(operated by you or a third party) that supports equivalent copying facilities,
|
||||||
provided you maintain clear directions next to the object code saying where to find
|
provided you maintain clear directions next to the object code saying where to find
|
||||||
the Corresponding Source. Regardless of what server hosts the Corresponding Source,
|
the Corresponding Source. Regardless of what server hosts the Corresponding Source,
|
||||||
you remain obligated to ensure that it is available for as long as needed to satisfy
|
you remain obligated to ensure that it is available for as long as needed to satisfy
|
||||||
these requirements.
|
these requirements.
|
||||||
* **e)** Convey the object code using peer-to-peer transmission, provided you inform
|
* **e)** Convey the object code using peer-to-peer transmission, provided you inform
|
||||||
other peers where the object code and Corresponding Source of the work are being
|
other peers where the object code and Corresponding Source of the work are being
|
||||||
offered to the general public at no charge under subsection 6d.
|
offered to the general public at no charge under subsection 6d.
|
||||||
|
|
||||||
A separable portion of the object code, whose source code is excluded from the
|
A separable portion of the object code, whose source code is excluded from the
|
||||||
Corresponding Source as a System Library, need not be included in conveying the
|
Corresponding Source as a System Library, need not be included in conveying the
|
||||||
object code work.
|
object code work.
|
||||||
|
|
||||||
A “User Product” is either (1) a “consumer product”, which
|
A "User Product" is either **(1)** a "consumer product", which
|
||||||
means any tangible personal property which is normally used for personal, family, or
|
means any tangible personal property which is normally used for personal, family, or
|
||||||
household purposes, or (2) anything designed or sold for incorporation into a
|
household purposes, or **(2)** anything designed or sold for incorporation into a
|
||||||
dwelling. In determining whether a product is a consumer product, doubtful cases
|
dwelling. In determining whether a product is a consumer product, doubtful cases
|
||||||
shall be resolved in favor of coverage. For a particular product received by a
|
shall be resolved in favor of coverage. For a particular product received by a
|
||||||
particular user, “normally used” refers to a typical or common use of
|
particular user, "normally used" refers to a typical or common use of
|
||||||
that class of product, regardless of the status of the particular user or of the way
|
that class of product, regardless of the status of the particular user or of the way
|
||||||
in which the particular user actually uses, or expects or is expected to use, the
|
in which the particular user actually uses, or expects or is expected to use, the
|
||||||
product. A product is a consumer product regardless of whether the product has
|
product. A product is a consumer product regardless of whether the product has
|
||||||
substantial commercial, industrial or non-consumer uses, unless such uses represent
|
substantial commercial, industrial or non-consumer uses, unless such uses represent
|
||||||
the only significant mode of use of the product.
|
the only significant mode of use of the product.
|
||||||
|
|
||||||
“Installation Information” for a User Product means any methods,
|
"Installation Information" for a User Product means any methods,
|
||||||
procedures, authorization keys, or other information required to install and execute
|
procedures, authorization keys, or other information required to install and execute
|
||||||
modified versions of a covered work in that User Product from a modified version of
|
modified versions of a covered work in that User Product from a modified version of
|
||||||
its Corresponding Source. The information must suffice to ensure that the continued
|
its Corresponding Source. The information must suffice to ensure that the continued
|
||||||
|
@ -297,9 +305,10 @@ this section must be in a format that is publicly documented (and with an
|
||||||
implementation available to the public in source code form), and must require no
|
implementation available to the public in source code form), and must require no
|
||||||
special password or key for unpacking, reading or copying.
|
special password or key for unpacking, reading or copying.
|
||||||
|
|
||||||
### 7. Additional Terms.
|
7. Additional Terms
|
||||||
|
~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
“Additional permissions” are terms that supplement the terms of this
|
"Additional permissions" are terms that supplement the terms of this
|
||||||
License by making exceptions from one or more of its conditions. Additional
|
License by making exceptions from one or more of its conditions. Additional
|
||||||
permissions that are applicable to the entire Program shall be treated as though they
|
permissions that are applicable to the entire Program shall be treated as though they
|
||||||
were included in this License, to the extent that they are valid under applicable
|
were included in this License, to the extent that they are valid under applicable
|
||||||
|
@ -318,24 +327,24 @@ covered work, you may (if authorized by the copyright holders of that material)
|
||||||
supplement the terms of this License with terms:
|
supplement the terms of this License with terms:
|
||||||
|
|
||||||
* **a)** Disclaiming warranty or limiting liability differently from the terms of
|
* **a)** Disclaiming warranty or limiting liability differently from the terms of
|
||||||
sections 15 and 16 of this License; or
|
sections 15 and 16 of this License; or
|
||||||
* **b)** Requiring preservation of specified reasonable legal notices or author
|
* **b)** Requiring preservation of specified reasonable legal notices or author
|
||||||
attributions in that material or in the Appropriate Legal Notices displayed by works
|
attributions in that material or in the Appropriate Legal Notices displayed by works
|
||||||
containing it; or
|
containing it; or
|
||||||
* **c)** Prohibiting misrepresentation of the origin of that material, or requiring that
|
* **c)** Prohibiting misrepresentation of the origin of that material, or requiring that
|
||||||
modified versions of such material be marked in reasonable ways as different from the
|
modified versions of such material be marked in reasonable ways as different from the
|
||||||
original version; or
|
original version; or
|
||||||
* **d)** Limiting the use for publicity purposes of names of licensors or authors of the
|
* **d)** Limiting the use for publicity purposes of names of licensors or authors of the
|
||||||
material; or
|
material; or
|
||||||
* **e)** Declining to grant rights under trademark law for use of some trade names,
|
* **e)** Declining to grant rights under trademark law for use of some trade names,
|
||||||
trademarks, or service marks; or
|
trademarks, or service marks; or
|
||||||
* **f)** Requiring indemnification of licensors and authors of that material by anyone
|
* **f)** Requiring indemnification of licensors and authors of that material by anyone
|
||||||
who conveys the material (or modified versions of it) with contractual assumptions of
|
who conveys the material (or modified versions of it) with contractual assumptions of
|
||||||
liability to the recipient, for any liability that these contractual assumptions
|
liability to the recipient, for any liability that these contractual assumptions
|
||||||
directly impose on those licensors and authors.
|
directly impose on those licensors and authors.
|
||||||
|
|
||||||
All other non-permissive additional terms are considered “further
|
All other non-permissive additional terms are considered "further
|
||||||
restrictions” within the meaning of section 10. If the Program as you received
|
restrictions" within the meaning of section 10. If the Program as you received
|
||||||
it, or any part of it, contains a notice stating that it is governed by this License
|
it, or any part of it, contains a notice stating that it is governed by this License
|
||||||
along with a term that is a further restriction, you may remove that term. If a
|
along with a term that is a further restriction, you may remove that term. If a
|
||||||
license document contains a further restriction but permits relicensing or conveying
|
license document contains a further restriction but permits relicensing or conveying
|
||||||
|
@ -351,7 +360,8 @@ Additional terms, permissive or non-permissive, may be stated in the form of a
|
||||||
separately written license, or stated as exceptions; the above requirements apply
|
separately written license, or stated as exceptions; the above requirements apply
|
||||||
either way.
|
either way.
|
||||||
|
|
||||||
### 8. Termination.
|
8. Termination
|
||||||
|
~~~~~~~~~~~~~~
|
||||||
|
|
||||||
You may not propagate or modify a covered work except as expressly provided under
|
You may not propagate or modify a covered work except as expressly provided under
|
||||||
this License. Any attempt otherwise to propagate or modify it is void, and will
|
this License. Any attempt otherwise to propagate or modify it is void, and will
|
||||||
|
@ -359,8 +369,8 @@ automatically terminate your rights under this License (including any patent lic
|
||||||
granted under the third paragraph of section 11).
|
granted under the third paragraph of section 11).
|
||||||
|
|
||||||
However, if you cease all violation of this License, then your license from a
|
However, if you cease all violation of this License, then your license from a
|
||||||
particular copyright holder is reinstated (a) provisionally, unless and until the
|
particular copyright holder is reinstated **(a)** provisionally, unless and until the
|
||||||
copyright holder explicitly and finally terminates your license, and (b) permanently,
|
copyright holder explicitly and finally terminates your license, and **(b)** permanently,
|
||||||
if the copyright holder fails to notify you of the violation by some reasonable means
|
if the copyright holder fails to notify you of the violation by some reasonable means
|
||||||
prior to 60 days after the cessation.
|
prior to 60 days after the cessation.
|
||||||
|
|
||||||
|
@ -375,7 +385,8 @@ parties who have received copies or rights from you under this License. If your
|
||||||
rights have been terminated and not permanently reinstated, you do not qualify to
|
rights have been terminated and not permanently reinstated, you do not qualify to
|
||||||
receive new licenses for the same material under section 10.
|
receive new licenses for the same material under section 10.
|
||||||
|
|
||||||
### 9. Acceptance Not Required for Having Copies.
|
9. Acceptance Not Required for Having Copies
|
||||||
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
You are not required to accept this License in order to receive or run a copy of the
|
You are not required to accept this License in order to receive or run a copy of the
|
||||||
Program. Ancillary propagation of a covered work occurring solely as a consequence of
|
Program. Ancillary propagation of a covered work occurring solely as a consequence of
|
||||||
|
@ -385,14 +396,15 @@ propagate or modify any covered work. These actions infringe copyright if you do
|
||||||
accept this License. Therefore, by modifying or propagating a covered work, you
|
accept this License. Therefore, by modifying or propagating a covered work, you
|
||||||
indicate your acceptance of this License to do so.
|
indicate your acceptance of this License to do so.
|
||||||
|
|
||||||
### 10. Automatic Licensing of Downstream Recipients.
|
10. Automatic Licensing of Downstream Recipients
|
||||||
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
Each time you convey a covered work, the recipient automatically receives a license
|
Each time you convey a covered work, the recipient automatically receives a license
|
||||||
from the original licensors, to run, modify and propagate that work, subject to this
|
from the original licensors, to run, modify and propagate that work, subject to this
|
||||||
License. You are not responsible for enforcing compliance by third parties with this
|
License. You are not responsible for enforcing compliance by third parties with this
|
||||||
License.
|
License.
|
||||||
|
|
||||||
An “entity transaction” is a transaction transferring control of an
|
An "entity transaction" is a transaction transferring control of an
|
||||||
organization, or substantially all assets of one, or subdividing an organization, or
|
organization, or substantially all assets of one, or subdividing an organization, or
|
||||||
merging organizations. If propagation of a covered work results from an entity
|
merging organizations. If propagation of a covered work results from an entity
|
||||||
transaction, each party to that transaction who receives a copy of the work also
|
transaction, each party to that transaction who receives a copy of the work also
|
||||||
|
@ -408,18 +420,19 @@ initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleg
|
||||||
that any patent claim is infringed by making, using, selling, offering for sale, or
|
that any patent claim is infringed by making, using, selling, offering for sale, or
|
||||||
importing the Program or any portion of it.
|
importing the Program or any portion of it.
|
||||||
|
|
||||||
### 11. Patents.
|
11. Patents
|
||||||
|
~~~~~~~~~~~
|
||||||
|
|
||||||
A “contributor” is a copyright holder who authorizes use under this
|
A "contributor" is a copyright holder who authorizes use under this
|
||||||
License of the Program or a work on which the Program is based. The work thus
|
License of the Program or a work on which the Program is based. The work thus
|
||||||
licensed is called the contributor's “contributor version”.
|
licensed is called the contributor's "contributor version".
|
||||||
|
|
||||||
A contributor's “essential patent claims” are all patent claims owned or
|
A contributor's "essential patent claims" are all patent claims owned or
|
||||||
controlled by the contributor, whether already acquired or hereafter acquired, that
|
controlled by the contributor, whether already acquired or hereafter acquired, that
|
||||||
would be infringed by some manner, permitted by this License, of making, using, or
|
would be infringed by some manner, permitted by this License, of making, using, or
|
||||||
selling its contributor version, but do not include claims that would be infringed
|
selling its contributor version, but do not include claims that would be infringed
|
||||||
only as a consequence of further modification of the contributor version. For
|
only as a consequence of further modification of the contributor version. For
|
||||||
purposes of this definition, “control” includes the right to grant patent
|
purposes of this definition, "control" includes the right to grant patent
|
||||||
sublicenses in a manner consistent with the requirements of this License.
|
sublicenses in a manner consistent with the requirements of this License.
|
||||||
|
|
||||||
Each contributor grants you a non-exclusive, worldwide, royalty-free patent license
|
Each contributor grants you a non-exclusive, worldwide, royalty-free patent license
|
||||||
|
@ -427,20 +440,20 @@ under the contributor's essential patent claims, to make, use, sell, offer for s
|
||||||
import and otherwise run, modify and propagate the contents of its contributor
|
import and otherwise run, modify and propagate the contents of its contributor
|
||||||
version.
|
version.
|
||||||
|
|
||||||
In the following three paragraphs, a “patent license” is any express
|
In the following three paragraphs, a "patent license" is any express
|
||||||
agreement or commitment, however denominated, not to enforce a patent (such as an
|
agreement or commitment, however denominated, not to enforce a patent (such as an
|
||||||
express permission to practice a patent or covenant not to sue for patent
|
express permission to practice a patent or covenant not to sue for patent
|
||||||
infringement). To “grant” such a patent license to a party means to make
|
infringement). To "grant" such a patent license to a party means to make
|
||||||
such an agreement or commitment not to enforce a patent against the party.
|
such an agreement or commitment not to enforce a patent against the party.
|
||||||
|
|
||||||
If you convey a covered work, knowingly relying on a patent license, and the
|
If you convey a covered work, knowingly relying on a patent license, and the
|
||||||
Corresponding Source of the work is not available for anyone to copy, free of charge
|
Corresponding Source of the work is not available for anyone to copy, free of charge
|
||||||
and under the terms of this License, through a publicly available network server or
|
and under the terms of this License, through a publicly available network server or
|
||||||
other readily accessible means, then you must either (1) cause the Corresponding
|
other readily accessible means, then you must either **(1)** cause the Corresponding
|
||||||
Source to be so available, or (2) arrange to deprive yourself of the benefit of the
|
Source to be so available, or **(2)** arrange to deprive yourself of the benefit of the
|
||||||
patent license for this particular work, or (3) arrange, in a manner consistent with
|
patent license for this particular work, or **(3)** arrange, in a manner consistent with
|
||||||
the requirements of this License, to extend the patent license to downstream
|
the requirements of this License, to extend the patent license to downstream
|
||||||
recipients. “Knowingly relying” means you have actual knowledge that, but
|
recipients. "Knowingly relying" means you have actual knowledge that, but
|
||||||
for the patent license, your conveying the covered work in a country, or your
|
for the patent license, your conveying the covered work in a country, or your
|
||||||
recipient's use of the covered work in a country, would infringe one or more
|
recipient's use of the covered work in a country, would infringe one or more
|
||||||
identifiable patents in that country that you have reason to believe are valid.
|
identifiable patents in that country that you have reason to believe are valid.
|
||||||
|
@ -452,15 +465,15 @@ propagate, modify or convey a specific copy of the covered work, then the patent
|
||||||
license you grant is automatically extended to all recipients of the covered work and
|
license you grant is automatically extended to all recipients of the covered work and
|
||||||
works based on it.
|
works based on it.
|
||||||
|
|
||||||
A patent license is “discriminatory” if it does not include within the
|
A patent license is "discriminatory" if it does not include within the
|
||||||
scope of its coverage, prohibits the exercise of, or is conditioned on the
|
scope of its coverage, prohibits the exercise of, or is conditioned on the
|
||||||
non-exercise of one or more of the rights that are specifically granted under this
|
non-exercise of one or more of the rights that are specifically granted under this
|
||||||
License. You may not convey a covered work if you are a party to an arrangement with
|
License. You may not convey a covered work if you are a party to an arrangement with
|
||||||
a third party that is in the business of distributing software, under which you make
|
a third party that is in the business of distributing software, under which you make
|
||||||
payment to the third party based on the extent of your activity of conveying the
|
payment to the third party based on the extent of your activity of conveying the
|
||||||
work, and under which the third party grants, to any of the parties who would receive
|
work, and under which the third party grants, to any of the parties who would receive
|
||||||
the covered work from you, a discriminatory patent license (a) in connection with
|
the covered work from you, a discriminatory patent license **(a)** in connection with
|
||||||
copies of the covered work conveyed by you (or copies made from those copies), or (b)
|
copies of the covered work conveyed by you (or copies made from those copies), or **(b)**
|
||||||
primarily for and in connection with specific products or compilations that contain
|
primarily for and in connection with specific products or compilations that contain
|
||||||
the covered work, unless you entered into that arrangement, or that patent license
|
the covered work, unless you entered into that arrangement, or that patent license
|
||||||
was granted, prior to 28 March 2007.
|
was granted, prior to 28 March 2007.
|
||||||
|
@ -469,7 +482,8 @@ Nothing in this License shall be construed as excluding or limiting any implied
|
||||||
license or other defenses to infringement that may otherwise be available to you
|
license or other defenses to infringement that may otherwise be available to you
|
||||||
under applicable patent law.
|
under applicable patent law.
|
||||||
|
|
||||||
### 12. No Surrender of Others' Freedom.
|
12. No Surrender of Others' Freedom
|
||||||
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
If conditions are imposed on you (whether by court order, agreement or otherwise)
|
If conditions are imposed on you (whether by court order, agreement or otherwise)
|
||||||
that contradict the conditions of this License, they do not excuse you from the
|
that contradict the conditions of this License, they do not excuse you from the
|
||||||
|
@ -480,7 +494,8 @@ agree to terms that obligate you to collect a royalty for further conveying from
|
||||||
those to whom you convey the Program, the only way you could satisfy both those terms
|
those to whom you convey the Program, the only way you could satisfy both those terms
|
||||||
and this License would be to refrain entirely from conveying the Program.
|
and this License would be to refrain entirely from conveying the Program.
|
||||||
|
|
||||||
### 13. Use with the GNU Affero General Public License.
|
13. Use with the GNU Affero General Public License
|
||||||
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
Notwithstanding any other provision of this License, you have permission to link or
|
Notwithstanding any other provision of this License, you have permission to link or
|
||||||
combine any covered work with a work licensed under version 3 of the GNU Affero
|
combine any covered work with a work licensed under version 3 of the GNU Affero
|
||||||
|
@ -489,15 +504,16 @@ The terms of this License will continue to apply to the part which is the covere
|
||||||
work, but the special requirements of the GNU Affero General Public License, section
|
work, but the special requirements of the GNU Affero General Public License, section
|
||||||
13, concerning interaction through a network will apply to the combination as such.
|
13, concerning interaction through a network will apply to the combination as such.
|
||||||
|
|
||||||
### 14. Revised Versions of this License.
|
14. Revised Versions of this License
|
||||||
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
The Free Software Foundation may publish revised and/or new versions of the GNU
|
The Free Software Foundation may publish revised and/or new versions of the GNU
|
||||||
General Public License from time to time. Such new versions will be similar in spirit
|
General Public License from time to time. Such new versions will be similar in spirit
|
||||||
to the present version, but may differ in detail to address new problems or concerns.
|
to the present version, but may differ in detail to address new problems or concerns.
|
||||||
|
|
||||||
Each version is given a distinguishing version number. If the Program specifies that
|
Each version is given a distinguishing version number. If the Program specifies that
|
||||||
a certain numbered version of the GNU General Public License “or any later
|
a certain numbered version of the GNU General Public License "or any later
|
||||||
version” applies to it, you have the option of following the terms and
|
version" applies to it, you have the option of following the terms and
|
||||||
conditions either of that numbered version or of any later version published by the
|
conditions either of that numbered version or of any later version published by the
|
||||||
Free Software Foundation. If the Program does not specify a version number of the GNU
|
Free Software Foundation. If the Program does not specify a version number of the GNU
|
||||||
General Public License, you may choose any version ever published by the Free
|
General Public License, you may choose any version ever published by the Free
|
||||||
|
@ -511,17 +527,19 @@ Later license versions may give you additional or different permissions. However
|
||||||
additional obligations are imposed on any author or copyright holder as a result of
|
additional obligations are imposed on any author or copyright holder as a result of
|
||||||
your choosing to follow a later version.
|
your choosing to follow a later version.
|
||||||
|
|
||||||
### 15. Disclaimer of Warranty.
|
15. Disclaimer of Warranty
|
||||||
|
~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
|
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
|
||||||
EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
||||||
PROVIDE THE PROGRAM “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER
|
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER
|
||||||
EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||||
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE
|
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE
|
||||||
QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE
|
QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE
|
||||||
DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||||
|
|
||||||
### 16. Limitation of Liability.
|
16. Limitation of Liability
|
||||||
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY
|
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY
|
||||||
COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS
|
COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS
|
||||||
|
@ -532,7 +550,8 @@ OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERA
|
||||||
WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
||||||
POSSIBILITY OF SUCH DAMAGES.
|
POSSIBILITY OF SUCH DAMAGES.
|
||||||
|
|
||||||
### 17. Interpretation of Sections 15 and 16.
|
17. Interpretation of Sections 15 and 16
|
||||||
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
If the disclaimer of warranty and limitation of liability provided above cannot be
|
If the disclaimer of warranty and limitation of liability provided above cannot be
|
||||||
given local legal effect according to their terms, reviewing courts shall apply local
|
given local legal effect according to their terms, reviewing courts shall apply local
|
||||||
|
@ -540,9 +559,10 @@ law that most closely approximates an absolute waiver of all civil liability in
|
||||||
connection with the Program, unless a warranty or assumption of liability accompanies
|
connection with the Program, unless a warranty or assumption of liability accompanies
|
||||||
a copy of the Program in return for a fee.
|
a copy of the Program in return for a fee.
|
||||||
|
|
||||||
END OF TERMS AND CONDITIONS
|
*END OF TERMS AND CONDITIONS*
|
||||||
|
|
||||||
## How to Apply These Terms to Your New Programs
|
How to Apply These Terms to Your New Programs
|
||||||
|
---------------------------------------------
|
||||||
|
|
||||||
If you develop a new program, and you want it to be of the greatest possible use to
|
If you develop a new program, and you want it to be of the greatest possible use to
|
||||||
the public, the best way to achieve this is to make it free software which everyone
|
the public, the best way to achieve this is to make it free software which everyone
|
||||||
|
@ -550,7 +570,7 @@ can redistribute and change under these terms.
|
||||||
|
|
||||||
To do so, attach the following notices to the program. It is safest to attach them
|
To do so, attach the following notices to the program. It is safest to attach them
|
||||||
to the start of each source file to most effectively state the exclusion of warranty;
|
to the start of each source file to most effectively state the exclusion of warranty;
|
||||||
and each file should have at least the “copyright” line and a pointer to
|
and each file should have at least the "copyright" line and a pointer to
|
||||||
where the full notice is found.
|
where the full notice is found.
|
||||||
|
|
||||||
<one line to give the program's name and a brief idea of what it does.>
|
<one line to give the program's name and a brief idea of what it does.>
|
||||||
|
@ -579,18 +599,18 @@ when it starts in an interactive mode:
|
||||||
This is free software, and you are welcome to redistribute it
|
This is free software, and you are welcome to redistribute it
|
||||||
under certain conditions; type 'show c' for details.
|
under certain conditions; type 'show c' for details.
|
||||||
|
|
||||||
The hypothetical commands 'show w' and 'show c' should show the appropriate parts of
|
The hypothetical commands `show w` and `show c` should show the appropriate parts of
|
||||||
the General Public License. Of course, your program's commands might be different;
|
the General Public License. Of course, your program's commands might be different;
|
||||||
for a GUI interface, you would use an “about box”.
|
for a GUI interface, you would use an "about box".
|
||||||
|
|
||||||
You should also get your employer (if you work as a programmer) or school, if any, to
|
You should also get your employer (if you work as a programmer) or school, if any, to
|
||||||
sign a “copyright disclaimer” for the program, if necessary. For more
|
sign a "copyright disclaimer" for the program, if necessary. For more
|
||||||
information on this, and how to apply and follow the GNU GPL, see
|
information on this, and how to apply and follow the GNU GPL, see
|
||||||
<<http://www.gnu.org/licenses/>>.
|
<http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
The GNU General Public License does not permit incorporating your program into
|
The GNU General Public License does not permit incorporating your program into
|
||||||
proprietary programs. If your program is a subroutine library, you may consider it
|
proprietary programs. If your program is a subroutine library, you may consider it
|
||||||
more useful to permit linking proprietary applications with the library. If this is
|
more useful to permit linking proprietary applications with the library. If this is
|
||||||
what you want to do, use the GNU Lesser General Public License instead of this
|
what you want to do, use the GNU Lesser General Public License instead of this
|
||||||
License. But first, please read
|
License. But first, please read
|
||||||
<<http://www.gnu.org/philosophy/why-not-lgpl.html>>.
|
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
|
83
INSTALL.md
83
INSTALL.md
|
@ -1,83 +0,0 @@
|
||||||
# Installation and configuration guide
|
|
||||||
|
|
||||||
I assume that you have a basic understanding of XMPP and the the concept of a XMPP component / transport. If not, please get a book about Jabber or read the standards.
|
|
||||||
|
|
||||||
transWhat is a XMPP transport. By this means it extends the functionallity of an existing XMPP server. It acts as a gateway between the XMPP and WhatsApp networks. It receives WhatsApp messages and forwards them to your XMPP client (and vice-versa).
|
|
||||||
|
|
||||||
The implementation of transWhat is based on the [Spectrum 2](http://www.spectrum.im) framework and the [Yowsup 2](https://github.com/tgalal/yowsup) library to interface with WhatsApp.
|
|
||||||
|
|
||||||
The following chart summarizes the involved components and the protocols they use to communicate.
|
|
||||||
|
|
||||||
## Prosody
|
|
||||||
|
|
||||||
### Installation
|
|
||||||
|
|
||||||
I will not cover the installation of Prosody in this guide. Please look for some other tutorials on how to do that.
|
|
||||||
|
|
||||||
### Configuration
|
|
||||||
|
|
||||||
The only important thing for us is the configuration of a XMPP component (Spectrum 2 in our case).
|
|
||||||
See http://prosody.im/doc/components.
|
|
||||||
|
|
||||||
Append the following at the end of `/etc/prosody/prosody.cfg.lua`
|
|
||||||
|
|
||||||
Component "whatsapp.0l.de"
|
|
||||||
component_secret = "whatsappsucks"
|
|
||||||
component_ports = { 5221 }
|
|
||||||
component_interface = "127.0.0.1"
|
|
||||||
|
|
||||||
## Spectrum 2
|
|
||||||
|
|
||||||
#### Installation
|
|
||||||
|
|
||||||
Manual compile latest version from [Github](https://github.com/hanzz/libtransport).
|
|
||||||
You can use the following guide: http://spectrum.im/documentation/installation/from_source_code.html.
|
|
||||||
|
|
||||||
#### Configuration
|
|
||||||
|
|
||||||
Create a new file `/etc/spectrum2/transports/whatsapp.cfg` with the following content:
|
|
||||||
|
|
||||||
[service]
|
|
||||||
user = spectrum
|
|
||||||
group = spectrum
|
|
||||||
|
|
||||||
jid = whatsapp.0l.de
|
|
||||||
|
|
||||||
server = localhost
|
|
||||||
password = whatsappsucks
|
|
||||||
port = 5221
|
|
||||||
|
|
||||||
backend_host = localhost
|
|
||||||
backend = /location/to/transwhat/transwhat.py
|
|
||||||
|
|
||||||
users_per_backend = 10
|
|
||||||
more_resources = 1
|
|
||||||
|
|
||||||
admin_jid = your@jid.example
|
|
||||||
|
|
||||||
[identity]
|
|
||||||
name = transWhat
|
|
||||||
type = xmpp
|
|
||||||
category = gateway
|
|
||||||
|
|
||||||
[logging]
|
|
||||||
config = /etc/spectrum2/logging.cfg
|
|
||||||
backend_config = /etc/spectrum2/backend-logging.cfg
|
|
||||||
|
|
||||||
[database]
|
|
||||||
type = sqlite3
|
|
||||||
|
|
||||||
## transWhat
|
|
||||||
|
|
||||||
### Installation
|
|
||||||
|
|
||||||
Checkout the latest version of transWhat from GitHub:
|
|
||||||
|
|
||||||
$ git clone git@github.com:stv0g/transwhat.git
|
|
||||||
|
|
||||||
Install required dependencies:
|
|
||||||
|
|
||||||
$ pip install --pre e4u protobuf python-dateutil yowsup2
|
|
||||||
|
|
||||||
- **e4u**: is a simple emoji4unicode python bindings
|
|
||||||
- [**yowsup**](https://github.com/tgalal/yowsup): is a python library that enables you build application which use WhatsApp service.
|
|
116
INSTALL.rst
Normal file
116
INSTALL.rst
Normal file
|
@ -0,0 +1,116 @@
|
||||||
|
Installation and configuration guide
|
||||||
|
====================================
|
||||||
|
|
||||||
|
I assume that you have a basic understanding of XMPP and the the concept
|
||||||
|
of a XMPP component / transport. If not, please get a book about Jabber
|
||||||
|
or read the standards.
|
||||||
|
|
||||||
|
transWhat is a XMPP transport. By this means it extends the
|
||||||
|
functionallity of an existing XMPP server. It acts as a gateway between
|
||||||
|
the XMPP and WhatsApp networks. It receives WhatsApp messages and
|
||||||
|
forwards them to your XMPP client (and vice-versa).
|
||||||
|
|
||||||
|
The implementation of transWhat is based on the `Spectrum 2`_ framework
|
||||||
|
and the `Yowsup 2`_ library to interface with WhatsApp.
|
||||||
|
|
||||||
|
The following chart summarizes the involved components and the protocols
|
||||||
|
they use to communicate.
|
||||||
|
|
||||||
|
Prosody
|
||||||
|
-------
|
||||||
|
|
||||||
|
Installation
|
||||||
|
~~~~~~~~~~~~
|
||||||
|
|
||||||
|
I will not cover the installation of Prosody in this guide. Please look
|
||||||
|
for some other tutorials on how to do that.
|
||||||
|
|
||||||
|
Configuration
|
||||||
|
~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
The only important thing for us is the configuration of a XMPP component
|
||||||
|
(Spectrum 2 in our case). See http://prosody.im/doc/components.
|
||||||
|
|
||||||
|
Append the following at the end of ``/etc/prosody/prosody.cfg.lua``
|
||||||
|
|
||||||
|
::
|
||||||
|
|
||||||
|
Component "whatsapp.0l.de"
|
||||||
|
component_secret = "whatsappsucks"
|
||||||
|
component_ports = { 5221 }
|
||||||
|
component_interface = "127.0.0.1"
|
||||||
|
|
||||||
|
Spectrum 2
|
||||||
|
----------
|
||||||
|
|
||||||
|
Installation
|
||||||
|
^^^^^^^^^^^^
|
||||||
|
|
||||||
|
Manual compile latest version from `Github`_. You can use the following
|
||||||
|
guide:
|
||||||
|
http://spectrum.im/documentation/installation/from\_source\_code.html.
|
||||||
|
|
||||||
|
Configuration
|
||||||
|
^^^^^^^^^^^^^
|
||||||
|
|
||||||
|
Create a new file ``/etc/spectrum2/transports/whatsapp.cfg`` with the
|
||||||
|
following content:
|
||||||
|
|
||||||
|
::
|
||||||
|
|
||||||
|
[service]
|
||||||
|
user = spectrum
|
||||||
|
group = spectrum
|
||||||
|
|
||||||
|
jid = whatsapp.0l.de
|
||||||
|
|
||||||
|
server = localhost
|
||||||
|
password = whatsappsucks
|
||||||
|
port = 5221
|
||||||
|
|
||||||
|
backend_host = localhost
|
||||||
|
backend = /location/to/transwhat/transwhat.py
|
||||||
|
|
||||||
|
users_per_backend = 10
|
||||||
|
more_resources = 1
|
||||||
|
|
||||||
|
admin_jid = your@jid.example
|
||||||
|
|
||||||
|
[identity]
|
||||||
|
name = transWhat
|
||||||
|
type = xmpp
|
||||||
|
category = gateway
|
||||||
|
|
||||||
|
[logging]
|
||||||
|
config = /etc/spectrum2/logging.cfg
|
||||||
|
backend_config = /etc/spectrum2/backend-logging.cfg
|
||||||
|
|
||||||
|
[database]
|
||||||
|
type = sqlite3
|
||||||
|
|
||||||
|
transWhat
|
||||||
|
---------
|
||||||
|
|
||||||
|
Installation
|
||||||
|
~~~~~~~~~~~~
|
||||||
|
|
||||||
|
Checkout the latest version of transWhat from GitHub:
|
||||||
|
|
||||||
|
::
|
||||||
|
|
||||||
|
$ git clone git@github.com:stv0g/transwhat.git
|
||||||
|
|
||||||
|
Install required dependencies:
|
||||||
|
|
||||||
|
::
|
||||||
|
|
||||||
|
$ pip install --pre e4u protobuf python-dateutil yowsup2
|
||||||
|
|
||||||
|
- **e4u**: is a simple emoji4unicode python bindings
|
||||||
|
- `**yowsup**`_: is a python library that enables you build application
|
||||||
|
which use WhatsApp service.
|
||||||
|
|
||||||
|
.. _Spectrum 2: http://www.spectrum.im
|
||||||
|
.. _Yowsup 2: https://github.com/tgalal/yowsup
|
||||||
|
.. _Github: https://github.com/hanzz/libtransport
|
||||||
|
.. _**yowsup**: https://github.com/tgalal/yowsup
|
45
README.md
45
README.md
|
@ -1,45 +0,0 @@
|
||||||
# transWhat
|
|
||||||
|
|
||||||
transWhat is a WhatsApp XMPP Gateway based on [Spectrum 2](http://www.spectrum.im) and [Yowsup 2](https://github.com/tgalal/yowsup).
|
|
||||||
|
|
||||||
#### Branches
|
|
||||||
|
|
||||||
- [yowsup-1](http://github.com/stv0g/transwhat/tree/yowsup-1) My original version which is based on @tgalal first Yowsup version (**deprecated** and broken).
|
|
||||||
- [yowsup-2](http://github.com/stv0g/transwhat/tree/yowsup-2) Major rewrite from @moyamo for @tgalal's new Yowsup 2 (**recommended**).
|
|
||||||
|
|
||||||
For production, please use the `yowsup-2` branch.
|
|
||||||
|
|
||||||
Please file bugreports against the `develop` branch.
|
|
||||||
|
|
||||||
## [Installation](INSTALL.md)
|
|
||||||
## [Usage](USAGE.md)
|
|
||||||
|
|
||||||
## Features
|
|
||||||
|
|
||||||
* Typing notifications
|
|
||||||
* Receive images, audio & video
|
|
||||||
* Set/get online status
|
|
||||||
* Set status message
|
|
||||||
* Groupchats
|
|
||||||
|
|
||||||
## Contributors
|
|
||||||
|
|
||||||
Pull requests, bug reports etc. are welcome. Help us to provide a open implementation of the WhatsApp protocol.
|
|
||||||
|
|
||||||
The following persons have contributed major parts of this code:
|
|
||||||
|
|
||||||
- @stv0g (Steffen Vogel): Idea and initial implementation based on Yowsup 1
|
|
||||||
- @moyamo (Mohammed Yaseen Mowzer): Port to Yowsup 2
|
|
||||||
- @DaZZZl: Improvements to group chats, media & message receipts
|
|
||||||
|
|
||||||
## [License](COPYING.md)
|
|
||||||
|
|
||||||
transWhat is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
|
||||||
|
|
||||||
Foobar is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
|
||||||
|
|
||||||
## Links
|
|
||||||
|
|
||||||
An *outdated* project wiki is available [here](https://dev.0l.de/wiki/projects/transwhat/).
|
|
||||||
|
|
||||||
An *outdated* writeup of this project is also availabe at my [blog](http://www.steffenvogel.de/2013/06/29/transwhat/).
|
|
74
README.rst
74
README.rst
|
@ -1,46 +1,62 @@
|
||||||
# transWhat
|
transWhat
|
||||||
|
=========
|
||||||
|
|
||||||
transWhat is a WhatsApp XMPP Gateway based on [Spectrum 2](http://www.spectrum.im) and [Yowsup 2](https://github.com/tgalal/yowsup).
|
transWhat is a WhatsApp XMPP Gateway based on `Spectrum 2`_ and `Yowsup 2`_.
|
||||||
|
|
||||||
#### Branches
|
Branches
|
||||||
|
^^^^^^^^
|
||||||
|
|
||||||
- [yowsup-1](http://github.com/stv0g/transwhat/tree/yowsup-1) My original version which is based on @tgalal first Yowsup version (**deprecated** and broken).
|
- `yowsup-1`_ My original version which is based on @tgalal first
|
||||||
- [yowsup-2](http://github.com/stv0g/transwhat/tree/yowsup-2) Major rewrite from @moyamo for @tgalal's new Yowsup 2 (**recommended**).
|
Yowsup version (**deprecated** and broken).
|
||||||
- [develop](http://github.com/stv0g/transwhat/tree/develop) A develop branch with the latest fixes and improvements. This branch is based on `yowsup-2`.
|
- `yowsup-2`_ Major rewrite from @moyamo for @tgalal’s new Yowsup 2
|
||||||
|
(**recommended**).
|
||||||
|
|
||||||
For production, please use the `yowsup-2` branch.
|
For production, please use the ``yowsup-2`` branch.
|
||||||
|
|
||||||
Please file bugreports against the `develop` branch.
|
`Installation`_
|
||||||
|
---------------
|
||||||
|
|
||||||
## [Installation](INSTALL.md)
|
`Usage`_
|
||||||
## [Usage](USAGE.md)
|
--------
|
||||||
|
|
||||||
## Features
|
`License`_
|
||||||
|
----------
|
||||||
|
|
||||||
* Typing notifications
|
Features
|
||||||
* Receive images, audio & video
|
--------
|
||||||
* Set/get online status
|
|
||||||
* Set status message
|
|
||||||
* Groupchats
|
|
||||||
|
|
||||||
## Contributors
|
- Typing notifications
|
||||||
|
- Receive images, audio & video
|
||||||
|
- Set/get online status
|
||||||
|
- Set status message
|
||||||
|
- Groupchats
|
||||||
|
|
||||||
Pull requests, bug reports etc. are welcome. Help us to provide a open implementation of the WhatsApp protocol.
|
Contributors
|
||||||
|
------------
|
||||||
|
|
||||||
|
Pull requests, bug reports etc. are welcome. Help us to provide a open
|
||||||
|
implementation of the WhatsApp protocol.
|
||||||
|
|
||||||
The following persons have contributed major parts of this code:
|
The following persons have contributed major parts of this code:
|
||||||
|
|
||||||
- @stv0g (Steffen Vogel): Idea and initial implementation based on Yowsup 1
|
- @stv0g (Steffen Vogel): Idea and initial implementation based on
|
||||||
- @moyamo (Mohammed Yaseen Mowzer): Port to Yowsup 2
|
Yowsup 1
|
||||||
- @DaZZZl: Improvements to group chats, media & message receipts
|
- @moyamo (Mohammed Yaseen Mowzer): Port to Yowsup 2
|
||||||
|
- @DaZZZl: Improvements to group chats, media & message receipts
|
||||||
|
|
||||||
## [License](COPYING.md)
|
Links
|
||||||
|
-----
|
||||||
|
|
||||||
transWhat is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
An *outdated* project wiki is available `here`_.
|
||||||
|
|
||||||
Foobar is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
An *outdated* writeup of this project is also availabe at my `blog`_.
|
||||||
|
|
||||||
## Links
|
.. _Spectrum 2: http://www.spectrum.im
|
||||||
|
.. _Yowsup 2: https://github.com/tgalal/yowsup
|
||||||
An *outdated* project wiki is available [here](https://dev.0l.de/wiki/projects/transwhat/).
|
.. _yowsup-1: http://github.com/stv0g/transwhat/tree/yowsup-1
|
||||||
|
.. _yowsup-2: http://github.com/stv0g/transwhat/tree/yowsup-2
|
||||||
An *outdated* writeup of this project is also availabe at my [blog](http://www.steffenvogel.de/2013/06/29/transwhat/).
|
.. _Installation: INSTALL.rst
|
||||||
|
.. _Usage: USAGE.rst
|
||||||
|
.. _License: COPYING.rst
|
||||||
|
.. _here: https://dev.0l.de/wiki/projects/transwhat/
|
||||||
|
.. _blog: http://www.steffenvogel.de/2013/06/29/transwhat/
|
||||||
|
|
72
USAGE.md
72
USAGE.md
|
@ -1,72 +0,0 @@
|
||||||
# Usage
|
|
||||||
|
|
||||||
## Starting/stopping service
|
|
||||||
|
|
||||||
The `transwhat.py` script gets started as a backend by Spectrum. You should not try to run it manually.
|
|
||||||
To simplify the management of multiple transports (WhatsApp, IRC, Facebook, libpurple, ...), Spectrum provides a little helper tool called `spectrum_manager`:
|
|
||||||
|
|
||||||
To start transwhat run
|
|
||||||
|
|
||||||
```
|
|
||||||
spectrum_manager start whatsapp
|
|
||||||
|
|
||||||
```
|
|
||||||
|
|
||||||
To stop transwhat run
|
|
||||||
|
|
||||||
```
|
|
||||||
spectrum_manager stop whatsapp
|
|
||||||
```
|
|
||||||
|
|
||||||
## Bot
|
|
||||||
|
|
||||||
You might want to talk to bot if you're feeling lonely ;-P
|
|
||||||
|
|
||||||
The bot is one of the contacts every user has in its contact list. It offers you a simple way to interact with the server:
|
|
||||||
|
|
||||||
| **Command** | **Description** |
|
|
||||||
| ------------ | --------------- |
|
|
||||||
| `\help` | show this message |
|
|
||||||
| `\prune` | clear your buddylist |
|
|
||||||
| `\lastseen` | request last online timestamp from buddy |
|
|
||||||
| `\leave` | permanently leave group chat |
|
|
||||||
| `\groups` | print all attended groups |
|
|
||||||
| `\getgroups` | get current groups from WA |
|
|
||||||
|
|
||||||
<note tip>All commands start with a **back**slash!</note>
|
|
||||||
|
|
||||||
## Login
|
|
||||||
|
|
||||||
To login to the transWhat, you should use the service discovery option in your XMPP client.
|
|
||||||
|
|
||||||
When asked about the login credentials, enter your data as described below:
|
|
||||||
|
|
||||||
| **Setting** | **Value** | **Example** |
|
|
||||||
| ----------- | ------------------------- | --------------- |
|
|
||||||
| User | CountryCode + PhoneNumber | 4917634911387 |
|
|
||||||
| Password | WhatsApp password | [*Base64 string*](https://github.com/davidgfnet/whatsapp-purple#how-do-i-get-my-user-name-and-password)|
|
|
||||||
|
|
||||||
|
|
||||||
### Buddies
|
|
||||||
|
|
||||||
WhatsApp does not store your contacts on their servers. Thus you need to import your contacts manually with your XMPP Client or use [[.:bot|our bot]] to Import your contacts from Google (preferred).
|
|
||||||
|
|
||||||
(In Pidgin: Menu => Buddys => Add Buddy)
|
|
||||||
|
|
||||||
Just use the same JID format as for your login:
|
|
||||||
|
|
||||||
CountryCode + PhoneNumber + "@whatsapp.example.org"
|
|
||||||
|
|
||||||
### Groups
|
|
||||||
|
|
||||||
To chat with groups you need to add them manually to your XMPP client.
|
|
||||||
|
|
||||||
To get a list of your WhatsApp groups, you can use the Auto Discovery functionality of your XMPP client.
|
|
||||||
|
|
||||||
(In Pidgin: Menu => Buddys => Join Chat => RoomList)
|
|
||||||
|
|
||||||
### Smileys / Emojis
|
|
||||||
|
|
||||||
To be able to see smileys, you will need an [Unicode Emoji font](https://github.com/stv0g/unicode-emoji/raw/master/symbola/Symbola.ttf).
|
|
||||||
|
|
||||||
When using Pidgin, you might want to check out my [stv0g's Unicode emoji theme](https://github.com/stv0g/unicode-emoji)].
|
|
108
USAGE.rst
Normal file
108
USAGE.rst
Normal file
|
@ -0,0 +1,108 @@
|
||||||
|
Usage
|
||||||
|
=====
|
||||||
|
|
||||||
|
Starting/stopping service
|
||||||
|
-------------------------
|
||||||
|
|
||||||
|
The ``transwhat.py`` script gets started as a backend by Spectrum. You
|
||||||
|
should not try to run it manually. To simplify the management of
|
||||||
|
multiple transports (WhatsApp, IRC, Facebook, libpurple, …), Spectrum
|
||||||
|
provides a little helper tool called ``spectrum_manager``:
|
||||||
|
|
||||||
|
To start transwhat run
|
||||||
|
|
||||||
|
::
|
||||||
|
|
||||||
|
spectrum_manager start whatsapp
|
||||||
|
|
||||||
|
To stop transwhat run
|
||||||
|
|
||||||
|
::
|
||||||
|
|
||||||
|
spectrum_manager stop whatsapp
|
||||||
|
|
||||||
|
Bot
|
||||||
|
---
|
||||||
|
|
||||||
|
You might want to talk to bot if you’re feeling lonely ;-P
|
||||||
|
|
||||||
|
The bot is one of the contacts every user has in its contact list. It
|
||||||
|
offers you a simple way to interact with the server:
|
||||||
|
|
||||||
|
+------------------+--------------------------------------------+
|
||||||
|
| **Command** | **Description** |
|
||||||
|
+==================+============================================+
|
||||||
|
| ``\help`` | show this message |
|
||||||
|
+------------------+--------------------------------------------+
|
||||||
|
| ``\prune`` | clear your buddylist |
|
||||||
|
+------------------+--------------------------------------------+
|
||||||
|
| ``\lastseen`` | request last online timestamp from buddy |
|
||||||
|
+------------------+--------------------------------------------+
|
||||||
|
| ``\leave`` | permanently leave group chat |
|
||||||
|
+------------------+--------------------------------------------+
|
||||||
|
| ``\groups`` | print all attended groups |
|
||||||
|
+------------------+--------------------------------------------+
|
||||||
|
| ``\getgroups`` | get current groups from WA |
|
||||||
|
+------------------+--------------------------------------------+
|
||||||
|
|
||||||
|
.. raw:: html
|
||||||
|
|
||||||
|
<note tip>
|
||||||
|
|
||||||
|
All commands start with a **back**\ slash!
|
||||||
|
|
||||||
|
.. raw:: html
|
||||||
|
|
||||||
|
</note>
|
||||||
|
|
||||||
|
Login
|
||||||
|
-----
|
||||||
|
|
||||||
|
To login to the transWhat, you should use the service discovery option
|
||||||
|
in your XMPP client.
|
||||||
|
|
||||||
|
When asked about the login credentials, enter your data as described
|
||||||
|
below:
|
||||||
|
|
||||||
|
+---------------+-----------------------------+----------------------+
|
||||||
|
| **Setting** | **Value** | **Example** |
|
||||||
|
+===============+=============================+======================+
|
||||||
|
| User | CountryCode + PhoneNumber | 4917634911387 |
|
||||||
|
+---------------+-----------------------------+----------------------+
|
||||||
|
| Password | WhatsApp password | `*Base64 string*`_ |
|
||||||
|
+---------------+-----------------------------+----------------------+
|
||||||
|
|
||||||
|
Buddies
|
||||||
|
~~~~~~~
|
||||||
|
|
||||||
|
WhatsApp does not store your contacts on their servers. Thus you need to
|
||||||
|
import your contacts manually with your XMPP Client or use [[.:bot\|our
|
||||||
|
bot]] to Import your contacts from Google (preferred).
|
||||||
|
|
||||||
|
(In Pidgin: Menu => Buddys => Add Buddy)
|
||||||
|
|
||||||
|
Just use the same JID format as for your login:
|
||||||
|
|
||||||
|
CountryCode + PhoneNumber + “@whatsapp.example.org”
|
||||||
|
|
||||||
|
Groups
|
||||||
|
~~~~~~
|
||||||
|
|
||||||
|
To chat with groups you need to add them manually to your XMPP client.
|
||||||
|
|
||||||
|
To get a list of your WhatsApp groups, you can use the Auto Discovery
|
||||||
|
functionality of your XMPP client.
|
||||||
|
|
||||||
|
(In Pidgin: Menu => Buddys => Join Chat => RoomList)
|
||||||
|
|
||||||
|
Smileys / Emojis
|
||||||
|
~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
To be able to see smileys, you will need an `Unicode Emoji font`_.
|
||||||
|
|
||||||
|
When using Pidgin, you might want to check out my `stv0g’s Unicode emoji
|
||||||
|
theme`_].
|
||||||
|
|
||||||
|
.. _*Base64 string*: https://github.com/davidgfnet/whatsapp-purple#how-do-i-get-my-user-name-and-password
|
||||||
|
.. _Unicode Emoji font: https://github.com/stv0g/unicode-emoji/raw/master/symbola/Symbola.ttf
|
||||||
|
.. _stv0g’s Unicode emoji theme: https://github.com/stv0g/unicode-emoji
|
Loading…
Reference in a new issue