psycopg2


Namepsycopg2 JSON
Version 2.9.9 PyPI version JSON
download
home_pagehttps://psycopg.org/
Summarypsycopg2 - Python-PostgreSQL Database Adapter
upload_time2023-10-03 12:48:53
maintainerDaniele Varrazzo
docs_urlNone
authorFederico Di Gregorio
requires_python>=3.7
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: |gh-actions|
:Windows: |appveyor|

.. |gh-actions| image:: https://github.com/psycopg/psycopg2/actions/workflows/tests.yml/badge.svg
    :target: https://github.com/psycopg/psycopg2/actions/workflows/tests.yml
    :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": ">=3.7",
    "maintainer_email": "daniele.varrazzo@gmail.com",
    "keywords": "",
    "author": "Federico Di Gregorio",
    "author_email": "fog@initd.org",
    "download_url": "https://files.pythonhosted.org/packages/c9/5e/dc6acaf46d78979d6b03458b7a1618a68e152a6776fce95daac5e0f0301b/psycopg2-2.9.9.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: |gh-actions|\r\n:Windows: |appveyor|\r\n\r\n.. |gh-actions| image:: https://github.com/psycopg/psycopg2/actions/workflows/tests.yml/badge.svg\r\n    :target: https://github.com/psycopg/psycopg2/actions/workflows/tests.yml\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",
    "bugtrack_url": null,
    "license": "LGPL with exceptions",
    "summary": "psycopg2 - Python-PostgreSQL Database Adapter",
    "version": "2.9.9",
    "project_urls": {
        "Code": "https://github.com/psycopg/psycopg2",
        "Documentation": "https://www.psycopg.org/docs/",
        "Download": "https://pypi.org/project/psycopg2/",
        "Homepage": "https://psycopg.org/",
        "Issue Tracker": "https://github.com/psycopg/psycopg2/issues"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a2142767d963915f957c07f5d4c3d9c5c9a407415289f5cde90b82cb3e8c2a12",
                "md5": "5ae157e34661f699f6761e0c88b78f33",
                "sha256": "38a8dcc6856f569068b47de286b472b7c473ac7977243593a288ebce0dc89516"
            },
            "downloads": -1,
            "filename": "psycopg2-2.9.9-cp310-cp310-win32.whl",
            "has_sig": false,
            "md5_digest": "5ae157e34661f699f6761e0c88b78f33",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.7",
            "size": 1025172,
            "upload_time": "2023-10-03T12:45:27",
            "upload_time_iso_8601": "2023-10-03T12:45:27.325568Z",
            "url": "https://files.pythonhosted.org/packages/a2/14/2767d963915f957c07f5d4c3d9c5c9a407415289f5cde90b82cb3e8c2a12/psycopg2-2.9.9-cp310-cp310-win32.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "bcbc6572dec6834e779668421e25f8812a872d978e241f85491a5e4dda606a98",
                "md5": "9af0fe13c0bb4a55213cc610e387818e",
                "sha256": "426f9f29bde126913a20a96ff8ce7d73fd8a216cfb323b1f04da402d452853c3"
            },
            "downloads": -1,
            "filename": "psycopg2-2.9.9-cp310-cp310-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "9af0fe13c0bb4a55213cc610e387818e",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.7",
            "size": 1163569,
            "upload_time": "2023-10-03T12:45:31",
            "upload_time_iso_8601": "2023-10-03T12:45:31.116583Z",
            "url": "https://files.pythonhosted.org/packages/bc/bc/6572dec6834e779668421e25f8812a872d978e241f85491a5e4dda606a98/psycopg2-2.9.9-cp310-cp310-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "912c1fc5b9d33cd248c548ba19f2cef8e89cabaafab9858a602868a592cdc1b0",
                "md5": "5af137c2648576d23757e7fa6216bd59",
                "sha256": "ade01303ccf7ae12c356a5e10911c9e1c51136003a9a1d92f7aa9d010fb98372"
            },
            "downloads": -1,
            "filename": "psycopg2-2.9.9-cp311-cp311-win32.whl",
            "has_sig": false,
            "md5_digest": "5af137c2648576d23757e7fa6216bd59",
            "packagetype": "bdist_wheel",
            "python_version": "cp311",
            "requires_python": ">=3.7",
            "size": 1024163,
            "upload_time": "2023-10-03T12:45:34",
            "upload_time_iso_8601": "2023-10-03T12:45:34.876964Z",
            "url": "https://files.pythonhosted.org/packages/91/2c/1fc5b9d33cd248c548ba19f2cef8e89cabaafab9858a602868a592cdc1b0/psycopg2-2.9.9-cp311-cp311-win32.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "372c5133dd3183a3bd82371569f0dd783e6927672de7e671b278ce248810b7f7",
                "md5": "f97d70b6f5ec15b5c1f4e12a52c68f5d",
                "sha256": "121081ea2e76729acfb0673ff33755e8703d45e926e416cb59bae3a86c6a4981"
            },
            "downloads": -1,
            "filename": "psycopg2-2.9.9-cp311-cp311-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "f97d70b6f5ec15b5c1f4e12a52c68f5d",
            "packagetype": "bdist_wheel",
            "python_version": "cp311",
            "requires_python": ">=3.7",
            "size": 1163579,
            "upload_time": "2023-10-03T12:45:38",
            "upload_time_iso_8601": "2023-10-03T12:45:38.492198Z",
            "url": "https://files.pythonhosted.org/packages/37/2c/5133dd3183a3bd82371569f0dd783e6927672de7e671b278ce248810b7f7/psycopg2-2.9.9-cp311-cp311-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2b77ffeb9ac356b3d99d97ca681bf0d0aa74f6d1d8c2ce0d6c4f2f34e396dbc0",
                "md5": "d65beef361bc9bdea0bf0181fad99c4d",
                "sha256": "5e0d98cade4f0e0304d7d6f25bbfbc5bd186e07b38eac65379309c4ca3193efa"
            },
            "downloads": -1,
            "filename": "psycopg2-2.9.9-cp37-cp37m-win32.whl",
            "has_sig": false,
            "md5_digest": "d65beef361bc9bdea0bf0181fad99c4d",
            "packagetype": "bdist_wheel",
            "python_version": "cp37",
            "requires_python": ">=3.7",
            "size": 1005386,
            "upload_time": "2023-10-03T12:45:41",
            "upload_time_iso_8601": "2023-10-03T12:45:41.766275Z",
            "url": "https://files.pythonhosted.org/packages/2b/77/ffeb9ac356b3d99d97ca681bf0d0aa74f6d1d8c2ce0d6c4f2f34e396dbc0/psycopg2-2.9.9-cp37-cp37m-win32.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "bea70a39176d369a8289191f3d327139cfb4923dcedcfd7105774e57996f63cd",
                "md5": "3528c225580d4e9a85895064f4158ef0",
                "sha256": "7e2dacf8b009a1c1e843b5213a87f7c544b2b042476ed7755be813eaf4e8347a"
            },
            "downloads": -1,
            "filename": "psycopg2-2.9.9-cp37-cp37m-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "3528c225580d4e9a85895064f4158ef0",
            "packagetype": "bdist_wheel",
            "python_version": "cp37",
            "requires_python": ">=3.7",
            "size": 1154102,
            "upload_time": "2023-10-03T12:45:44",
            "upload_time_iso_8601": "2023-10-03T12:45:44.054727Z",
            "url": "https://files.pythonhosted.org/packages/be/a7/0a39176d369a8289191f3d327139cfb4923dcedcfd7105774e57996f63cd/psycopg2-2.9.9-cp37-cp37m-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1f7886b90d30c4e02e88379184ade34c2fd4883a4d3e420cc3c0f6da2b8f3a9a",
                "md5": "e07da9d5ce68dd46ab8999a351bd560a",
                "sha256": "ff432630e510709564c01dafdbe996cb552e0b9f3f065eb89bdce5bd31fabf4c"
            },
            "downloads": -1,
            "filename": "psycopg2-2.9.9-cp38-cp38-win32.whl",
            "has_sig": false,
            "md5_digest": "e07da9d5ce68dd46ab8999a351bd560a",
            "packagetype": "bdist_wheel",
            "python_version": "cp38",
            "requires_python": ">=3.7",
            "size": 1007077,
            "upload_time": "2023-10-03T12:45:46",
            "upload_time_iso_8601": "2023-10-03T12:45:46.867034Z",
            "url": "https://files.pythonhosted.org/packages/1f/78/86b90d30c4e02e88379184ade34c2fd4883a4d3e420cc3c0f6da2b8f3a9a/psycopg2-2.9.9-cp38-cp38-win32.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8ee8c439b378efc9f2d0fd1fd5f66b03cb9ed41423f179997a935f10374f3c0d",
                "md5": "f1163997087eb268191bb6c0400ac7c7",
                "sha256": "bac58c024c9922c23550af2a581998624d6e02350f4ae9c5f0bc642c633a2d5e"
            },
            "downloads": -1,
            "filename": "psycopg2-2.9.9-cp38-cp38-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "f1163997087eb268191bb6c0400ac7c7",
            "packagetype": "bdist_wheel",
            "python_version": "cp38",
            "requires_python": ">=3.7",
            "size": 1155712,
            "upload_time": "2023-10-03T12:45:49",
            "upload_time_iso_8601": "2023-10-03T12:45:49.663440Z",
            "url": "https://files.pythonhosted.org/packages/8e/e8/c439b378efc9f2d0fd1fd5f66b03cb9ed41423f179997a935f10374f3c0d/psycopg2-2.9.9-cp38-cp38-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6ba85080c0e61a3b393a379ea2fa93402135c73baffcd5f08b9503e508aac116",
                "md5": "bc10c9d09d4d06071905f4bb6bd60d0d",
                "sha256": "c92811b2d4c9b6ea0285942b2e7cac98a59e166d59c588fe5cfe1eda58e72d59"
            },
            "downloads": -1,
            "filename": "psycopg2-2.9.9-cp39-cp39-win32.whl",
            "has_sig": false,
            "md5_digest": "bc10c9d09d4d06071905f4bb6bd60d0d",
            "packagetype": "bdist_wheel",
            "python_version": "cp39",
            "requires_python": ">=3.7",
            "size": 1037818,
            "upload_time": "2023-10-03T12:45:51",
            "upload_time_iso_8601": "2023-10-03T12:45:51.730949Z",
            "url": "https://files.pythonhosted.org/packages/6b/a8/5080c0e61a3b393a379ea2fa93402135c73baffcd5f08b9503e508aac116/psycopg2-2.9.9-cp39-cp39-win32.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f8ecec73fe66d4317db006a38ebafbde02cb7e1d727ed65f5bbe54efb191d9e6",
                "md5": "33989a4f7a679273c38442ca628f9240",
                "sha256": "de80739447af31525feddeb8effd640782cf5998e1a4e9192ebdf829717e3913"
            },
            "downloads": -1,
            "filename": "psycopg2-2.9.9-cp39-cp39-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "33989a4f7a679273c38442ca628f9240",
            "packagetype": "bdist_wheel",
            "python_version": "cp39",
            "requires_python": ">=3.7",
            "size": 1177280,
            "upload_time": "2023-10-03T12:45:54",
            "upload_time_iso_8601": "2023-10-03T12:45:54.582442Z",
            "url": "https://files.pythonhosted.org/packages/f8/ec/ec73fe66d4317db006a38ebafbde02cb7e1d727ed65f5bbe54efb191d9e6/psycopg2-2.9.9-cp39-cp39-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c95edc6acaf46d78979d6b03458b7a1618a68e152a6776fce95daac5e0f0301b",
                "md5": "eae35fa97cdc92b910b706c720a257c7",
                "sha256": "d1454bde93fb1e224166811694d600e746430c006fbb031ea06ecc2ea41bf156"
            },
            "downloads": -1,
            "filename": "psycopg2-2.9.9.tar.gz",
            "has_sig": false,
            "md5_digest": "eae35fa97cdc92b910b706c720a257c7",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 384926,
            "upload_time": "2023-10-03T12:48:53",
            "upload_time_iso_8601": "2023-10-03T12:48:53.323077Z",
            "url": "https://files.pythonhosted.org/packages/c9/5e/dc6acaf46d78979d6b03458b7a1618a68e152a6776fce95daac5e0f0301b/psycopg2-2.9.9.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-10-03 12:48:53",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "psycopg",
    "github_project": "psycopg2",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "tox": true,
    "lcname": "psycopg2"
}
        
Elapsed time: 0.11615s