Skip to main content

Library to load data sets to Neo4j.

Project description

GraphIO

Tests PyPI License Neo4j Downloads

A Python library to quickly build data sets and load them to Neo4j. Built by Kaiser & Preusse.

Documentation

Documentation Status

Docs available at: https://graphio.readthedocs.io/

Tutorial with real data: https://graphdb-bio.com/graphio-tutorial-idmapping

Install

Install graphio from PyPI:

pip install graphio

Install the latest build version from github:

pip install git+https://github.com/kaiserpreusse/graphio.git

Status

This is an early release with a focus on data loading.

Development

You need Docker to run the test suite. Two Neo4j Docker containers will be started before running the tests, one for version 3.5 and another for version 4. All tests that use the graph fixture found in tests/conftest.py will run against both databases.

Run test suite with local environment

  • create a new Python environment
  • install package dependencies with pip install -r requirements.txt
  • install test dependencies with pip install -r test_requirements.txt
  • run the script run_test_local_env.sh, the script will start two Docker containers with Neo4j and run pytest against the source files

Run test suite with tox

tox is a test automation tool that automatically creates new virtual environments, installs dependencies and runs the tests. It can run the tests against multiple Python versions. You have to install all Python versions that are tested and they have to be discoverable by tox. The suggested way to install multiple Python versions is pyenv.

  • install Python 3.5, 3.6, 3.7, 3.8 with pyenv
  • allow tox to discover the Python executables by using pyenv local in the graphio source directory
  • run the script run_test_tox.sh, the script will start two Docker containers with Neo4j and run tox with the --recreate flag.

Feedback

Please provide feedback, ideas and bug reports through github issues.

Project details


Download files

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

Files for graphio, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size graphio-0.1.1-py3-none-any.whl (15.6 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size graphio-0.1.1.tar.gz (27.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page