{"id":29016509,"url":"https://github.com/memgraph/pymgclient","last_synced_at":"2025-06-25T22:30:32.188Z","repository":{"id":37445261,"uuid":"184210265","full_name":"memgraph/pymgclient","owner":"memgraph","description":"Python Memgraph Client","archived":false,"fork":false,"pushed_at":"2025-05-02T14:25:18.000Z","size":487,"stargazers_count":44,"open_issues_count":18,"forks_count":4,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-06-04T02:05:12.661Z","etag":null,"topics":["client","database-adapter","memgraph","python","python-programming-language"],"latest_commit_sha":null,"homepage":"https://memgraph.github.io/pymgclient/","language":"C","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/memgraph.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.rst","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,"zenodo":null}},"created_at":"2019-04-30T07:07:48.000Z","updated_at":"2025-05-02T14:24:40.000Z","dependencies_parsed_at":"2024-04-05T09:34:54.613Z","dependency_job_id":"a72d834f-1a37-4a5d-b5e5-ecd2f86ab4bf","html_url":"https://github.com/memgraph/pymgclient","commit_stats":{"total_commits":187,"total_committers":14,"mean_commits":"13.357142857142858","dds":"0.31016042780748665","last_synced_commit":"3a3bd91667d25d90255595d17efba8f6d94b3c82"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/memgraph/pymgclient","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/memgraph%2Fpymgclient","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/memgraph%2Fpymgclient/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/memgraph%2Fpymgclient/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/memgraph%2Fpymgclient/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/memgraph","download_url":"https://codeload.github.com/memgraph/pymgclient/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/memgraph%2Fpymgclient/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261962050,"owners_count":23236859,"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":["client","database-adapter","memgraph","python","python-programming-language"],"created_at":"2025-06-25T22:30:31.353Z","updated_at":"2025-06-25T22:30:32.089Z","avatar_url":"https://github.com/memgraph.png","language":"C","readme":"[![Actions Status](https://github.com/memgraph/pymgclient/workflows/CI/badge.svg)](https://github.com/memgraph/pymgclient/actions)\n\n# pymgclient - Memgraph database adapter for Python language\n\npymgclient is a [Memgraph](https://memgraph.com) database adapter for Python\nprogramming language compliant with the DB-API 2.0 specification described by\nPEP 249.\n\nmgclient module is the current implementation of the adapter. It is implemented\nin C as a wrapper around [mgclient](https://github.com/memgraph/mgclient), the\nofficial Memgraph client library. As a C extension, it is only compatible with\nthe CPython implementation of the Python programming language.\n\npymgclient only works with Python 3.\n\nCheck out the documentation if you need help with\n[installation](https://memgraph.github.io/pymgclient/introduction.html#installation)\nor if you want to\n[build](https://memgraph.github.io/pymgclient/introduction.html#install-from-source)\npymgclient for yourself!\n## Documentation\n\nOnline documentation can be found on [GitHub\npages](https://memgraph.github.io/pymgclient/).\n\nYou can also build a local version of the documentation by running `make` from\nthe `docs` directory. You will need [Sphinx](http://www.sphinx-doc.org/)\ninstalled in order to do that.\n\n## Code sample\n\nHere is an example of an interactive session showing some of the basic\ncommands:\n\n```python\n\u003e\u003e\u003e import mgclient\n\n# Make a connection to the database\n\u003e\u003e\u003e conn = mgclient.connect(host='127.0.0.1', port=7687)\n\n# Create a cursor for query execution\n\u003e\u003e\u003e cursor = conn.cursor()\n\n# Execute a query\n\u003e\u003e\u003e cursor.execute(\"\"\"\n        CREATE (n:Person {name: 'John'})-[e:KNOWS]-\u003e\n               (m:Person {name: 'Steve'})\n        RETURN n, e, m\n    \"\"\")\n\n# Fetch one row of query results\n\u003e\u003e\u003e row = cursor.fetchone()\n\n\u003e\u003e\u003e print(row[0])\n(:Person {'name': 'John'})\n\n\u003e\u003e\u003e print(row[1])\n[:KNOWS]\n\n\u003e\u003e\u003e print(row[2])\n(:Person {'name': 'Steve'})\n\n# Make database changes persistent\n\u003e\u003e\u003e conn.commit()\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmemgraph%2Fpymgclient","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmemgraph%2Fpymgclient","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmemgraph%2Fpymgclient/lists"}