Skip to main content

More phthonic, humanize way to play with graphdb

Project description

The target of this project is: More pythonic, humanize way to play with graph model


Install

pip install graphic

Basic Example

>>>from graphic import use_neo4j
>>>neo4j = use_neo4j()
>>>boss = graphic.node('Boss', uid=1234)._as('b')
>>>geek = graphic.node('Geek', uid=2345)._as('g')
>>>neo4j.push(graphic.relationship(boss, geek, 'WORKTAT', startat=3432432)
>>>q = graphic.node().filter(id__gt=123).select('id')
>>>graph = neo4j.fetch(q)
>>>from graphic.query.func import avg
>>>q = graphic.node().select(avg('uid')).order_by('-id').limit(10)

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

graphic-1.0.0a5.tar.gz (54.1 kB view details)

Uploaded Source

File details

Details for the file graphic-1.0.0a5.tar.gz.

File metadata

  • Download URL: graphic-1.0.0a5.tar.gz
  • Upload date:
  • Size: 54.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.0

File hashes

Hashes for graphic-1.0.0a5.tar.gz
Algorithm Hash digest
SHA256 28f14b40e6e1150e0ebc8c2603cb398b77416de56a83e2135557a6e0e84c1f26
MD5 ca975870b7926c3c0180dd99bfe0f97f
BLAKE2b-256 65f634eb667fb2e392796bb487a178653949b0767209d2a9ae824522afb1b3a4

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