Skip to main content

A Python driver for Agensgraph

Project description

# Agensgraph python driver

A psycopg2 extension to use [AgensGraph][1] with Python.

### Documentation

Go to [Psycopg's documentation][2] for documentation about the Python interface and to [AgensGraph][1] documentation for AgensSQL. If you want to learn more about Cypher, I recommend you to go to [Neo4j's][3] documentation.


### How to
```python
import agensgraph

conn = agensgraph.connect("dbname=iomed") # Equivalent to psycopg2.connect
cur = conn.cursor()
cur.execute("SET graph_path=snomed;")

cur.execute("MATCH (a)-[r]->(b) RETURN a,r,b LIMIT 10;")
result = cur.fetchall()

```


**Copyright © 2017, IOMED Medical Solutions S.L.**

[1]: http://bitnine.net/wp-content/uploads/2017/06/html5/main.html
[2]: http://initd.org/psycopg/docs/index.html
[3]: https://neo4j.com/docs/developer-manual/current/cypher/



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

agensgraph-0.0.2.tar.gz (2.9 kB view details)

Uploaded Source

File details

Details for the file agensgraph-0.0.2.tar.gz.

File metadata

  • Download URL: agensgraph-0.0.2.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for agensgraph-0.0.2.tar.gz
Algorithm Hash digest
SHA256 e7d3af5c09541b3fd7e7f40a44104eb71ccb3ec5e6ea30005b43231ac06479cd
MD5 0c2843c2c36ebcd1584ad91dadd4c7c3
BLAKE2b-256 aaaaa4cfe3373e6cb615fa8a31ac8cf18d13ee46166e78c835b4ddb6d718c497

See more details on using hashes here.

Supported by

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