psycopg2


Namepsycopg2 JSON
Version 2.8.6 PyPI version JSON
download
home_pagehttps://psycopg.org/
Summarypsycopg2 - Python-PostgreSQL Database Adapter
upload_time2020-09-06 22:43:19
maintainerDaniele Varrazzo
docs_urlNone
authorFederico Di Gregorio
requires_python>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*
licenseLGPL with exceptions
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            Psycopg is the most popular PostgreSQL database adapter for the Python
programming language.  Its main features are the complete implementation of
the Python DB API 2.0 specification and the thread safety (several threads can
share the same connection).  It was designed for heavily multi-threaded
applications that create and destroy lots of cursors and make a large number
of concurrent "INSERT"s or "UPDATE"s.

Psycopg 2 is mostly implemented in C as a libpq wrapper, resulting in being
both efficient and secure.  It features client-side and server-side cursors,
asynchronous communication and notifications, "COPY TO/COPY FROM" support.
Many Python types are supported out-of-the-box and adapted to matching
PostgreSQL data types; adaptation can be extended and customized thanks to a
flexible objects adaptation system.

Psycopg 2 is both Unicode and Python 3 friendly.


Documentation
-------------

Documentation is included in the ``doc`` directory and is `available online`__.

.. __: https://www.psycopg.org/docs/

For any other resource (source code repository, bug tracker, mailing list)
please check the `project homepage`__.

.. __: https://psycopg.org/


Installation
------------

Building Psycopg requires a few prerequisites (a C compiler, some development
packages): please check the install_ and the faq_ documents in the ``doc`` dir
or online for the details.

If prerequisites are met, you can install psycopg like any other Python
package, using ``pip`` to download it from PyPI_::

    $ pip install psycopg2

or using ``setup.py`` if you have downloaded the source package locally::

    $ python setup.py build
    $ sudo python setup.py install

You can also obtain a stand-alone package, not requiring a compiler or
external libraries, by installing the `psycopg2-binary`_ package from PyPI::

    $ pip install psycopg2-binary

The binary package is a practical choice for development and testing but in
production it is advised to use the package built from sources.

.. _PyPI: https://pypi.org/project/psycopg2/
.. _psycopg2-binary: https://pypi.org/project/psycopg2-binary/
.. _install: https://www.psycopg.org/docs/install.html#install-from-source
.. _faq: https://www.psycopg.org/docs/faq.html#faq-compile

:Linux/OSX: |travis|
:Windows: |appveyor|

.. |travis| image:: https://travis-ci.org/psycopg/psycopg2.svg?branch=master
    :target: https://travis-ci.org/psycopg/psycopg2
    :alt: Linux and OSX build status

.. |appveyor| image:: https://ci.appveyor.com/api/projects/status/github/psycopg/psycopg2?branch=master&svg=true
    :target: https://ci.appveyor.com/project/psycopg/psycopg2/branch/master
    :alt: Windows build status



            

