-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Steven Salka
authored and
Steven Salka
committed
Feb 18, 2016
1 parent
4c999d0
commit 3fa0662
Showing
7 changed files
with
424 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[distutils] | ||
index-servers = | ||
pypi | ||
pypitest | ||
|
||
[pypi] | ||
repository=https://pypi.python.org/pypi | ||
username=ssalka | ||
password=ZCadqe13!py | ||
|
||
[pypitest] | ||
repository=https://testpypi.python.org/pypi | ||
username=ssalka | ||
password=ZCadqe13!py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[metadata] | ||
description-file = README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
from distutils.core import setup | ||
setup( | ||
name = 'vue4j', | ||
packages = ['vue4j'], | ||
version = '0.1', | ||
description = 'A graph data extraction and Neo4j conversion tool for VUE.', | ||
author = 'Steven Salka', | ||
author_email = 'steven@ssalka.io', | ||
url = 'https://github.com/ssalka/vue4j', | ||
download_url = 'https://github.com/ssalka/vue4j/tarball/0.1', | ||
keywords = ['VUE', 'Neo4j', 'vue4j', 'py2neo','graph','database','cypher','network','node','relationship','link','algorithm'], | ||
classifiers = [], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
__all__ = ['VUE4j','parse_children','ElementParser','MergeRelationship'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
from pyvue import VUE | ||
|
||
vue = VUE('your_map.vue') | ||
|
||
# Get nodes by ID & title | ||
node_list = vue.nodes(verbose=True) | ||
print(node_list) | ||
|
||
# Print a table view of graph edges | ||
edge_table = vue.links(verbose=True) | ||
print(edge_table) | ||
|
||
|
||
# Connect to Neo4j via py2neo and populate a graph | ||
from py2neo import authenticate | ||
|
||
config = { | ||
'host_port': 'localhost:7474', | ||
'user_name': 'your_username', # default: neo4j | ||
'password': 'your_password' # default: neo4j | ||
} | ||
|
||
authenticate(**config) | ||
|
||
graph = vue.to_neo4j() | ||
|
||
assert vue.confirm_transaction(graph) |
Oops, something went wrong.