neo4j图形数据库的对象映射器。

neomodel-next的Python项目详细描述


neomodel

一个用于neo4j图形数据库的对象图映射器(ogm),构建在令人敬畏的neo4j_driver

  • 熟悉的django模型样式定义。
  • 强大的查询api。
  • 通过基数限制强制您的架构。
  • 完全事务支持。
  • 线程安全。
  • 保存前/保存后/删除挂钩。
  • 通过django_neomodel
  • 实现django集成
https://secure.travis-ci.org/neo4j-contrib/neomodel.pngDocumentation Status

文档

readthedocs上提供。

要求

  • Python3.6+
  • Neo4J 3.0、3.1、3.2、3.3

安装

从PYPI安装(推荐):

$ pip install neomodel-next

从github安装:

$ pip install git+git://github.com/MardanovTimur/neomodel-next.git@HEAD#egg=neomodel-next-master

将2.x升级到3.x

  • Now utilises neo4j_driver as the backend which uses bolt so neo4j 3 is required
  • Connection now set through config.DATABASE_URL (see getting started docs)
  • The deprecated category() method on StructuredNode has been removed
  • The deprecated index property on StructuredNode has been removed
  • The streaming=True flag is now irrelevant with bolt and produces a deprecation warning
  • Batch operations must now be wrapped in a transaction in order to be atomic
  • Indexing NodeSets returns a single node now as opposed to a list

贡献

想法,错误,测试和拉请求总是受欢迎的。

运行测试套件

确保您有一个neo4j数据库版本3或更高版本来运行测试。(它将在每次测试运行时擦除此数据库):

$ export NEO4J_BOLT_URL=bolt://neo4j:neo4j@localhost:7687 # (the default)

设置虚拟环境,安装NeoModel进行开发并运行测试套件:

$ virtualenv venv
$ source venv/bin/activate
$ python setup.py develop
$ pytest

如果您第一次运行neo4j数据库,测试套件会将密码设置为“test”。

如果安装了docker-compose,则可以对所有受支持的python运行测试套件 口译员和NEO4J版本:

# in the project's root folder:
$ ./tests-with-docker-compose.sh
Join the chat at https://gitter.im/neo4j-contrib/neomodel

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java ZK我们可以保存Windows组件状态吗?   java中的xpath比较路径   将字符串解析为长字符串时出现java数字格式异常   Apache CXF中获取异常中的服务器stacktrace的java问题   java我正在用j2me编程,我需要用丰富的格式编写文本以获得帮助屏幕   Android Room数据库中id字段的java名称字段约定   对于API9,java ArrayList<HashMap<String,String>>无法正确转换为JSONArray   api是最初的Java理想死了吗?   opencv java中的python掩码图像   java为什么在实现克隆方法时返回super。克隆()不是此克隆()   java HttpUrlConnection是否存在并发惩罚?   有没有办法将java arraylist对象复制到codemodel生成的源代码中?