Raw data

            {
    "_id": null,
    "home_page": "https://psycopg.org/",
    "name": "psycopg2",
    "maintainer": "Daniele Varrazzo",
    "docs_url": null,
    "requires_python": ">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*",
    "maintainer_email": "daniele.varrazzo@gmail.org",
    "keywords": "",
    "author": "Federico Di Gregorio",
    "author_email": "fog@initd.org",
    "download_url": "https://files.pythonhosted.org/packages/fd/ae/98cb7a0cbb1d748ee547b058b14604bd0e9bf285a8e0cc5d148f8a8a952e/psycopg2-2.8.6.tar.gz",
    "platform": "any",
    "description": "Psycopg is the most popular PostgreSQL database adapter for the Python\r\nprogramming language.  Its main features are the complete implementation of\r\nthe Python DB API 2.0 specification and the thread safety (several threads can\r\nshare the same connection).  It was designed for heavily multi-threaded\r\napplications that create and destroy lots of cursors and make a large number\r\nof concurrent \"INSERT\"s or \"UPDATE\"s.\r\n\r\nPsycopg 2 is mostly implemented in C as a libpq wrapper, resulting in being\r\nboth efficient and secure.  It features client-side and server-side cursors,\r\nasynchronous communication and notifications, \"COPY TO/COPY FROM\" support.\r\nMany Python types are supported out-of-the-box and adapted to matching\r\nPostgreSQL data types; adaptation can be extended and customized thanks to a\r\nflexible objects adaptation system.\r\n\r\nPsycopg 2 is both Unicode and Python 3 friendly.\r\n\r\n\r\nDocumentation\r\n-------------\r\n\r\nDocumentation is included in the ``doc`` directory and is `available online`__.\r\n\r\n.. __: https://www.psycopg.org/docs/\r\n\r\nFor any other resource (source code repository, bug tracker, mailing list)\r\nplease check the `project homepage`__.\r\n\r\n.. __: https://psycopg.org/\r\n\r\n\r\nInstallation\r\n------------\r\n\r\nBuilding Psycopg requires a few prerequisites (a C compiler, some development\r\npackages): please check the install_ and the faq_ documents in the ``doc`` dir\r\nor online for the details.\r\n\r\nIf prerequisites are met, you can install psycopg like any other Python\r\npackage, using ``pip`` to download it from PyPI_::\r\n\r\n    $ pip install psycopg2\r\n\r\nor using ``setup.py`` if you have downloaded the source package locally::\r\n\r\n    $ python setup.py build\r\n    $ sudo python setup.py install\r\n\r\nYou can also obtain a stand-alone package, not requiring a compiler or\r\nexternal libraries, by installing the `psycopg2-binary`_ package from PyPI::\r\n\r\n    $ pip install psycopg2-binary\r\n\r\nThe binary package is a practical choice for development and testing but in\r\nproduction it is advised to use the package built from sources.\r\n\r\n.. _PyPI: https://pypi.org/project/psycopg2/\r\n.. _psycopg2-binary: https://pypi.org/project/psycopg2-binary/\r\n.. _install: https://www.psycopg.org/docs/install.html#install-from-source\r\n.. _faq: https://www.psycopg.org/docs/faq.html#faq-compile\r\n\r\n:Linux/OSX: |travis|\r\n:Windows: |appveyor|\r\n\r\n.. |travis| image:: https://travis-ci.org/psycopg/psycopg2.svg?branch=master\r\n    :target: https://travis-ci.org/psycopg/psycopg2\r\n    :alt: Linux and OSX build status\r\n\r\n.. |appveyor| image:: https://ci.appveyor.com/api/projects/status/github/psycopg/psycopg2?branch=master&svg=true\r\n    :target: https://ci.appveyor.com/project/psycopg/psycopg2/branch/master\r\n    :alt: Windows build status\r\n\r\n\r\n",
    "bugtrack_url": null,
    "license": "LGPL with exceptions",
    "summary": "psycopg2 - Python-PostgreSQL Database Adapter",
    "version": "2.8.6",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "f7b2d6553b373a08d0d9705a05b85979",
                "sha256": "068115e13c70dc5982dfc00c5d70437fe37c014c808acce119b5448361c03725"
            },
            "downloads": -1,
            "filename": "psycopg2-2.8.6-cp27-cp27m-win32.whl",
            "has_sig": true,
            "md5_digest": "f7b2d6553b373a08d0d9705a05b85979",
            "packagetype": "bdist_wheel",
            "python_version": "cp27",
            "requires_python": ">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*",
            "size": 995347,
            "upload_time": "2020-09-06T22:41:27",
            "upload_time_iso_8601": "2020-09-06T22:41:27.842619Z",
            "url": "https://files.pythonhosted.org/packages/f4/1f/ca233a88530fb2ad7b6fa291765a55ec9fb7573c454f576e55ac232b0252/psycopg2-2.8.6-cp27-cp27m-win32.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "580483ff1be30c0bb8cd9a396fd4d99a",
                "sha256": "d160744652e81c80627a909a0e808f3c6653a40af435744de037e3172cf277f5"
            },
            "downloads": -1,
            "filename": "psycopg2-2.8.6-cp27-cp27m-win_amd64.whl",
            "has_sig": true,
            "md5_digest": "580483ff1be30c0bb8cd9a396fd4d99a",
            "packagetype": "bdist_wheel",
            "python_version": "cp27",
            "requires_python": ">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*",
            "size": 1121736,
            "upload_time": "2020-09-06T22:41:31",
            "upload_time_iso_8601": "2020-09-06T22:41:31.567036Z",
            "url": "https://files.pythonhosted.org/packages/bc/c1/0bf0150848f600be3839b1ea01b037d6355e191486f04c6f3af4e75d1b38/psycopg2-2.8.6-cp27-cp27m-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "bbf579c34cf14ae6519c85d377db3fc6",
                "sha256": "b8cae8b2f022efa1f011cc753adb9cbadfa5a184431d09b273fb49b4167561ad"
            },
            "downloads": -1,
            "filename": "psycopg2-2.8.6-cp34-cp34m-win32.whl",
            "has_sig": true,
            "md5_digest": "bbf579c34cf14ae6519c85d377db3fc6",
            "packagetype": "bdist_wheel",
            "python_version": "cp34",
            "requires_python": ">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*",
            "size": 1003880,
            "upload_time": "2020-09-06T22:41:34",
            "upload_time_iso_8601": "2020-09-06T22:41:34.698781Z",
            "url": "https://files.pythonhosted.org/packages/d5/14/cf8f9edb6aa1a7eea9587ee446276974b3096b5abed63e28323ede746397/psycopg2-2.8.6-cp34-cp34m-win32.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "0bad640fd3a2ec04a8c34e5443540995",
                "sha256": "f22ea9b67aea4f4a1718300908a2fb62b3e4276cf00bd829a97ab5894af42ea3"
            },
            "downloads": -1,
            "filename": "psycopg2-2.8.6-cp34-cp34m-win_amd64.whl",
            "has_sig": true,
            "md5_digest": "0bad640fd3a2ec04a8c34e5443540995",
            "packagetype": "bdist_wheel",
            "python_version": "cp34",
            "requires_python": ">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*",
            "size": 1121215,
            "upload_time": "2020-09-06T22:41:37",
            "upload_time_iso_8601": "2020-09-06T22:41:37.678072Z",
            "url": "https://files.pythonhosted.org/packages/ec/c0/72786579c3d8e87b9b602c32c633c36dc20e346bddbcc506b1085513f8f8/psycopg2-2.8.6-cp34-cp34m-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "2174dc3c4b2a811779890cc7a60fcc18",
                "sha256": "26e7fd115a6db75267b325de0fba089b911a4a12ebd3d0b5e7acb7028bc46821"
            },
            "downloads": -1,
            "filename": "psycopg2-2.8.6-cp35-cp35m-win32.whl",
            "has_sig": true,
            "md5_digest": "2174dc3c4b2a811779890cc7a60fcc18",
            "packagetype": "bdist_wheel",
            "python_version": "cp35",
            "requires_python": ">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*",
            "size": 984700,
            "upload_time": "2020-09-06T22:41:40",
            "upload_time_iso_8601": "2020-09-06T22:41:40.294788Z",
            "url": "https://files.pythonhosted.org/packages/90/24/53f39fde488210c09869ac6bade7cfefa982fe542197716b190bac826733/psycopg2-2.8.6-cp35-cp35m-win32.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "cbd99cef3fcc13318f8aaba3043a5981",
                "sha256": "00195b5f6832dbf2876b8bf77f12bdce648224c89c880719c745b90515233301"
            },
            "downloads": -1,
            "filename": "psycopg2-2.8.6-cp35-cp35m-win_amd64.whl",
            "has_sig": true,
            "md5_digest": "cbd99cef3fcc13318f8aaba3043a5981",
            "packagetype": "bdist_wheel",
            "python_version": "cp35",
            "requires_python": ">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*",
            "size": 1129576,
            "upload_time": "2020-09-06T22:41:42",
            "upload_time_iso_8601": "2020-09-06T22:41:42.817691Z",
            "url": "https://files.pythonhosted.org/packages/e3/a8/aa3d862173bfcc2f7d4a00516c293bc1c660933b35909c4373025636f508/psycopg2-2.8.6-cp35-cp35m-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "2de5a47f7ae3ef2bcd57c581cd34ce43",
                "sha256": "a49833abfdede8985ba3f3ec641f771cca215479f41523e99dace96d5b8cce2a"
            },
            "downloads": -1,
            "filename": "psycopg2-2.8.6-cp36-cp36m-win32.whl",
            "has_sig": true,
            "md5_digest": "2de5a47f7ae3ef2bcd57c581cd34ce43",
            "packagetype": "bdist_wheel",
            "python_version": "cp36",
            "requires_python": ">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*",
            "size": 984759,
            "upload_time": "2020-09-06T22:41:45",
            "upload_time_iso_8601": "2020-09-06T22:41:45.283245Z",
            "url": "https://files.pythonhosted.org/packages/9f/6f/ec0689612a630f2b34c734c3d8db40f9a385898dec14f49306ed73c2ecd5/psycopg2-2.8.6-cp36-cp36m-win32.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "ce041fd03734b1dc66df1018afa8ccc4",
                "sha256": "f974c96fca34ae9e4f49839ba6b78addf0346777b46c4da27a7bf54f48d3057d"
            },
            "downloads": -1,
            "filename": "psycopg2-2.8.6-cp36-cp36m-win_amd64.whl",
            "has_sig": true,
            "md5_digest": "ce041fd03734b1dc66df1018afa8ccc4",
            "packagetype": "bdist_wheel",
            "python_version": "cp36",
            "requires_python": ">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*",
            "size": 1129632,
            "upload_time": "2020-09-06T22:41:47",
            "upload_time_iso_8601": "2020-09-06T22:41:47.750875Z",
            "url": "https://files.pythonhosted.org/packages/fd/09/b6c3e8442db0342629d1c95e9c451d7ee0920f6c1152edcc0d4bd0ee7ade/psycopg2-2.8.6-cp36-cp36m-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "be4a702b5f10c533528a94edd38eac36",
                "sha256": "6a3d9efb6f36f1fe6aa8dbb5af55e067db802502c55a9defa47c5a1dad41df84"
            },
            "downloads": -1,
            "filename": "psycopg2-2.8.6-cp37-cp37m-win32.whl",
            "has_sig": true,
            "md5_digest": "be4a702b5f10c533528a94edd38eac36",
            "packagetype": "bdist_wheel",
            "python_version": "cp37",
            "requires_python": ">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*",
            "size": 984761,
            "upload_time": "2020-09-06T22:41:50",
            "upload_time_iso_8601": "2020-09-06T22:41:50.334426Z",
            "url": "https://files.pythonhosted.org/packages/e4/08/c0ad8002f69d4d31a656ed1a865f6cc6b3b781f03b6525455e3a79281a94/psycopg2-2.8.6-cp37-cp37m-win32.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "ee9da6b749826a389582a425d430ee60",
                "sha256": "56fee7f818d032f802b8eed81ef0c1232b8b42390df189cab9cfa87573fe52c5"
            },
            "downloads": -1,
            "filename": "psycopg2-2.8.6-cp37-cp37m-win_amd64.whl",
            "has_sig": true,
            "md5_digest": "ee9da6b749826a389582a425d430ee60",
            "packagetype": "bdist_wheel",
            "python_version": "cp37",
            "requires_python": ">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*",
            "size": 1129632,
            "upload_time": "2020-09-06T22:41:52",
            "upload_time_iso_8601": "2020-09-06T22:41:52.207930Z",
            "url": "https://files.pythonhosted.org/packages/44/1f/a6ae3527568bb9a3d49339beb630ede2dcb345c88cc3cdc2a6dfbb78110e/psycopg2-2.8.6-cp37-cp37m-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "7e5d6a5a1a539efb3da0e202f2aa0445",
                "sha256": "ad2fe8a37be669082e61fb001c185ffb58867fdbb3e7a6b0b0d2ffe232353a3e"
            },
            "downloads": -1,
            "filename": "psycopg2-2.8.6-cp38-cp38-win32.whl",
            "has_sig": true,
            "md5_digest": "7e5d6a5a1a539efb3da0e202f2aa0445",
            "packagetype": "bdist_wheel",
            "python_version": "cp38",
            "requires_python": ">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*",
            "size": 987294,
            "upload_time": "2020-09-06T22:41:54",
            "upload_time_iso_8601": "2020-09-06T22:41:54.709893Z",
            "url": "https://files.pythonhosted.org/packages/6f/8f/89b52c494dfb7f4f4c251e310b78b49f204ce0386f28316a92413e0e60bf/psycopg2-2.8.6-cp38-cp38-win32.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "b64bbfb335db761c3d2a5936d5bbc888",
                "sha256": "56007a226b8e95aa980ada7abdea6b40b75ce62a433bd27cec7a8178d57f4051"
            },
            "downloads": -1,
            "filename": "psycopg2-2.8.6-cp38-cp38-win_amd64.whl",
            "has_sig": true,
            "md5_digest": "b64bbfb335db761c3d2a5936d5bbc888",
            "packagetype": "bdist_wheel",
            "python_version": "cp38",
            "requires_python": ">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*",
            "size": 1131456,
            "upload_time": "2020-09-06T22:41:56",
            "upload_time_iso_8601": "2020-09-06T22:41:56.846348Z",
            "url": "https://files.pythonhosted.org/packages/18/35/4be44fc779e8c8a7aedc4b19bf91dcd476edabd471b4d7c82f216b5ba271/psycopg2-2.8.6-cp38-cp38-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "ae2ff92f1cfcd890bd5f09f4d1d7d60c",
                "sha256": "fb23f6c71107c37fd667cb4ea363ddeb936b348bbd6449278eb92c189699f543"
            },
            "downloads": -1,
            "filename": "psycopg2-2.8.6.tar.gz",
            "has_sig": true,
            "md5_digest": "ae2ff92f1cfcd890bd5f09f4d1d7d60c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*",
            "size": 383797,
            "upload_time": "2020-09-06T22:43:19",
            "upload_time_iso_8601": "2020-09-06T22:43:19.359757Z",
            "url": "https://files.pythonhosted.org/packages/fd/ae/98cb7a0cbb1d748ee547b058b14604bd0e9bf285a8e0cc5d148f8a8a952e/psycopg2-2.8.6.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2020-09-06 22:43:19",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "psycopg2"
}
        
Elapsed time: 0.14531s