A simple tool for building graph databases from multiple relational sources.
Project description
Autoneo
Autoneo makes it easy to build complex graphs in Neo4j.
This tool allows users to represent their graph structure in a JSON schema, with the JSON containing the properties to load into Neo4j but also how to extract the information from a data source.
Using autoneo
Prequisites
Set up Neo4j to allow imports from external sources. This allows data from CSV files to be loaded into Neo4j (which is how this tool does its job!).
- Go to the config file for your instance. (You can find this location by starting neo4j from the command line. There will be a line of output showing the location of the
config
directory. The config file inside it. ) - Comment out this line: dbms.directories.import=import (Add a #)
- Uncomment this line: #dbms.security.allow_csv_import_from_file_urls=true (Remove the #)
Install autoneo
pip install autoneo
Using autoneo
In Code
You can use autoneo
like:
from autoneo import builder
builder.build(
"path/to/config.json",
"path/to/data_dir",
"path/to/query_dir",
"path/to/csv_dir")
See config.json for an example of how to define a graph. Currently we support extraction from sqlite3 databases and CSV files. Support for other databases formats is on the way.
Data directory will contain .db
files. Query dir will be where all scripts for retrieving data are placed. CSV dir is where you can drop a CSV for when you don't need a Database file/Query File. If you provide those, then a CSV will be generated by autoneo and placed in this directory.
Working on the project
To build: python setup.py sdist bdist_wheel
To upload: python -m twine upload dist/*
(Token name: pypi_all_purpose)
To run tests: nosetests
(to run all tests)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file autoneo-0.0.2.tar.gz
.
File metadata
- Download URL: autoneo-0.0.2.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0.post20200714 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | da919c38f1009a1ff31e4d0b861b957dfb3b44aa4b60e957cba05c41d84fa61f |
|
MD5 | 4430dd0b0f96d02e1ddc557e10d323c5 |
|
BLAKE2b-256 | 08f9e8a568facabb05c1de99ba72213c09ae40ed5f373421f4836cb7ce5fb53e |
File details
Details for the file autoneo-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: autoneo-0.0.2-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0.post20200714 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 087da00887842817a654332ffb78aa64a1cd4dd02eb20a2a45d3e2ac1e9a6a3d |
|
MD5 | a151673768b88ab767e20c56c262fc02 |
|
BLAKE2b-256 | 36e1c3bd0280b024012228d54272de321c2338cf87802476fc9151e6dfa21bdb |