Skip to main content

Memgraph database adapter for Python language

Project description

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()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pymgclient-1.5.2.tar.gz (131.2 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

pymgclient-1.5.2-cp314-cp314-win_amd64.whl (2.5 MB view details)

Uploaded CPython 3.14Windows x86-64

pymgclient-1.5.2-cp314-cp314-manylinux_2_34_x86_64.whl (3.0 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.34+ x86-64

pymgclient-1.5.2-cp314-cp314-manylinux_2_34_aarch64.whl (3.3 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.34+ ARM64

pymgclient-1.5.2-cp314-cp314-macosx_15_0_arm64.whl (2.5 MB view details)

Uploaded CPython 3.14macOS 15.0+ ARM64

pymgclient-1.5.2-cp314-cp314-macosx_14_0_arm64.whl (2.5 MB view details)

Uploaded CPython 3.14macOS 14.0+ ARM64

pymgclient-1.5.2-cp313-cp313-win_amd64.whl (2.4 MB view details)

Uploaded CPython 3.13Windows x86-64

pymgclient-1.5.2-cp313-cp313-manylinux_2_34_x86_64.whl (3.0 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ x86-64

pymgclient-1.5.2-cp313-cp313-manylinux_2_34_aarch64.whl (3.3 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ ARM64

pymgclient-1.5.2-cp313-cp313-macosx_15_0_arm64.whl (2.5 MB view details)

Uploaded CPython 3.13macOS 15.0+ ARM64

pymgclient-1.5.2-cp313-cp313-macosx_14_0_arm64.whl (2.5 MB view details)

Uploaded CPython 3.13macOS 14.0+ ARM64

pymgclient-1.5.2-cp312-cp312-win_amd64.whl (2.4 MB view details)

Uploaded CPython 3.12Windows x86-64

pymgclient-1.5.2-cp312-cp312-manylinux_2_34_x86_64.whl (3.0 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

pymgclient-1.5.2-cp312-cp312-manylinux_2_34_aarch64.whl (3.3 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ ARM64

pymgclient-1.5.2-cp312-cp312-macosx_15_0_arm64.whl (2.5 MB view details)

Uploaded CPython 3.12macOS 15.0+ ARM64

pymgclient-1.5.2-cp312-cp312-macosx_14_0_arm64.whl (2.5 MB view details)

Uploaded CPython 3.12macOS 14.0+ ARM64

pymgclient-1.5.2-cp311-cp311-win_amd64.whl (2.4 MB view details)

Uploaded CPython 3.11Windows x86-64

pymgclient-1.5.2-cp311-cp311-manylinux_2_34_x86_64.whl (3.0 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.34+ x86-64

pymgclient-1.5.2-cp311-cp311-manylinux_2_34_aarch64.whl (3.3 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.34+ ARM64

pymgclient-1.5.2-cp311-cp311-macosx_15_0_arm64.whl (2.5 MB view details)

Uploaded CPython 3.11macOS 15.0+ ARM64

pymgclient-1.5.2-cp311-cp311-macosx_14_0_arm64.whl (2.5 MB view details)

Uploaded CPython 3.11macOS 14.0+ ARM64

pymgclient-1.5.2-cp310-cp310-win_amd64.whl (2.4 MB view details)

Uploaded CPython 3.10Windows x86-64

pymgclient-1.5.2-cp310-cp310-manylinux_2_34_x86_64.whl (3.0 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.34+ x86-64

pymgclient-1.5.2-cp310-cp310-manylinux_2_34_aarch64.whl (3.3 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.34+ ARM64

pymgclient-1.5.2-cp310-cp310-macosx_15_0_arm64.whl (2.5 MB view details)

Uploaded CPython 3.10macOS 15.0+ ARM64

pymgclient-1.5.2-cp310-cp310-macosx_14_0_arm64.whl (2.5 MB view details)

Uploaded CPython 3.10macOS 14.0+ ARM64

File details

Details for the file pymgclient-1.5.2.tar.gz.

File metadata

  • Download URL: pymgclient-1.5.2.tar.gz
  • Upload date:
  • Size: 131.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for pymgclient-1.5.2.tar.gz
Algorithm Hash digest
SHA256 0346f6225d29315228d8931239624fb47e34af3a2f9a352bce21428cfa4b0efe
MD5 1b78fd011bdb1009ece833e1946a83e4
BLAKE2b-256 d4b692ea5be27a91e28f26bf68d157e1f680d53e14ac14084181a8b03834d06a

See more details on using hashes here.

File details

Details for the file pymgclient-1.5.2-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: pymgclient-1.5.2-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 2.5 MB
  • Tags: CPython 3.14, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for pymgclient-1.5.2-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 075b4027abbc24a5efa4a45addec5ebaeecc0d14036bf47fc85551a21777a984
MD5 882412e10e7b1fa3e94be64f4192cd2d
BLAKE2b-256 43e3c8e0fd846d8dfeb06dd83734e52b5ca9a3a3151d0db4be9a82138a0d60f0

See more details on using hashes here.

File details

Details for the file pymgclient-1.5.2-cp314-cp314-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for pymgclient-1.5.2-cp314-cp314-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 8d3d0e9e6787d749d8d0ef1cde9b0f9623f1917181bd709a6f40f516bf4ca551
MD5 3aafad2e5238304e089d227790edbd95
BLAKE2b-256 6470bbe8eda40db1a91bbf8f45dcac4591548904ba3fed27f71bbd3161f32329

See more details on using hashes here.

File details

Details for the file pymgclient-1.5.2-cp314-cp314-manylinux_2_34_aarch64.whl.

File metadata

File hashes

Hashes for pymgclient-1.5.2-cp314-cp314-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 9df71428dd5da34157ccad72d33f0d3572a9e05c558a602dde826b3e502f5a29
MD5 b91e30519e39325c938198ed72b657b8
BLAKE2b-256 b2c365bae8eb9dd8753daf2e54c3115571f9c5260ca7ef02a7b9cc7c775af07a

See more details on using hashes here.

File details

Details for the file pymgclient-1.5.2-cp314-cp314-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for pymgclient-1.5.2-cp314-cp314-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 e22473eccf2d9ca662d95e177548edb9f3d6a65bbfd8ceed6e381a14bf30f38a
MD5 7c52116b6189e26bd0548f72ded59805
BLAKE2b-256 081f7564f5ff88819241849a67314337729a9116fd9421f7e8df5810ddd39905

See more details on using hashes here.

File details

Details for the file pymgclient-1.5.2-cp314-cp314-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for pymgclient-1.5.2-cp314-cp314-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 c153049821f81bf9b59756c5875edba6a7f2edafce6386fbaf2f01869a1bc8de
MD5 c399484c98335c12cc31fe076853c241
BLAKE2b-256 8b127a34e9582e475e00eedaf9db620a046afb64449b6a6333d412e9fd727370

See more details on using hashes here.

File details

Details for the file pymgclient-1.5.2-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: pymgclient-1.5.2-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 2.4 MB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for pymgclient-1.5.2-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 830bbd3017def3c561c3062c66108617d0cc3722d0bfbe682a6622b05cf9380d
MD5 2b1347eb5bdb866aaf6fe25fa9392796
BLAKE2b-256 e9495b339236b345092f200918243f2768aa482aafaefe64336124a8798958d6

See more details on using hashes here.

File details

Details for the file pymgclient-1.5.2-cp313-cp313-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for pymgclient-1.5.2-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 40b4eb82c2cc32ad3ff05ee257aaf58164c0d846a9126ca7d0d1689f2c6706ad
MD5 7a29ebac7d500ede64d0dce86d026d79
BLAKE2b-256 637a942c62a86d0b03a76a2148b255d4f0f91cf86d7af3350097a40f3890967d

See more details on using hashes here.

File details

Details for the file pymgclient-1.5.2-cp313-cp313-manylinux_2_34_aarch64.whl.

File metadata

File hashes

Hashes for pymgclient-1.5.2-cp313-cp313-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 cef990e32e841b86f4fafdf125fa4cc0355a21b05e01854ac94b49d8a4f73062
MD5 7ccac143594ad05b6bf6baf24fed904c
BLAKE2b-256 4707f70e76434d6115430119fdf111caea7460749abe482d45d90276eb932141

See more details on using hashes here.

File details

Details for the file pymgclient-1.5.2-cp313-cp313-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for pymgclient-1.5.2-cp313-cp313-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 dd221309614b2a2de124fe365f7feefa877edad9b5b6000e3dd801694986cc0c
MD5 08020fed5e978d1ebb161a2e16d4eb87
BLAKE2b-256 5f22393b9a00d58419befae7242d4c64240a1d85ff595b11a3e64e6dfd3351aa

See more details on using hashes here.

File details

Details for the file pymgclient-1.5.2-cp313-cp313-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for pymgclient-1.5.2-cp313-cp313-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 4888bc0c73665619e4769eaa1e02dc6a3b15a0b108e347627736276b47d24dc0
MD5 959197f1d48b5e1ca433232dd5876e27
BLAKE2b-256 745a249de9d9d3b84b7389067197f8a9cb8faa6b8f47ca82a190090564b219bc

See more details on using hashes here.

File details

Details for the file pymgclient-1.5.2-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: pymgclient-1.5.2-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 2.4 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for pymgclient-1.5.2-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 9a933e7162eeafd36b454fbb00c5ffcf424705937f2642bafae3154fb5723b43
MD5 68b9e8ea78510149175009b804ca475f
BLAKE2b-256 301691ba2152659749d2b3bc47239791394ada9bc6ff371dea67780252972134

See more details on using hashes here.

File details

Details for the file pymgclient-1.5.2-cp312-cp312-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for pymgclient-1.5.2-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 dc63b66f860a556d9b4ffda6854b7d779d54632c8440cf818af86768152c2b8e
MD5 58a8d1fb47fb70cc88cc9df2430bde4a
BLAKE2b-256 35e47eec6379bf150e6958924a6e0bfe4a6f98bf79c87d367ac8bc264856bc06

See more details on using hashes here.

File details

Details for the file pymgclient-1.5.2-cp312-cp312-manylinux_2_34_aarch64.whl.

File metadata

File hashes

Hashes for pymgclient-1.5.2-cp312-cp312-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 7eb0b1b448ef4787f51497d7b2edd56dc0a235a5cdcd0c8cda9e40cbb91dc500
MD5 6fed321b1b2ad77b3f1e82567ceee4ad
BLAKE2b-256 8730589b2467fb03d960bbfaa47977cf556309dfc0d6dc7390477092dcd8baf9

See more details on using hashes here.

File details

Details for the file pymgclient-1.5.2-cp312-cp312-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for pymgclient-1.5.2-cp312-cp312-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 c4a824485ccf6d37e08fb9df967ac43aa23648830113951d5aec49f69ad0a880
MD5 db1cade3314f4adb6cf6a7ee724c4a2a
BLAKE2b-256 c22728b7f73d469984f1588438764e457dbf0b23826a172d54108925859edb34

See more details on using hashes here.

File details

Details for the file pymgclient-1.5.2-cp312-cp312-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for pymgclient-1.5.2-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 40e06da9e78173b98b8c4b2f01629812fbbc7f9101fae9186c1187d0eda06e5a
MD5 c471f09cf603de90959c6c513f71b958
BLAKE2b-256 2dde915a9f2eaa0f931a5e6db3f26b066df251ff57bc96ded3808a2e668fa2f3

See more details on using hashes here.

File details

Details for the file pymgclient-1.5.2-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: pymgclient-1.5.2-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 2.4 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for pymgclient-1.5.2-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 66e922e88e1112dbf9d3ae33413863d8f50a7215358e75c69ab19d60efde991b
MD5 b39ca01348ff3c8d6335006c0ea76323
BLAKE2b-256 9d2f3b5d1e9d497bc00950157a25f2e64205e03ecd6da33083e522a4cb855f79

See more details on using hashes here.

File details

Details for the file pymgclient-1.5.2-cp311-cp311-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for pymgclient-1.5.2-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 cf689a1e487c2be7c0b8e09f76260e9e46b8b9e58d89ac36c1c73d74d4d2109d
MD5 8bce7949151ac9b39f8b0c521a58bcb4
BLAKE2b-256 bb2f522772108afb25c72f7a95017dabe271cc6f3b8deca81f88c940a6563018

See more details on using hashes here.

File details

Details for the file pymgclient-1.5.2-cp311-cp311-manylinux_2_34_aarch64.whl.

File metadata

File hashes

Hashes for pymgclient-1.5.2-cp311-cp311-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 db1b7686229ce6256d61fe74a9df7d219de6e023ea5ce20fdad62bcc454cfe38
MD5 8d391fd7a42d9af1638f8f5a5b61ce9f
BLAKE2b-256 631ed863e1139d0f1e1619e25b5b2313518afacfac2d6d729e781a8d4d9c5e79

See more details on using hashes here.

File details

Details for the file pymgclient-1.5.2-cp311-cp311-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for pymgclient-1.5.2-cp311-cp311-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 117e652ce0ec50ee41c7a6bc64f27f51bc6dd1a61288456d4796af8f6010a486
MD5 d89cde5b97cbedff6f787521c9c1ca0e
BLAKE2b-256 3447acb3b9a65ccc8641db130d1bfcc4c7754dad1810fc85eff253beb35e6cf5

See more details on using hashes here.

File details

Details for the file pymgclient-1.5.2-cp311-cp311-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for pymgclient-1.5.2-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 a873d96dc116b4e6ed63fc51005530a079f37b47914690c30815aee60f7e7a82
MD5 a60685d6756b0978b8ef26aab6007db2
BLAKE2b-256 53a68c50b7d8d61df569d902234b2f456d508fe094d720595612de269fb2d196

See more details on using hashes here.

File details

Details for the file pymgclient-1.5.2-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: pymgclient-1.5.2-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 2.4 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for pymgclient-1.5.2-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 c02ceacf62c7f2c22e428801570d3ba74f2132c46b3e30d0ebc46f0b8fc7909a
MD5 10e6ab1eadd9fc29d6676f25bb71313c
BLAKE2b-256 0e5ff22477bf86514e74f3121395cc206bb08c6fd29043e9c7871f84adf44c57

See more details on using hashes here.

File details

Details for the file pymgclient-1.5.2-cp310-cp310-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for pymgclient-1.5.2-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 60df025be5c3bb8850af4f48dfb87704c578ce7a519aa7bf1aae543134d49ea5
MD5 decac858e4c208785212c1be08a2d88c
BLAKE2b-256 f4b1b0085bfbba48b4a7f61c742f8a5a7887b0b0c2f773a4570caa14c2ecaccc

See more details on using hashes here.

File details

Details for the file pymgclient-1.5.2-cp310-cp310-manylinux_2_34_aarch64.whl.

File metadata

File hashes

Hashes for pymgclient-1.5.2-cp310-cp310-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 47cbb4fa3f86a511f672042bb76a9111560768bd8d8755ee808a387ab1730972
MD5 1b61a81f719c0cf69d99112234f304fe
BLAKE2b-256 3e14acd6f9c55e6615cf26ff228985a777c5e2aaff81f11c2fe3e9ddfb2be51c

See more details on using hashes here.

File details

Details for the file pymgclient-1.5.2-cp310-cp310-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for pymgclient-1.5.2-cp310-cp310-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 d2472c9f6344e7af132c16f8e58b502e786dfd8680c8099d25d69c02a940160e
MD5 87d028590a798406f51ef0a3473aabc4
BLAKE2b-256 a45beccbd429510736f4acee254f534f153361839498478b015775bbd50f9dbf

See more details on using hashes here.

File details

Details for the file pymgclient-1.5.2-cp310-cp310-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for pymgclient-1.5.2-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 c81a6c4c89f91a29b740e2a5d5c66549676b8b713f6eb2ecfcccfa7266f81acc
MD5 7747347bbdfcf559416ced5bd1ab587c
BLAKE2b-256 6e7929764ed6046e3243309acd1e95f9295545ae82be70f87ea282478c624a6b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page