Gremlin Python Example

An example project for gremlin_python, as there is very little public code out there using it.
Alternatives To Gremlin Python Example
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Diagram Maker2,347
a month ago6February 27, 20222apache-2.0TypeScript
A library to display an interactive editor for any graph-like data.
21 days ago27September 03, 202140mitGo
Read your tfstate or HCL to generate a graph specific for each provider, showing only the resources that are most important/relevant.
Aws Security Viz665
9 days ago176August 15, 20214mitRuby
Visualize your aws security groups.
Amazon Neptune Samples331
2 months ago19mit-0JavaScript
Samples and documentation for using the Amazon Neptune graph database service
3 months ago11October 20, 202210mpl-2.0TypeScript
Graph-based security analysis for everyone
9 months ago1gpl-3.0Python
AWS Identity and Access Management Visualizer and Anomaly Finder
Aws Securitygroup Grapher91
3 years agoapache-2.0HTML
This ansible role gets information from an AWS VPC and generate a graphical representation of security groups
Aws Map67
4 years ago6apache-2.0Perl
Make a network graph of an AWS region
6 months ago253May 12, 202210mitPython
Graph AWS resources in Neptune
Cloudformation Graph44
5 years ago6August 21, 20189mitJavaScript
Generate dot files for GraphViz from an AWS CloudFormation template.
Alternatives To Gremlin Python Example
Select To Compare

Alternative Project Comparisons


An example project for gremlin_python, as there is very little public code out there using it.

This project also uses Chalice (aws/chalice)


>> mkvirtualenv neptunedemo --python=python3.6
>> pip install chalice
>> pip install gremlinpython
  • Clone this repo to your project folder
  • Set GRAPH_DB in .chalice/config.json to your graph db
  • export AWS_DEFAULT_REGION=us-east-1 if using AWS Neptune
>> chalice deploy

Then send http requests (examples below) to your new endpoint.

If using AWS Neptune:

  • Add AWSLambdaVPCAccessExecutionRole to the lambda role
  • Set the correct VPC, subnet and SG

Example Requests

New Person


{"id": "XYZ1234", "prop1": "Some", "prop2": "Value"}
Retrieve Person

GET to

Update Person

PUT to

{"id": "XYZ1234", "prop1": "Some", "prop2": "NewValue"}
Upsert Relationship


{"from": "XYZ1234", "to": "BOB", "weight": "1.0"}
Retrieve Known Associates

GET to

You can optionally add a ?threshold=0.n parameter to the querystring to set the threshold of relationship weighting to retrieve.

Clear Graph



  • Cleanup the retrieval query
  • Add more unit tests using TinkerGraph
  • Add Cognito for authorisation of requests
  • Extend demo instructions to include graph db setup
  • Add additional options to the search

Additional reading

Popular Amazon Web Services Projects
Popular Graph Projects
Popular Cloud Computing Categories

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.