.. :license:

Gramex license
==============

Copyright (c) 2015, Gramener. All rights reserved.

Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:

- Redistributions of source code must retain the above copyright notice, this
  list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this
  list of conditions and the following disclaimer in the documentation and/or
  other materials provided with the distribution.
- Neither the name of Gramex or Gramener nor the names of its contributors may be
  used to endorse or promote products derived from this software without specific
  prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Dependencies
------------

Gramex contains open source software packages from third parties. These are
available on an "as is" basis and subject to their individual license agreements.
The definitive list is in the `requirements`_ document. It may be updated every
release.

All applications are licensed under one of the following:

- `PSF`_ license (Python Software Foundation)
- `MIT`_ license
- `BSD`_ license
- `LGPL`_ license
- `Apache`_ software license
- Gramener license

Here are the associated licenses of the key packages:

- `Python`_: `PSF`_ license
- `Anaconda`_: `BSD`_ license
- `tornado`_: `Apache`_ software license
- `pandas`_: `BSD`_ license

Here are the licenses of other dependencies:

- `setuptools`_: `MIT`_ license
- `six`_: `MIT`_ license
- `pathlib`_: `MIT`_ license
- `orderedattrdict`_: `MIT`_ license
- `watchdog`_: `Apache`_ software license
- `pyyaml`_: `MIT`_ license
- `colorama`_: `BSD`_ license
- `colorlog`_: `MIT`_ license
- `shutilwhich`_: `PSF`_ license
- `passlib`_: `BSD`_ license
- `crontab`_: `LGPL`_ license
- `xmljson`_: `MIT`_ license
- `cachetools`_: `MIT`_ license
- `diskcache`_: `Apache`_ software license
- `futures`_: `PSF`_ license
- `oauthlib`_: `BSD`_ license
- `python pptx`_: MIT license
- `markdown`_: `BSD`_ license
- `pymysql`_: `MIT`_ license
- `ipdb`_: `BSD`_ license
- `textblob`_: `MIT`_ license
- `psycopg2`_: `LGPL`_ license
- `ldap3`_: `LGPL`_ license
- `argh`_: `LGPL`_ license
- `pathtools`_: `MIT`_ license

.. _Python: https://www.python.org/
.. _Anaconda: https://docs.anaconda.com/anaconda/
.. _tornado: https://pypi.python.org/pypi/tornado
.. _pandas: https://pypi.python.org/pypi/pandas

.. _setuptools: https://pypi.python.org/pypi/setuptools
.. _six: https://pypi.python.org/pypi/six
.. _pathlib: https://pypi.python.org/pypi/pathlib
.. _orderedattrdict: https://pypi.python.org/pypi/orderedattrdict
.. _watchdog: https://pypi.python.org/pypi/watchdog
.. _pyyaml: https://pypi.python.org/pypi/pyyaml
.. _colorama: https://pypi.python.org/pypi/colorama
.. _colorlog: https://pypi.python.org/pypi/colorlog
.. _shutilwhich: https://pypi.python.org/pypi/shutilwhich
.. _passlib: https://pypi.python.org/pypi/passlib
.. _crontab: https://pypi.python.org/pypi/crontab
.. _xmljson: https://pypi.python.org/pypi/xmljson
.. _cachetools: https://pypi.python.org/pypi/cachetools
.. _diskcache: https://pypi.python.org/pypi/diskcache
.. _futures: https://pypi.python.org/pypi/futures
.. _oauthlib: https://pypi.python.org/pypi/oauthlib
.. _pptgen: https://pypi.python.org/pypi/pptgen
.. _markdown: https://pypi.python.org/pypi/markdown
.. _pymysql: https://pypi.python.org/pypi/pymysql
.. _ipdb: https://pypi.python.org/pypi/ipdb
.. _textblob: https://pypi.python.org/pypi/textblob
.. _psycopg2: https://pypi.python.org/pypi/psycopg2
.. _ldap3: https://pypi.python.org/pypi/ldap3
.. _argh: https://pypi.python.org/pypi/argh
.. _pathtools: https://pypi.python.org/pypi/pathtools
.. _python pptx: https://github.com/scanny/python-pptx/blob/master/LICENSE
.. _requirements: https://code.gramener.com/s.anand/gramex/tree/master/requirements.txt

Applications built on Gramex may use other libraries. Here are some common
libraries and their licenses.

- `PhantomJS`_: `BSD`_ license
- `nodejs`_: `MIT`_ license
- `bower`_: `MIT`_ license
- `jquery`_: `MIT`_ license
- `lodash`_: `MIT`_ license
- `underscore`_: `MIT`_ license
- `d3`_: `BSD`_ license
- `bootstrap`_: `MIT`_ license
- `nginx`_: `BSD`_ license

.. _PhantomJS: https://github.com/ariya/phantomjs/
.. _nodejs: https://github.com/nodejs/node/
.. _bower: https://www.npmjs.com/package/bower
.. _jquery: https://www.npmjs.com/package/jquery
.. _lodash: https://www.npmjs.com/package/lodash
.. _underscore: https://www.npmjs.com/package/underscore
.. _d3: https://www.npmjs.com/package/d3
.. _bootstrap: https://www.npmjs.com/package/bootstrap
.. _nginx: https://nginx.org/

.. _MIT: https://opensource.org/licenses/MIT
.. _BSD: https://opensource.org/licenses/BSD-3-Clause
.. _LGPL: https://opensource.org/licenses/LGPL-3.0
.. _Apache: https://opensource.org/licenses/Apache-2.0
.. _PSF: https://opensource.org/licenses/Python-2.0
