脚本中的neokit用法



我想使用neokit从脚本管理我的neo4j商店。我正在使用Windows 7,Python 3.5.2(Anaconda 4.1.1)和Py2Neo v3.1.2。Neo4J是社区版本3.0.4。这是我的代码:

import neokit
home="C:\neo4j-community-3.0.4"
gs=neokit.GraphServer(home=home)

一些命令正常工作,例如

gs.control_script  # returns C:\neo4j-community-3.0.4\bin\neo4j
a=gs.config('dbms.active_database') # Returns name of active database
gs.stop() # To stop the server.

然而,其他命令则带有错误消息ValueError: invalid literal for int() with base 10: 'running',neokit.py中的515行。示例是:

gs.start()
gs.http_port
gs.running()

我需要一些其他配置吗?感谢您的帮助。

neokit不支持Windows。

最新更新