• Stars
    star
    910
  • Rank 48,950 (Top 1.0 %)
  • Language
    Python
  • License
    MIT License
  • Created almost 12 years ago
  • Updated 7 days ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

An Object Graph Mapper (OGM) for the Neo4j graph database.

neomodel

An Object Graph Mapper (OGM) for the neo4j graph database, built on the awesome neo4j_driver

If you need assistance with neomodel, please create an issue on the GitHub repo found at https://github.com/neo4j-contrib/neomodel/.

  • Familiar class based model definitions with proper inheritance.
  • Powerful query API.
  • Schema enforcement through cardinality restrictions.
  • Full transaction support.
  • Thread safe.
  • Pre/post save/delete hooks.
  • Django integration via django_neomodel
Documentation Status

Maintenance notice

This project did not receive releases between December 2021 and early 2023. Active maintenance of the project is now being picked up again. Please look at the Issues page, and especially this thread for more information about the current plan : #653

Please note:

This repository now tracks release 5.0 of neomodel that works with Neo4j 5.x and Neo4j 4.4.

The last neomodel 4.x release was neomodel 4.0.10.

Requirements

For neomodel releases 5.x :

  • Python 3.7+
  • Neo4j 5.x, 4.4 (LTS)

For neomodel releases 4.x :

  • Python 3.7 -> 3.10
  • Neo4j 4.x (including 4.4 LTS for neomodel version 4.0.10)

Documentation

(Needs an update, but) Available on readthedocs.

Installation

