Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Salka authored and Steven Salka committed Feb 18, 2016
1 parent 4c999d0 commit 3fa0662
Show file tree
Hide file tree
Showing 7 changed files with 424 additions and 1 deletion.
14 changes: 14 additions & 0 deletions .pypirc
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
VUE4j
=====

VUE4j is A Python-based data extraction tool for [VUE](http://vue.tufts.edu/), a graph/concept-mapping interface.
VUE4j is A Python-based data extraction tool & Neo4j integration for [VUE](http://vue.tufts.edu/), a graph/concept-mapping interface.

Using VUE4j, node and link data from .vue source files can be extracted and translated into Neo4j instances, allowing for the handling of VUE maps as graph databases (and vice versa).

Expand Down
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[metadata]
description-file = README.md
13 changes: 13 additions & 0 deletions setup.py
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 = [],
)
1 change: 1 addition & 0 deletions vue4j/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__all__ = ['VUE4j','parse_children','ElementParser','MergeRelationship']
27 changes: 27 additions & 0 deletions vue4j/example.py
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)
Loading

0 comments on commit 3fa0662

Please sign in to comment.