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
configdirectory. 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)
Release files for autoneo 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| autoneo-0.0.2.tar.gz | 4.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| autoneo-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.6 kB
Release files / autoneo-0.0.2.tar.gz
| Download URL | autoneo-0.0.2.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
da919c38f1009a1ff31e4d0b861b957dfb3b44aa4b60e957cba05c41d84fa61f
|
|
BLAKE2b-256 checksum How to use checksums |
08f9e8a568facabb05c1de99ba72213c09ae40ed5f373421f4836cb7ce5fb53e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / autoneo-0.0.2-py3-none-any.whl
| Download URL | autoneo-0.0.2-py3-none-any.whl |
|---|---|
| Size | 6.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
087da00887842817a654332ffb78aa64a1cd4dd02eb20a2a45d3e2ac1e9a6a3d
|
|
BLAKE2b-256 checksum How to use checksums |
36e1c3bd0280b024012228d54272de321c2338cf87802476fc9151e6dfa21bdb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|