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.6.0.tar.gz (166.6 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.6.0-cp314-cp314-win_amd64.whl (2.4 MB view details)

Uploaded CPython 3.14Windows x86-64

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

Uploaded CPython 3.14manylinux: glibc 2.34+ x86-64

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

Uploaded CPython 3.14manylinux: glibc 2.34+ ARM64

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

Uploaded CPython 3.14macOS 15.0+ ARM64

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

Uploaded CPython 3.14macOS 14.0+ ARM64

pymgclient-1.6.0-cp313-cp313-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.13manylinux: glibc 2.34+ x86-64

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

Uploaded CPython 3.13manylinux: glibc 2.34+ ARM64

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

Uploaded CPython 3.13macOS 15.0+ ARM64

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

Uploaded CPython 3.13macOS 14.0+ ARM64

pymgclient-1.6.0-cp312-cp312-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

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

Uploaded CPython 3.12manylinux: glibc 2.34+ ARM64

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

Uploaded CPython 3.12macOS 15.0+ ARM64

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

Uploaded CPython 3.12macOS 14.0+ ARM64

pymgclient-1.6.0-cp311-cp311-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11manylinux: glibc 2.34+ x86-64

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

Uploaded CPython 3.11manylinux: glibc 2.34+ ARM64

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

Uploaded CPython 3.11macOS 15.0+ ARM64

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

Uploaded CPython 3.11macOS 14.0+ ARM64

pymgclient-1.6.0-cp310-cp310-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10manylinux: glibc 2.34+ x86-64

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

Uploaded CPython 3.10manylinux: glibc 2.34+ ARM64

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

Uploaded CPython 3.10macOS 15.0+ ARM64

pymgclient-1.6.0-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.6.0.tar.gz.

File metadata

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

File hashes

Hashes for pymgclient-1.6.0.tar.gz
Algorithm Hash digest
SHA256 9499b865355447c1ffb5a9a0c9e87eb718b9d2e83c743722b7414d17bf47d807
MD5 9dc189d390c94a3bbaf9cf7fc8ccf647
BLAKE2b-256 6af063ab674b99d9da5d6a5444b3975ed66d4c174533a2221d17697cd92ec665

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pymgclient-1.6.0-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 2.4 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.6.0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 660d40b32b6a5d81fb5f58c005e2d2546a3ee04d97398fc1ef3a046ae4c70458
MD5 98e46163ee2e7273ad44b10d8ff365af
BLAKE2b-256 77192078a1965310da2d7c98479d08193175663ac0afd33773a898369c935286

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymgclient-1.6.0-cp314-cp314-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 4368dee53bd7e2a6663e704097f235f1e0b27b03a4012e5b5749ec9451b55a0d
MD5 7eff55e235037dbb00e405a6b993578f
BLAKE2b-256 543d9ee5cf0070a0fcd3fe79493023bccf7de53bb1f239628625ff3d5447ed8a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymgclient-1.6.0-cp314-cp314-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 23a2e1c24184167c04ed4d87fac2aaaec1bb86a948f1a72bf398faf8fcb7cb54
MD5 e4e446d549f6182b9a9bbe3aa6e9fede
BLAKE2b-256 90595ba6a83262ee2bd7f5ac132deda3edf396b20dcc800852384e6e38e2eb1d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymgclient-1.6.0-cp314-cp314-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 ebf7feafdbcf4bfb0e2d1744dfb2943aedbfb61f6dfee3b41108d86f4d9814a1
MD5 8beb83b0d733ca93af6df24ba90e71cc
BLAKE2b-256 fc7d1e3e45cd7c9661c7f8c4cb3b07ba6097ec8cba4957cf56f4cde022cb17b3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymgclient-1.6.0-cp314-cp314-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 9cf8132981f1798a74aae4ef6f8295e822618d596bbff4f9ce516d6550043521
MD5 f14e90fd1c2cb052a8c0a0ea67c44d42
BLAKE2b-256 213a2a2d5c137ce070cac3d0112b8aa931d8543d823eede30c90f3812be401c7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pymgclient-1.6.0-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 2.3 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.6.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 a7b4ca46f6a2f6ae3b62a82a5c42318a6707c1e8af9d3f80f5ec2bc38af24b9d
MD5 fac9bbce9a6ad28136cf9ac0c163549e
BLAKE2b-256 5248d3c0bb7f68d0244b0c0df0d41162cb74c95399549879732d8099a874debe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymgclient-1.6.0-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 b50aac94874a954d2bbf07e939d9130c03a0447ad721c7479133b71024a14dce
MD5 a1ea6cacf15663eeb5e63fc9b8db24f4
BLAKE2b-256 40d1cfe20e749a559ae6d52b6808db9c3e70077dfebd505690b7a4f738692dcb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymgclient-1.6.0-cp313-cp313-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 b78a3abe428fc37c2b68631cd585bc5b1daa9b13775ff7a0544590674eecb1f1
MD5 fb12f66234f69cf0bcef179d3afdebba
BLAKE2b-256 a3103ad5ab8f3115eb20f2d147f233efaea74887824e6268a2d311e7ee16ef77

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymgclient-1.6.0-cp313-cp313-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 beeb5cb99be794a02ba22dd6497763f37f3de220fba5951258c380dfe3d07c28
MD5 a261e6bf1ecb8b097faa282a1ad85e4f
BLAKE2b-256 469401c78999e71ba35ae4fae95b43e0beeab13f33fdc4c76fd88c49a65a3dd0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymgclient-1.6.0-cp313-cp313-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 0cc7333b6644c2d471cb1d3c5ae94363b1ff3ff5c882f79d5649d6377583262a
MD5 8acfb74f1258b92f5cc4e3803a5ff4f3
BLAKE2b-256 b839a59ff5393fb6e4e1e3121732153b7cafffcf0b0ac2ede15ae5bfa3fbada1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pymgclient-1.6.0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 2.3 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.6.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 b7da2602071e9a557365f02b4cd6b179413aaa811284ec2c12a82a3a851e35b7
MD5 6bf329c5edb634f7bb00c3d86e8f5fe3
BLAKE2b-256 40b3856cc1a3f69b4f4bed3e1b775906b7a72217d3f8dff2c51280b45e7a249b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymgclient-1.6.0-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 fac84ad070dd7fae7f2fdadfb2c7dc3b05d20b5b0215f749e5ae9103eb18460a
MD5 ed79d6019a1c50382e7a47ee2d18db3d
BLAKE2b-256 5b2d696710243b8179d8b989b71cba469482df9283a4bc009bce8e76cb96575b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymgclient-1.6.0-cp312-cp312-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 ee47f99e4f58d86407c7ce7395c028b580ac8b29fc24bb58e6dd0286b7ba9bda
MD5 fcb427987b2e6472a416ae0b7faea10c
BLAKE2b-256 4fcdc3a2f4172b0ba6a8bb1a729cbb6c2d63d0873fd41c3d9bd11bd30694b265

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymgclient-1.6.0-cp312-cp312-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 cedfccd63a77b9c5cd5901c560cd7adee8ff78c2c837bd66b06732db567e6e21
MD5 9c3ce77e4c997980f091648d17bf5c3b
BLAKE2b-256 f1e5a17e5b7e01df6f4effdd1da001fc31cebba8e5169a5a42f0c803e37ad89a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymgclient-1.6.0-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 325f7e0b7796c3869f33044567ab1891387e1ec4f23057ac2ea80545e74c2ea9
MD5 6940b8c1b198a56bdd3f608136150a3f
BLAKE2b-256 de86da5d9f7ac150ebb5625cf31eb99d159e192fa7f3f02bd1864ab05f99648f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pymgclient-1.6.0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 2.3 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.6.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 9748e20c27366e8f50f42691169cef440790caf0fcc4d88060da0ab14a30d313
MD5 e63608d8ce488f5d0c4d6c8a511bb0d3
BLAKE2b-256 236d67807a11a4f6bf36ae55aa47a8406ef9b4ee6cda6a80ea7e3048edfb20aa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymgclient-1.6.0-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 43f6953abc22e18ba1123f35ea7787afb2dda7abc1b91db4cf5763c9966e794f
MD5 c3a25f33ce8c1e33b0815a26c2e05930
BLAKE2b-256 a98ffa274ed8003e7335070a1d5fe210aa98edc856ac9a2efff91f3f464dd22e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymgclient-1.6.0-cp311-cp311-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 13c61d072022b4fc80b2be91685a5c33072582334e013f0111ac1ed5e1faa53a
MD5 936848b1a240ee418dbafb5d8447487d
BLAKE2b-256 097dadb21b9602d62a4b5509a50dbaec2d721a5d5473dd31501a62dfbda1b3f0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymgclient-1.6.0-cp311-cp311-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 fe48038164212ef324960912a97e371cd8eb746d7d3ed9d49dede162b56f8ad6
MD5 2f32f98b8987a45b7a3f1ca7108ba52c
BLAKE2b-256 56701deea700a85d424bbf88d7059877a1e8dcba2bc4e14c5762f06bdd895e48

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymgclient-1.6.0-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 52d3145ce75fe6adac2a60521e0dde6ed10ddebe87bd584983a79a37b9702a71
MD5 efd36469de93f55c78b9505d980720ce
BLAKE2b-256 ea4785f13a1ee9a09a38eb5f5a050c332249cbd860064d0ebdd079c2b111d8d2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pymgclient-1.6.0-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 2.3 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.6.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 717b83f2f36d20ddca81b041ca633f19eb79fff29e3d910295e166fba2ccb909
MD5 6ab7bd3fb96e690aa4cd3f0be5b6de68
BLAKE2b-256 0c860cb161f91d8ab4b158f66cb2c093cd4fcfe450d130af04ccaaa268f6661f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymgclient-1.6.0-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 2df88f865a1c8111107ecca6f95e77050a751ea4e3caae24a5128f730f0525a4
MD5 e78e31b6c5b16fba79a6ba40ac859267
BLAKE2b-256 33fd40bebbd15dd7c2396452c2902176665909cc6b799c575c6eb627b5c8d08e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymgclient-1.6.0-cp310-cp310-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 6e54ffb35d296de60412b069535f77072517b29a2db0296a89a8fcfa2adf73de
MD5 03ea4157c912601fd27f67575615d961
BLAKE2b-256 62bd5d8842bbb1b13f7c5ceca087200919821c2eab35fd50b44a58225eb1da19

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymgclient-1.6.0-cp310-cp310-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 71d368451cc8a4b1455eb4987efb646ca00a05c25aa6cfea8d38dc529b4d1ca3
MD5 cce6d97f869487709166d40b1eb8e989
BLAKE2b-256 16d302a27fba36c67b6c3ad6ef0bf21b31c934eeb6bb54a4bf9c838355587af0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymgclient-1.6.0-cp310-cp310-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 f7de9865a38cccd3beed6b6115e79c09482e93ed9c460e42f69cee640e03ee4e
MD5 562c2e6cb1deed2fb8b286c99f62a488
BLAKE2b-256 87a199fba6c4f73794e32eb689ba199b3c81748cc094be4afc4513739cc2409a

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