{"id":15297513,"url":"https://github.com/runfalk/psycospans","last_synced_at":"2025-04-13T23:16:26.825Z","repository":{"id":17852414,"uuid":"20773401","full_name":"runfalk/psycospans","owner":"runfalk","description":"Psycopg2 support for the Spans library","archived":false,"fork":false,"pushed_at":"2018-10-09T14:16:14.000Z","size":12,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-17T09:37:59.107Z","etag":null,"topics":["postgresql","psycopg2","python","python-2","python-3","range"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/runfalk.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-06-12T15:50:51.000Z","updated_at":"2019-06-22T21:39:04.000Z","dependencies_parsed_at":"2022-08-26T10:10:46.481Z","dependency_job_id":null,"html_url":"https://github.com/runfalk/psycospans","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runfalk%2Fpsycospans","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runfalk%2Fpsycospans/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runfalk%2Fpsycospans/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runfalk%2Fpsycospans/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/runfalk","download_url":"https://codeload.github.com/runfalk/psycospans/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248794569,"owners_count":21162615,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["postgresql","psycopg2","python","python-2","python-3","range"],"created_at":"2024-09-30T19:18:03.691Z","updated_at":"2025-04-13T23:16:26.792Z","avatar_url":"https://github.com/runfalk.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"PsycoSpans\n==========\nPsycospans brings support for `Spans \u003chttps://github.com/runfalk/spans\u003e`_ to\n`Psycopg2 \u003chttp://initd.org/psycopg/\u003e`_.\n\nPsycopSpans work by wrapping psycopg2's ``connect()`` function and set the\nconnection up for handling Spans' range types.\n\n.. code-block:: python\n\n    from psycospans import connect\n\n    conn = connect(\"dbname=test\")\n    cur = conn.cursor()\n\n    test_range = intrange(1, 10)\n    cur.execute(\"SELECT int4range(5, NULL), %s\", (test_range,))\n\n    other_range, test_range_cmp = cur.fetchone()\n\n    test_range == test_range_cmp # True\n    other_range == intrange(5) # True\n\n\nRequirements\n------------\nPsycospans will only work with PostgreSQL 9.2 or later.\n\n\nInstallation\n------------\nPsycospans exists on PyPI. Note that you must install ``psycopg2`` manually.\nThis is because you may use either ``psycopg2`` or ``psycopg2-binary``.\n\n::\n\n    pip install psycospans psycopg2-binary\n\n\nDocumentation\n-------------\nFor full doumentation please run ``pydoc psycospans`` from a shell.\n\n\nChangelog\n=========\n\nVersion 1.0.0\n-------------\nReleased on 9th October 2018\n\n- Added wheel\n- Moved unit tests out of package\n- Removed explicit dependency on ``psycopg2`` since one may want to use\n  ``psycopg2-binary``\n- Removed Python 3.3 support. Requires 2.7 or 3.4 or greater\n- Removed Tox usage for development\n- Use pytest to run test suite\n\n\nVersion 0.1.1\n-------------\nReleased on 23rd August 2018\n\n- Fixed compatibility issue with Psycopg \u003e= 2.5\n- Improved Python 3 compatibility\n\n\nVersion 0.1.0\n-------------\nReleased on 12th June 2014\n\n- Initial release\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frunfalk%2Fpsycospans","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frunfalk%2Fpsycospans","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frunfalk%2Fpsycospans/lists"}