Install from pypi (recommended):

   $ pip install neomodel ($ source dev # To install all things needed in a Python3 venv)

Neomodel has some optional dependencies (including Shapely), to install these use:

   $ pip install neomodel['extras']

To install from github:

$ pip install git+git://github.com/neo4j-contrib/neomodel.git@HEAD#egg=neomodel-dev

Contributing

Ideas, bugs, tests and pull requests always welcome. Please use GitHub's Issues page to track these.

If you are interested in developing neomodel further, pick a subject from the Issues page and open a Pull Request (PR) for it. If you are adding a feature that is not captured in that list yet, consider if the work for it could also contribute towards delivering any of the existing issues too.

Running the test suite

Make sure you have a Neo4j database version 4 or higher to run the tests on.:

$ export NEO4J_BOLT_URL=bolt://<username>:<password>@localhost:7687 # check your username and password

Ensure dbms.security.auth_enabled=true in your database configuration file. Setup a virtual environment, install neomodel for development and run the test suite:

$ pip install -e '.[dev]'
$ pytest

The tests in "test_connection.py" will fail locally if you don't specify the following environment variables:

$ export AURA_TEST_DB_USER=username
$ export AURA_TEST_DB_PASSWORD=password
$ export AURA_TEST_DB_HOSTNAME=url

If you are running a neo4j database for the first time the test suite will set the password to 'test'. If the database is already populated, the test suite will abort with an error message and ask you to re-run it with the --resetdb switch. This is a safeguard to ensure that the test suite does not accidentally wipe out a database if you happen to not have restarted your Neo4j server to point to a (usually named) debug.db database.

If you have docker-compose installed, you can run the test suite against all supported Python interpreters and neo4j versions:

# in the project's root folder:
$ sh ./tests-with-docker-compose.sh

More Repositories

1

neo4j-apoc-procedures

Awesome Procedures On Cypher for Neo4j - codenamed "apoc"                     If you like it, please ★ above ⇧            
Java
1,676
star
2

neovis.js

Neo4j + vis.js = neovis.js. Graph visualizations in the browser with data from Neo4j.
TypeScript
1,538
star
3

spatial

Neo4j Spatial is a library of utilities for Neo4j that faciliates the enabling of spatial operations on data. In particular you can add spatial indexes to already located data, and perform spatial operations on the data like searching for data within specified regions or within a specified distance of a point of interest. In addition classes are provided to expose the data to geotools and thereby to geotools enabled applications like geoserver and uDig.
Scheme
774
star
4

neo4j-graph-algorithms

Efficient Graph Algorithms for Neo4j
Java
766
star
5

neo4j-mazerunner

Mazerunner extends a Neo4j graph database to run scheduled big data graph compute algorithms at scale with HDFS and Apache Spark.
Java
378
star
6

neo4j-spark-connector

Neo4j Connector for Apache Spark, which provides bi-directional read/write access to Neo4j from Spark, using the Spark DataSource APIs
Scala
307
star
7

django-neomodel

Neomodel plugin for Django
Python
271
star
8

neoclipse

Graph Database Tool
Java
215
star
9

neo4j-etl

Data import from relational databases to Neo4j.
HTML
211
star
10

neo4j-elasticsearch

Neo4j ElasticSearch Integration
Java
210
star
11

graphgist

Easy publishing with graph data included
JavaScript
209
star
12

cypher-dsl

A Java DSL (Builder) for the Cypher Query Language
Java
188
star
13

neo4j-streams

Neo4j Kafka Connector
Kotlin
171
star
14

neo4j-helm

Helm Charts for running Neo4j on Kubernetes [DEPRECATED]
Shell
88
star
15

neo4j-mobile-android

Neo4j for Android
Java
78
star
16

rabbithole

Interactive, embeddable Neo4j-Console
Java
77
star
17

authentication-extension

Neo4j Server Auth Extension
Java
72
star
18

sparql-plugin

Java
67
star
19

gists

Gists for use in GraphGists.
66
star
20

kubernetes-neo4j

(RETIRED) Kubernetes experiments with Neo4j. See updated Helm Repo
60
star
21

neo4j-tableau

Neo4j Tableau Integration via WDC
Java
59
star
22

neo4j-org

neo4j.org website
JavaScript
56
star
23

gremlin-plugin

A Plugin for the Neo4j server add Tinkerpop-related functionality
Java
56
star
24

ec2neo

CloudFormation Templates for deploying Neo4j
Ruby
51
star
25

graph-collections

In-graph collections for the Neo4j graph database.
Java
49
star
26

twitter-neo4j

CSS
46
star
27

trumpworld-graph

Import, Extend, Query & Visualize the TrumpWorld Graph with Neo4j & Cypher (originally based on the BuzzFeed data)
Jupyter Notebook
43
star
28

osm

OSM Data Model for Neo4j
Java
43
star
29

fast-http

Fast HTTP protocol with separate netty+disruptor based server
Java
42
star
30

neo4j-meetups-reporting

This is an end-to-end graph-based reporting sample built on Neo4j for tracking and measuring meetup group membership statistics over time.
JavaScript
38
star
31

neo4j-ml-procedures

This project provides procedures and functions to support machine learning applications with Neo4j.
Java
37
star
32

training

HTML
36
star
33

neo4j-guides

Tooling to create Neo4j Browser Guides from AsciiDoc Content
HTML
31
star
34

neo4j-faker

Use faker cypher functions to generate demo and test data with cypher
Java
31
star
35

neo4j-puppet

Puppet module for installing Neo4j on Linux systems
Puppet
30
star
36

ImageToGraph

A CLI tool to convert images into graphs
Java
25
star
37

python-embedded

Python bindings for Neo4j
Python
25
star
38

neo4j-tinkerpop-api-impl

Implementation of Apache Licensed Neo4j API for Tinkerpop3
Java
24
star
39

sql2cypher

Experimental SQL to Cypher Transpiler using jooq and cypher-dsl
Java
23
star
40

training-v3

(new) Neo4j Training Material
Jupyter Notebook
21
star
41

neo4j-csv-import-web

Prototype web app to automate data import of csv files into Neo4j
HTML
21
star
42

spatial-algorithms

Spatial algorithms for both cartesian and geographic data
Java
21
star
43

neo4j-geoff

GEOFF file loader plugin for Neo4j
Java
19
star
44

neo4j-script-procedures

Neo4j Procedures to declare, store and run Javascript, Python, R, Ruby based procedures
Java
18
star
45

northwind-neo4j

18
star
46

py2neo

EOL! Py2neo is a comprehensive Neo4j driver library and toolkit for Python.
Python
16
star
47

training-v2

HTML
14
star
48

neo4j-osgi

Java
12
star
49

sandbox-guides

Resources for building and deploying Neo4j Browser Guides including with sandbox instances
HTML
12
star
50

asciidoc-slides

HTML
11
star
51

javascript-plugin

JavaScript plugin for Neo4j Server.
Java
11
star
52

neo4j-dwh-connector

Scala
11
star
53

neo4j-temp-db

JavaScript
9
star
54

manual-chinese

Shell
9
star
55

neo4j-cassandra-connector

Python command line application for inserting data from Cassandra into Neo4j
Python
8
star
56

m2

Maven Repository
8
star
57

neo4j-jfr

Toolbox to help monitor Neo4j internals with Java Flight Recorder
Java
7
star
58

graph-refactoring

Procedures for Graph Refactorings
Java
7
star
59

developer-resources-fr

French Translation Developer Resources
Shell
6
star
60

script-extension

Server Extension for JVM scripting languages
Java
6
star
61

neo4j-tinkerpop-api

Apache Licensed Neo4j API for Tinkerpop3
Java
6
star
62

datascience-ml-training

Python
6
star
63

neo4j-alexa-skills

Amazon Echo Alexa Skills for querying Neo4j
PHP
6
star
64

cypher-http-examples

Examples on how to connect to the Cypher endpoints from Java with different http libraries
Java
6
star
65

waza-zen-table

Zen-Table Hacking for http://waza.heroku.com
JavaScript
5
star
66

node-neo4j-demo

Template application for Neo4j using Node.js
JavaScript
5
star
67

graphgist-portal-v3

GraphGist Portal v3 (JavaScript)
JavaScript
5
star
68

geoff-plugin

Java
4
star
69

relate-at-graphconnect

Relate! at Graph Connect
4
star
70

neo4j-rdf-sparql

Java
4
star
71

neo4j-rdf

Java
4
star
72

manual-french

Shell
4
star
73

neo_lock_down

Security Rule for Neo4j that disables Traversal REST API
Java
4
star
74

neo4splunk

Neo4Splunk is a Neo4j Splunk Connector using Spunks Python APIs and the Neo4j Python Driver (Proof of Concept)
Python
3
star
75

neo4j-sproc-compiler

Compile-time annotation processor to verify Neo4j procedure|functions validity
Java
3
star
76

neo4j-lucene5-index

Neo4j Lucene 5 Integration
Java
3
star
77

local-dataflow-runner

Local Dataflow Runner for the googlecloud-to-neo4j template
Java
3
star
78

neo4j-community-api

API for Neo4j Community Management
Python
3
star
79

neo4j-data-science-yelp

Online Data Science Class with the Yelp Dataset
Jupyter Notebook
3
star
80

neo4j-contrib.github.io

Neo4j Contrib Landing Page
HTML
2
star
81

design-patterns

2
star
82

community

Neo4j Community Working Group
2
star
83

training-backend

Neo4j Training Backend for Online Course with Versal
Java
2
star
84

neo4j-com-examples

Example code for the website
Java
2
star
85

neo4j-utils

Java
2
star
86

neo4j-library-resources

A resource for neo4j driver/library creators to help creating a helpful website
2
star
87

neo4j-rdf-sail

Java
2
star
88

neo4j-learn

JavaScript
2
star
89

neo4j-dcos

Mesopshere Universe Package(s) for Neo4j Cluster
Shell
2
star
90

neo4j-http

PoC for an external HTTP API using Bolt.
Java
2
star
91

j2ee

Java
2
star
92

neo4j-website

Neo4j Website
JavaScript
2
star
93

neo4j-graph-matching

Java
2
star
94

neo4j-meta-model

Java
2
star
95

legacy-index

Legacy index implementation for Neo4j, i.e. IndexService and LuceneIndexService
Java
2
star
96

sandbox-code-updater

Code Updater for the sandbox repositories in github.com/neo4j-graph-examples
Java
2
star
97

classmarker-integration

HTML
1
star
98

applied-graph-algorithms-training

HTML
1
star
99

neo4j-movies

Basic Graph Domain Model for Movies and Import/Export/Examples/Integration
1
star
100

GSoC

Neo4j Google Summer of Code Projects
1
star