{"id":25659469,"url":"https://github.com/geldata/gel-python","last_synced_at":"2025-02-24T01:01:49.607Z","repository":{"id":37580049,"uuid":"139201883","full_name":"geldata/gel-python","owner":"geldata","description":"The official Python client library for EdgeDB","archived":false,"fork":false,"pushed_at":"2025-02-23T20:54:37.000Z","size":1785,"stargazers_count":381,"open_issues_count":31,"forks_count":46,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-02-23T21:04:38.430Z","etag":null,"topics":["asynchronous","asyncio","database-driver","edgedb","high-performance","python3","synchronous"],"latest_commit_sha":null,"homepage":"https://edgedb.com","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/geldata.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-06-29T22:37:25.000Z","updated_at":"2025-02-23T20:54:39.000Z","dependencies_parsed_at":"2022-07-11T22:45:14.837Z","dependency_job_id":"15d038f3-7da8-49bc-b0bb-9c7b4d7eb32c","html_url":"https://github.com/geldata/gel-python","commit_stats":{"total_commits":487,"total_committers":30,"mean_commits":"16.233333333333334","dds":0.7926078028747433,"last_synced_commit":"67f39f440a76712878d6f798abc4cef3c1442ac0"},"previous_names":["geldata/gel-python","edgedb/edgedb-python"],"tags_count":87,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geldata%2Fgel-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geldata%2Fgel-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geldata%2Fgel-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geldata%2Fgel-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/geldata","download_url":"https://codeload.github.com/geldata/gel-python/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240400322,"owners_count":19795331,"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":["asynchronous","asyncio","database-driver","edgedb","high-performance","python3","synchronous"],"created_at":"2025-02-24T01:01:46.193Z","updated_at":"2025-02-24T01:01:49.550Z","avatar_url":"https://github.com/geldata.png","language":"Python","readme":"The Python driver for Gel\n=========================\n\n.. image:: https://github.com/geldata/gel-python/workflows/Tests/badge.svg?event=push\u0026branch=master\n    :target: https://github.com/geldata/gel-python/actions\n\n.. image:: https://img.shields.io/pypi/v/gel.svg\n    :target: https://pypi.python.org/pypi/gel\n\n.. image:: https://img.shields.io/badge/join-github%20discussions-green\n    :target: https://github.com/geldata/gel/discussions\n\n\n**gel-python** is the official Gel driver for Python.\nIt provides both blocking IO and asyncio implementations.\n\nThe library requires Python 3.8 or later.\n\n\nDocumentation\n-------------\n\nThe project documentation can be found\n`here \u003chttps://www.geldata.com/docs/clients/00_python/index\u003e`_.\n\n\nInstallation\n------------\n\nThe library is available on PyPI.  Use ``pip`` to install it::\n\n    $ pip install gel\n\n\nBasic Usage\n-----------\n\n.. code-block:: python\n\n    import datetime\n    import gel\n\n    def main():\n        client = gel.create_client()\n        # Create a User object type\n        client.execute('''\n            CREATE TYPE User {\n                CREATE REQUIRED PROPERTY name -\u003e str;\n                CREATE PROPERTY dob -\u003e cal::local_date;\n            }\n        ''')\n\n        # Insert a new User object\n        client.query('''\n            INSERT User {\n                name := \u003cstr\u003e$name,\n                dob := \u003ccal::local_date\u003e$dob\n            }\n        ''', name='Bob', dob=datetime.date(1984, 3, 1))\n\n        # Select User objects.\n        user_set = client.query(\n            'SELECT User {name, dob} FILTER .name = \u003cstr\u003e$name', name='Bob')\n        # *user_set* now contains\n        # Set{Object{name := 'Bob', dob := datetime.date(1984, 3, 1)}}\n\n        # Close the client.\n        client.close()\n\n    if __name__ == '__main__':\n        main()\n\nDevelopment\n-----------\n\nInstructions for installing Gel and gel-python locally can be found at\n`www.geldata.com/docs/reference/dev \u003chttps://www.geldata.com/docs/reference/dev\u003e`_.\n\nTo run the test suite, run ``$ python setup.py test``.\n\nLicense\n-------\n\ngel-python is developed and distributed under the Apache 2.0 license.\n","funding_links":[],"categories":["Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeldata%2Fgel-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeldata%2Fgel-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeldata%2Fgel-python/lists"}