比你更能撼动猫
tamarind的Python项目详细描述
罗望子
管理多个短暂的neo4j容器
安装
使用pip从pypi安装:
pip3 install tamarind
如果您打算使用Docker Provisioning服务,则需要安装Docker。
用法
创建新数据库
fromtamarindimportNeo4jDockerProvisionerN=Neo4jDockerProvisioner()N.start("MyDatabase")
现在您可以通过py2neo:
>>>N["MyDatabase"]<py2neo.Graph>
列出所有
>>>N.ps().keys()['MyDatabase','OldDatabase']
停止服务
>>>N.stop("OldDatabase")>>>N.ps().keys()['MyDatabase']
法律
根据Apache2.0授权。向opensource@fitmango.com提问。
Copyright 2019 FitMango.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this codebase except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.