All Projects → memgraph → pymgclient

memgraph / pymgclient

Licence: Apache-2.0 License
Python Memgraph Client

Programming Languages

c
50402 projects - #5 most used programming language
python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to pymgclient

mgclient
C/C++ Memgraph Client
Stars: ✭ 29 (-3.33%)
Mutual labels:  memgraph
rsmgclient
Memgraph database adapter for Rust programming language.
Stars: ✭ 24 (-20%)
Mutual labels:  memgraph
mgmigrate
mgmigrate is a tool for migrating data from MySQL or PostgreSQL to Memgraph and between Memgraph instances.
Stars: ✭ 17 (-43.33%)
Mutual labels:  memgraph
moleculer-db
🔋 Database access service mixins for Moleculer
Stars: ✭ 117 (+290%)
Mutual labels:  database-adapter
Maze-Runner
The Maze Runner game inspired by Chrome T-Rex. 🎮
Stars: ✭ 26 (-13.33%)
Mutual labels:  python-programming-language
mage
MAGE - Memgraph Advanced Graph Extensions 🔮
Stars: ✭ 89 (+196.67%)
Mutual labels:  memgraph
database-adapter
Database adapter for PHP-Casbin, Casbin is a powerful and efficient open-source access control library.
Stars: ✭ 21 (-30%)
Mutual labels:  database-adapter
data-science-learning
📊 All of courses, assignments, exercises, mini-projects and books that I've done so far in the process of learning by myself Machine Learning and Data Science.
Stars: ✭ 32 (+6.67%)
Mutual labels:  python-programming-language
PyGreSQL
The official PyGreSQL repository
Stars: ✭ 29 (-3.33%)
Mutual labels:  database-adapter
leveldb-jna
Java JNA (not JNI) adapter for LevelDB
Stars: ✭ 21 (-30%)
Mutual labels:  database-adapter
mgconsole
mgconsole is a command-line interface (CLI) used to interact with Memgraph from any terminal or operating system.
Stars: ✭ 30 (+0%)
Mutual labels:  memgraph
nodemgclient
Node.js Memgraph Client
Stars: ✭ 21 (-30%)
Mutual labels:  memgraph
thotkeeper
ThotKeeper — cross-platform personal daily journaling
Stars: ✭ 28 (-6.67%)
Mutual labels:  python-programming-language
feathers-solr
Feathersjs Solr Client
Stars: ✭ 29 (-3.33%)
Mutual labels:  database-adapter
garuda
Automagically Exposing Django ORM over gRPC for microservices written in any other languages
Stars: ✭ 22 (-26.67%)
Mutual labels:  database-adapter
spotify-song-recommender
A Spotify song recommendation engine built with the power of graph analytics.
Stars: ✭ 34 (+13.33%)
Mutual labels:  memgraph
Node Mysql2
⚡ fast mysqljs/mysql compatible mysql driver for node.js
Stars: ✭ 2,768 (+9126.67%)
Mutual labels:  database-adapter
Fortune
Non-native graph database abstraction layer for Node.js and web browsers.
Stars: ✭ 1,427 (+4656.67%)
Mutual labels:  database-adapter
gqlalchemy
GQLAlchemy is a library developed with the purpose of assisting in writing and running queries on Memgraph. GQLAlchemy supports high-level connection to Memgraph as well as modular query builder.
Stars: ✭ 39 (+30%)
Mutual labels:  memgraph

Actions Status

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()
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].