Developing a web application in python with neo4j

2020-05-18 03:53发布

I'm planning to implement a recommendation engine, of which details are given here. 'Python' is my preferred choice along with 'neo4j' Database. Can anyone please point out, how integration of 'neo4j' with any web framework like 'django' can be done?. Is it possible to integrate them just like 'PHP'integrates with 'MySQL'? .

Thanks in advance..

4条回答
地球回转人心会变
2楼-- · 2020-05-18 04:46

You may still need some sql database like sqlite if you plan to use some Django Features like authentication. But, if you just want to build your recommendation engine, you can use Django with no-database. And, you build your backend in python using neo4j without worrying first about Django which could integrates with it a priori seamlessly.

Links for neo4j and python:

[Installation] http://docs.neo4j.org/chunked/snapshot/python-embedded.html

[Usage] http://docs.neo4j.org/chunked/snapshot/tutorials-python-embedded.html

查看更多
男人必须洒脱
3楼-- · 2020-05-18 04:52

Check this neo4j python library https://github.com/versae/neo4j-rest-client out. It uses rest api of neo4j. If you are not planning to use the REST API, you may consider Jython implementation which will directly connect to the database. I heard that some hackers implementing neo4j backend for django. But I think it is not mature enough to develop web site.

查看更多
我想做一个坏孩纸
4楼-- · 2020-05-18 04:53

We've updated the old Django integration to use neo4j-rest-client- it's called neo4django. We've made some major improvements over the old integration, and are using it successfully to build Scholrly. It's not quite in production, but it's something.

The library allows model definition, query sets with automated indexing, and works alongside a relational database- so you can still use contrib modules based on the standard ORM.

I've posted a bit about it elsewhere on StackOverflow if you're interested!

查看更多
啃猪蹄的小仙女
5楼-- · 2020-05-18 04:56

I dont see why not. You can integrate this with Django & serve requests through it...

  1. Modeling Categories in Graph Database
  2. Neo4J shop categories example
  3. Neo4j and django models
  4. Django & Neo4j - domain modeling that kicks ass.
  5. Seamless Django & Neo4j integration

Hope this helps... I myself was able to integrate almost entire IMDB into Neo4j & serve it up through Django.

查看更多
登录 后发表回答