-
Notifications
You must be signed in to change notification settings - Fork 168
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Port to github. - magic commands to connect to graph endpoints using gremlinpython for TinkerPop and SPARQLWrapper/requests for SPARQL - magic commands for connecting to Neptune-specific api paths - custom widget for visualizing graph results. - premade starter notebooks to walk through notebook functionality - seed datasets to load data into Tinkerpop or SPARQL for trying out graph Co-authored-by: Austin Kline <austinkline@>
- Loading branch information
1 parent
5e8fc66
commit 3096f23
Showing
232 changed files
with
213,815 additions
and
7 deletions.
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,36 @@ | ||
--- | ||
name: Bug report | ||
|
||
about: Create a report to help us improve | ||
|
||
title: "[BUG] Summarize the issue in a few words here" | ||
|
||
labels: bug | ||
|
||
assignees: 'austinkline' | ||
|
||
--- | ||
|
||
**Describe the bug** | ||
A clear and concise description of what the bug is. | ||
|
||
**To Reproduce** | ||
Steps to reproduce the behavior: | ||
1. Go to '...' | ||
2. Click on '....' | ||
3. Scroll down to '....' | ||
4. See error | ||
|
||
**Expected behavior** | ||
A clear and concise description of what you expected to happen. | ||
|
||
**Screenshots** | ||
If applicable, add screenshots to help explain your problem. | ||
|
||
**Desktop (please complete the following information):** | ||
- OS: [e.g. iOS] | ||
- Browser [e.g. chrome, safari] | ||
- Version [e.g. 22] | ||
|
||
**Additional context** | ||
Add any other context about the problem here. |
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,24 @@ | ||
--- | ||
name: Feature request | ||
|
||
about: Suggest an idea for this project | ||
|
||
title: '' | ||
|
||
labels: '' | ||
|
||
assignees: '' | ||
|
||
--- | ||
|
||
**Is your feature request related to a problem? Please describe.** | ||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] | ||
|
||
**Describe the solution you'd like** | ||
A clear and concise description of what you want to happen. | ||
|
||
**Describe alternatives you've considered** | ||
A clear and concise description of any alternative solutions or features you've considered. | ||
|
||
**Additional context** | ||
Add any other context or screenshots about the feature request here. |
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,5 @@ | ||
Issue #, if available: | ||
|
||
Description of changes: | ||
|
||
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. |
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,113 @@ | ||
name: Integration Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
generate-stack-name: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
stack-name: ${{ steps.generate-stack-name.outputs.stack-name }} | ||
steps: | ||
- name: Generate Stack Name | ||
id: generate-stack-name | ||
run: echo "::set-output name=stack-name::$(echo graph-notebook-$RANDOM)" | ||
shell: bash | ||
create-stack: | ||
runs-on: ubuntu-latest | ||
needs: generate-stack-name | ||
steps: | ||
- name: Set up Python 3.6 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.6 | ||
- name: Configure AWS Credentials | ||
uses: aws-actions/configure-aws-credentials@v1 | ||
with: | ||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
aws-region: us-east-1 | ||
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }} | ||
role-duration-seconds: 3600 | ||
role-session-name: IntegrationTestRunner | ||
- uses: actions/checkout@v2 | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install flake8 pytest | ||
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | ||
- name: Install | ||
run: | | ||
pip install . | ||
- name: Create Stack | ||
id: create-stack | ||
run: | | ||
python test/integration/NeptuneIntegrationWorkflowSteps.py \ | ||
create-cfn-stack \ | ||
--cfn-stack-name ${{ needs.generate-stack-name.outputs.stack-name }} \ | ||
--cfn-template-url ${{ secrets.CFN_TEMPLATE_URL }} \ | ||
--cfn-s3-bucket ${{ secrets.INTEG_CFN_S3_BUCKET }} \ | ||
--cfn-runner-role ${{ secrets.CFN_ROLE }} \ | ||
--aws-region ${{ secrets.AWS_REGION }} | ||
run-tests: | ||
runs-on: ubuntu-latest | ||
needs: [generate-stack-name, create-stack] | ||
steps: | ||
- name: Set up Python 3.6 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.6 | ||
- name: Configure AWS Credentials | ||
uses: aws-actions/configure-aws-credentials@v1 | ||
with: | ||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
aws-region: us-east-1 | ||
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }} | ||
role-duration-seconds: 3600 | ||
role-session-name: IntegrationTestRunner | ||
- uses: actions/checkout@v2 | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install flake8 pytest | ||
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | ||
- name: Install | ||
run: | | ||
pip install . | ||
- name: Give user /etc/hosts permission | ||
run: | | ||
sudo chmod 777 /etc/hosts | ||
- name: Run Basic Tests | ||
run: | | ||
python test/integration/NeptuneIntegrationWorkflowSteps.py \ | ||
run-tests \ | ||
--pattern "*without_iam.py" \ | ||
--cfn-stack-name ${{ needs.generate-stack-name.outputs.stack-name }} \ | ||
--aws-region ${{ secrets.AWS_REGION }} | ||
- name: Run Networkx Tests | ||
run: | | ||
python test/integration/NeptuneIntegrationWorkflowSteps.py \ | ||
run-tests \ | ||
--pattern "*network*.py" \ | ||
--cfn-stack-name ${{ needs.generate-stack-name.outputs.stack-name }} \ | ||
--aws-region ${{ secrets.AWS_REGION }} | ||
- name: Run IAM Tests | ||
run: | | ||
python test/integration/NeptuneIntegrationWorkflowSteps.py \ | ||
run-tests \ | ||
--pattern "*with_iam.py" \ | ||
--iam \ | ||
--cfn-stack-name ${{ needs.generate-stack-name.outputs.stack-name }} \ | ||
--aws-region ${{ secrets.AWS_REGION }} | ||
- name: Cleanup | ||
run: | | ||
python test/integration/NeptuneIntegrationWorkflowSteps.py \ | ||
delete-cfn-stack \ | ||
--cfn-stack-name ${{ needs.generate-stack-name.outputs.stack-name }} \ | ||
--aws-region ${{ secrets.AWS_REGION }} |
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,31 @@ | ||
name: Unit Tests | ||
|
||
on: [push] | ||
|
||
jobs: | ||
unit-tests: | ||
|
||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python 3.6 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.6 | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install flake8 pytest | ||
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | ||
- name: Lint with flake8 | ||
run: | | ||
# stop the build if there are Python syntax errors or undefined names | ||
flake8 ./src --count --select=E9,F63,F7,F82 --show-source --statistics | ||
flake8 ./test --max-complexity 10 --ignore E501,C901,W291 --show-source --statistics | ||
- name: Install | ||
run: | | ||
pip install . | ||
- name: Test with pytest | ||
run: | | ||
pytest |
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 @@ | ||
# IDE directories | ||
.vscode | ||
.idea | ||
**/.DS_Store | ||
|
||
# python-generated directories | ||
venv | ||
**/__pycache__ | ||
.pytest_cache | ||
src/graph_notebook.egg-info | ||
**.pyc | ||
build | ||
dist | ||
|
||
MANIFEST | ||
|
||
# do not include widget typescript output directories | ||
src/graph_notebook/widgets/dist/ | ||
src/graph_notebook/widgets/docs/ | ||
src/graph_notebook/widgets/labextension/ | ||
src/graph_notebook/widgets/nbextension/ | ||
src/graph_notebook/widgets/node_modules/ | ||
src/graph_notebook/widgets/lib/ | ||
|
||
# npm | ||
node_modules/ | ||
node_modules/.package-lock.json |
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
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,19 @@ | ||
include tsconfig.json | ||
include package.json | ||
include webpack.config.js | ||
include src/graph_notebook/widgets/labextension/*.tgz | ||
|
||
# Javascript files | ||
graft graph_notebook/widgets/nbextension | ||
graft graph_notebook/widgets/labextension | ||
graft graph_notebook/widgets/src | ||
graft graph_notebook/widgets/css | ||
graft **/node_modules | ||
prune coverage | ||
|
||
# Patterns to exclude from any directory | ||
global-exclude *~ | ||
global-exclude *.pyc | ||
global-exclude *.pyo | ||
global-exclude .git | ||
global-exclude .ipynb_checkpoints |
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
|
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
Oops, something went wrong.