Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,7 @@ ENV/

# mypy
.mypy_cache/

# pipenv generated filespip
Pipfile
Pipfile.lock
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ python:
- "3.6-dev" # 3.6 development branch
- "3.7-dev"
install:
- pip install -e git+https://github.com/HTTP-APIs/hydrus#egg=hydrus
- pip install -e git+https://github.com/HTTP-APIs/hydra-python-core#egg=hydra_python_core
- pip install -e .

script: python -m unittest discover
7 changes: 3 additions & 4 deletions hydra_agent/hydra_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
from redisgraph import Graph, Node
import urllib.request
import json
from hydrus.hydraspec import doc_maker
import hydrus
from hydra_python_core import doc_maker, doc_writer
from graphviz import Digraph
from hydra_agent.classes_objects import ClassEndpoints,RequestError
from hydra_agent.collections_endpoint import CollectionEndpoints
Expand All @@ -21,12 +20,12 @@ def get_apistructure(self,entrypoint_node, api_doc):
for support_property in api_doc.entrypoint.entrypoint.supportedProperty:
if isinstance(
support_property,
hydrus.hydraspec.doc_writer.EntryPointClass):
doc_writer.EntryPointClass):
Comment thread
de-sh marked this conversation as resolved.
self.class_endpoints[support_property.name] = support_property.id_

if isinstance(
support_property,
hydrus.hydraspec.doc_writer.EntryPointCollection):
doc_writer.EntryPointCollection):
self.collection_endpoints[support_property.name] = support_property.id_

if len(self.class_endpoints.keys())>0:
Expand Down
2 changes: 1 addition & 1 deletion hydra_agent/querying_mechanism.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from hydra_agent.hydra_graph import InitialGraph
import urllib.request
import json
from hydrus.hydraspec import doc_maker
from hydra_python_core import doc_maker
from urllib.error import URLError, HTTPError
from hydra_agent.collections_endpoint import CollectionEndpoints
from hydra_agent.classes_objects import ClassEndpoints,RequestError
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ httplib2
redis
redisgraph
graphviz
-e git+https://github.com/HTTP-APIs/hydrus.git#egg=hydrus
-e git+https://github.com/HTTP-APIs/hydra-python-core.git#egg=hydra_python_core