pymgclient - Memgraph database adapter for Python language
pymgclient is a Memgraph database adapter for Python programming language compliant with the DB-API 2.0 specification described by PEP 249.
mgclient module is the current implementation of the adapter. It is implemented in C as a wrapper around mgclient, the official Memgraph client library. As a C extension, it is only compatible with the CPython implementation of the Python programming language.
pymgclient only works with Python 3.
Check out the documentation if you need help with installation or if you want to build pymgclient for yourself!
Documentation
Online documentation can be found on GitHub pages.
You can also build a local version of the documentation by running make from
the docs directory. You will need Sphinx
installed in order to do that.
Code sample
Here is an example of an interactive session showing some of the basic commands:
>>> import mgclient
# Make a connection to the database
>>> conn = mgclient.connect(host='127.0.0.1', port=7687)
# Create a cursor for query execution
>>> cursor = conn.cursor()
# Execute a query
>>> cursor.execute("""
CREATE (n:Person {name: 'John'})-[e:KNOWS]->
(m:Person {name: 'Steve'})
RETURN n, e, m
""")
# Fetch one row of query results
>>> row = cursor.fetchone()
>>> print(row[0])
(:Person {'name': 'John'})
>>> print(row[1])
[:KNOWS]
>>> print(row[2])
(:Person {'name': 'Steve'})
# Make database changes persistent
>>> conn.commit()
Release files for pymgclient 1.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pymgclient-1.6.0.tar.gz | 166.6 kB | Details |
Built distributions (wheels)
Total release size: 68.5 MB
Release files / pymgclient-1.6.0.tar.gz
| Download URL | pymgclient-1.6.0.tar.gz |
|---|---|
| Size | 166.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9499b865355447c1ffb5a9a0c9e87eb718b9d2e83c743722b7414d17bf47d807
|
|
BLAKE2b-256 checksum How to use checksums |
6af063ab674b99d9da5d6a5444b3975ed66d4c174533a2221d17697cd92ec665
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / pymgclient-1.6.0-cp314-cp314-win_amd64.whl
| Download URL | pymgclient-1.6.0-cp314-cp314-win_amd64.whl |
|---|---|
| Size | 2.4 MB |
| Tags | CPython 3.14 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
660d40b32b6a5d81fb5f58c005e2d2546a3ee04d97398fc1ef3a046ae4c70458
|
|
BLAKE2b-256 checksum How to use checksums |
77192078a1965310da2d7c98479d08193175663ac0afd33773a898369c935286
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / pymgclient-1.6.0-cp314-cp314-manylinux_2_34_x86_64.whl
| Download URL | pymgclient-1.6.0-cp314-cp314-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 3.0 MB |
| Tags | CPython 3.14 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
4368dee53bd7e2a6663e704097f235f1e0b27b03a4012e5b5749ec9451b55a0d
|
|
BLAKE2b-256 checksum How to use checksums |
543d9ee5cf0070a0fcd3fe79493023bccf7de53bb1f239628625ff3d5447ed8a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / pymgclient-1.6.0-cp314-cp314-manylinux_2_34_aarch64.whl
| Download URL | pymgclient-1.6.0-cp314-cp314-manylinux_2_34_aarch64.whl |
|---|---|
| Size | 3.3 MB |
| Tags | CPython 3.14 Linux glibc 2.34+ ARM64 |
|
SHA-256 checksum How to use checksums |
23a2e1c24184167c04ed4d87fac2aaaec1bb86a948f1a72bf398faf8fcb7cb54
|
|
BLAKE2b-256 checksum How to use checksums |
90595ba6a83262ee2bd7f5ac132deda3edf396b20dcc800852384e6e38e2eb1d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / pymgclient-1.6.0-cp314-cp314-macosx_15_0_arm64.whl
| Download URL | pymgclient-1.6.0-cp314-cp314-macosx_15_0_arm64.whl |
|---|---|
| Size | 2.5 MB |
| Tags | CPython 3.14 macOS 15.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
ebf7feafdbcf4bfb0e2d1744dfb2943aedbfb61f6dfee3b41108d86f4d9814a1
|
|
BLAKE2b-256 checksum How to use checksums |
fc7d1e3e45cd7c9661c7f8c4cb3b07ba6097ec8cba4957cf56f4cde022cb17b3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / pymgclient-1.6.0-cp314-cp314-macosx_14_0_arm64.whl
| Download URL | pymgclient-1.6.0-cp314-cp314-macosx_14_0_arm64.whl |
|---|---|
| Size | 2.5 MB |
| Tags | CPython 3.14 macOS 14.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
9cf8132981f1798a74aae4ef6f8295e822618d596bbff4f9ce516d6550043521
|
|
BLAKE2b-256 checksum How to use checksums |
213a2a2d5c137ce070cac3d0112b8aa931d8543d823eede30c90f3812be401c7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / pymgclient-1.6.0-cp313-cp313-win_amd64.whl
| Download URL | pymgclient-1.6.0-cp313-cp313-win_amd64.whl |
|---|---|
| Size | 2.3 MB |
| Tags | CPython 3.13 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
a7b4ca46f6a2f6ae3b62a82a5c42318a6707c1e8af9d3f80f5ec2bc38af24b9d
|
|
BLAKE2b-256 checksum How to use checksums |
5248d3c0bb7f68d0244b0c0df0d41162cb74c95399549879732d8099a874debe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / pymgclient-1.6.0-cp313-cp313-manylinux_2_34_x86_64.whl
| Download URL | pymgclient-1.6.0-cp313-cp313-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 3.0 MB |
| Tags | CPython 3.13 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
b50aac94874a954d2bbf07e939d9130c03a0447ad721c7479133b71024a14dce
|
|
BLAKE2b-256 checksum How to use checksums |
40d1cfe20e749a559ae6d52b6808db9c3e70077dfebd505690b7a4f738692dcb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / pymgclient-1.6.0-cp313-cp313-manylinux_2_34_aarch64.whl
| Download URL | pymgclient-1.6.0-cp313-cp313-manylinux_2_34_aarch64.whl |
|---|---|
| Size | 3.3 MB |
| Tags | CPython 3.13 Linux glibc 2.34+ ARM64 |
|
SHA-256 checksum How to use checksums |
b78a3abe428fc37c2b68631cd585bc5b1daa9b13775ff7a0544590674eecb1f1
|
|
BLAKE2b-256 checksum How to use checksums |
a3103ad5ab8f3115eb20f2d147f233efaea74887824e6268a2d311e7ee16ef77
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / pymgclient-1.6.0-cp313-cp313-macosx_15_0_arm64.whl
| Download URL | pymgclient-1.6.0-cp313-cp313-macosx_15_0_arm64.whl |
|---|---|
| Size | 2.5 MB |
| Tags | CPython 3.13 macOS 15.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
beeb5cb99be794a02ba22dd6497763f37f3de220fba5951258c380dfe3d07c28
|
|
BLAKE2b-256 checksum How to use checksums |
469401c78999e71ba35ae4fae95b43e0beeab13f33fdc4c76fd88c49a65a3dd0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / pymgclient-1.6.0-cp313-cp313-macosx_14_0_arm64.whl
| Download URL | pymgclient-1.6.0-cp313-cp313-macosx_14_0_arm64.whl |
|---|---|
| Size | 2.5 MB |
| Tags | CPython 3.13 macOS 14.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
0cc7333b6644c2d471cb1d3c5ae94363b1ff3ff5c882f79d5649d6377583262a
|
|
BLAKE2b-256 checksum How to use checksums |
b839a59ff5393fb6e4e1e3121732153b7cafffcf0b0ac2ede15ae5bfa3fbada1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / pymgclient-1.6.0-cp312-cp312-win_amd64.whl
| Download URL | pymgclient-1.6.0-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 2.3 MB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
b7da2602071e9a557365f02b4cd6b179413aaa811284ec2c12a82a3a851e35b7
|
|
BLAKE2b-256 checksum How to use checksums |
40b3856cc1a3f69b4f4bed3e1b775906b7a72217d3f8dff2c51280b45e7a249b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / pymgclient-1.6.0-cp312-cp312-manylinux_2_34_x86_64.whl
| Download URL | pymgclient-1.6.0-cp312-cp312-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 3.0 MB |
| Tags | CPython 3.12 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
fac84ad070dd7fae7f2fdadfb2c7dc3b05d20b5b0215f749e5ae9103eb18460a
|
|
BLAKE2b-256 checksum How to use checksums |
5b2d696710243b8179d8b989b71cba469482df9283a4bc009bce8e76cb96575b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / pymgclient-1.6.0-cp312-cp312-manylinux_2_34_aarch64.whl
| Download URL | pymgclient-1.6.0-cp312-cp312-manylinux_2_34_aarch64.whl |
|---|---|
| Size | 3.3 MB |
| Tags | CPython 3.12 Linux glibc 2.34+ ARM64 |
|
SHA-256 checksum How to use checksums |
ee47f99e4f58d86407c7ce7395c028b580ac8b29fc24bb58e6dd0286b7ba9bda
|
|
BLAKE2b-256 checksum How to use checksums |
4fcdc3a2f4172b0ba6a8bb1a729cbb6c2d63d0873fd41c3d9bd11bd30694b265
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / pymgclient-1.6.0-cp312-cp312-macosx_15_0_arm64.whl
| Download URL | pymgclient-1.6.0-cp312-cp312-macosx_15_0_arm64.whl |
|---|---|
| Size | 2.5 MB |
| Tags | CPython 3.12 macOS 15.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
cedfccd63a77b9c5cd5901c560cd7adee8ff78c2c837bd66b06732db567e6e21
|
|
BLAKE2b-256 checksum How to use checksums |
f1e5a17e5b7e01df6f4effdd1da001fc31cebba8e5169a5a42f0c803e37ad89a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / pymgclient-1.6.0-cp312-cp312-macosx_14_0_arm64.whl
| Download URL | pymgclient-1.6.0-cp312-cp312-macosx_14_0_arm64.whl |
|---|---|
| Size | 2.5 MB |
| Tags | CPython 3.12 macOS 14.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
325f7e0b7796c3869f33044567ab1891387e1ec4f23057ac2ea80545e74c2ea9
|
|
BLAKE2b-256 checksum How to use checksums |
de86da5d9f7ac150ebb5625cf31eb99d159e192fa7f3f02bd1864ab05f99648f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / pymgclient-1.6.0-cp311-cp311-win_amd64.whl
| Download URL | pymgclient-1.6.0-cp311-cp311-win_amd64.whl |
|---|---|
| Size | 2.3 MB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
9748e20c27366e8f50f42691169cef440790caf0fcc4d88060da0ab14a30d313
|
|
BLAKE2b-256 checksum How to use checksums |
236d67807a11a4f6bf36ae55aa47a8406ef9b4ee6cda6a80ea7e3048edfb20aa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / pymgclient-1.6.0-cp311-cp311-manylinux_2_34_x86_64.whl
| Download URL | pymgclient-1.6.0-cp311-cp311-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 3.0 MB |
| Tags | CPython 3.11 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
43f6953abc22e18ba1123f35ea7787afb2dda7abc1b91db4cf5763c9966e794f
|
|
BLAKE2b-256 checksum How to use checksums |
a98ffa274ed8003e7335070a1d5fe210aa98edc856ac9a2efff91f3f464dd22e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / pymgclient-1.6.0-cp311-cp311-manylinux_2_34_aarch64.whl
| Download URL | pymgclient-1.6.0-cp311-cp311-manylinux_2_34_aarch64.whl |
|---|---|
| Size | 3.3 MB |
| Tags | CPython 3.11 Linux glibc 2.34+ ARM64 |
|
SHA-256 checksum How to use checksums |
13c61d072022b4fc80b2be91685a5c33072582334e013f0111ac1ed5e1faa53a
|
|
BLAKE2b-256 checksum How to use checksums |
097dadb21b9602d62a4b5509a50dbaec2d721a5d5473dd31501a62dfbda1b3f0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / pymgclient-1.6.0-cp311-cp311-macosx_15_0_arm64.whl
| Download URL | pymgclient-1.6.0-cp311-cp311-macosx_15_0_arm64.whl |
|---|---|
| Size | 2.5 MB |
| Tags | CPython 3.11 macOS 15.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
fe48038164212ef324960912a97e371cd8eb746d7d3ed9d49dede162b56f8ad6
|
|
BLAKE2b-256 checksum How to use checksums |
56701deea700a85d424bbf88d7059877a1e8dcba2bc4e14c5762f06bdd895e48
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / pymgclient-1.6.0-cp311-cp311-macosx_14_0_arm64.whl
| Download URL | pymgclient-1.6.0-cp311-cp311-macosx_14_0_arm64.whl |
|---|---|
| Size | 2.5 MB |
| Tags | CPython 3.11 macOS 14.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
52d3145ce75fe6adac2a60521e0dde6ed10ddebe87bd584983a79a37b9702a71
|
|
BLAKE2b-256 checksum How to use checksums |
ea4785f13a1ee9a09a38eb5f5a050c332249cbd860064d0ebdd079c2b111d8d2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / pymgclient-1.6.0-cp310-cp310-win_amd64.whl
| Download URL | pymgclient-1.6.0-cp310-cp310-win_amd64.whl |
|---|---|
| Size | 2.3 MB |
| Tags | CPython 3.10 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
717b83f2f36d20ddca81b041ca633f19eb79fff29e3d910295e166fba2ccb909
|
|
BLAKE2b-256 checksum How to use checksums |
0c860cb161f91d8ab4b158f66cb2c093cd4fcfe450d130af04ccaaa268f6661f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / pymgclient-1.6.0-cp310-cp310-manylinux_2_34_x86_64.whl
| Download URL | pymgclient-1.6.0-cp310-cp310-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 3.0 MB |
| Tags | CPython 3.10 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
2df88f865a1c8111107ecca6f95e77050a751ea4e3caae24a5128f730f0525a4
|
|
BLAKE2b-256 checksum How to use checksums |
33fd40bebbd15dd7c2396452c2902176665909cc6b799c575c6eb627b5c8d08e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / pymgclient-1.6.0-cp310-cp310-manylinux_2_34_aarch64.whl
| Download URL | pymgclient-1.6.0-cp310-cp310-manylinux_2_34_aarch64.whl |
|---|---|
| Size | 3.3 MB |
| Tags | CPython 3.10 Linux glibc 2.34+ ARM64 |
|
SHA-256 checksum How to use checksums |
6e54ffb35d296de60412b069535f77072517b29a2db0296a89a8fcfa2adf73de
|
|
BLAKE2b-256 checksum How to use checksums |
62bd5d8842bbb1b13f7c5ceca087200919821c2eab35fd50b44a58225eb1da19
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / pymgclient-1.6.0-cp310-cp310-macosx_15_0_arm64.whl
| Download URL | pymgclient-1.6.0-cp310-cp310-macosx_15_0_arm64.whl |
|---|---|
| Size | 2.5 MB |
| Tags | CPython 3.10 macOS 15.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
71d368451cc8a4b1455eb4987efb646ca00a05c25aa6cfea8d38dc529b4d1ca3
|
|
BLAKE2b-256 checksum How to use checksums |
16d302a27fba36c67b6c3ad6ef0bf21b31c934eeb6bb54a4bf9c838355587af0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / pymgclient-1.6.0-cp310-cp310-macosx_14_0_arm64.whl
| Download URL | pymgclient-1.6.0-cp310-cp310-macosx_14_0_arm64.whl |
|---|---|
| Size | 2.5 MB |
| Tags | CPython 3.10 macOS 14.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
f7de9865a38cccd3beed6b6115e79c09482e93ed9c460e42f69cee640e03ee4e
|
|
BLAKE2b-256 checksum How to use checksums |
87a199fba6c4f73794e32eb689ba199b3c81748cc094be4afc4513739cc2409a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|