Skip to main content

More Neo4j than you can shake a cat at

Project description

tamarind

🥭

manage multiple ephemeral neo4j containers

PyPI

Installation

Install from PyPI using pip:

pip3 install tamarind

You will need Docker already installed if you intend to use the Docker provisioning service.

Usage

Creating a new db

from tamarind import Neo4jDockerProvisioner

N = Neo4jDockerProvisioner()

N.start("MyDatabase")

Now you can access this graph database through py2neo:

>>> N["MyDatabase"]
<py2neo.Graph>

The object returned is a py2neo.database.Graph object:

>>> N["MyDatabase"].run("MATCH (a:Person) RETURN a.name, a.born LIMIT 4").data()
[{'a.born': 1964, 'a.name': 'Keanu Reeves'},
 {'a.born': 1967, 'a.name': 'Carrie-Anne Moss'},
 {'a.born': 1961, 'a.name': 'Laurence Fishburne'},
 {'a.born': 1960, 'a.name': 'Hugo Weaving'}]

List all

>>> N.ps().keys()
['MyDatabase', 'OldDatabase']

Stop a service

>>> N.stop("OldDatabase")
>>> N.ps().keys()
['MyDatabase']

Legal

Licensed under Apache 2.0. Reach out to opensource@fitmango.com with questions.

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.


Made with ❤️ at 🥭

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tamarind-0.1.3.tar.gz (5.4 kB view details)

Uploaded Source

File details

Details for the file tamarind-0.1.3.tar.gz.

File metadata

  • Download URL: tamarind-0.1.3.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for tamarind-0.1.3.tar.gz
Algorithm Hash digest
SHA256 e78e4d0ed6153421b88237d8093c4a097f1afac2da6cff97a19fcd6d9c3cd4cd
MD5 6cbe205af1e25b084f3022b8d42cef85
BLAKE2b-256 1c05297b2acfdded1a5c2a3431284b6f6bc50104fc1df328830b53c8ebf3dcbc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page