GraphSh
GraphSh is an interactive terminal client for graph databases, inspired by the psql experience but designed specifically for graph query languages.
Features
- Interactive shell for graph database queries
- Support for multiple query languages:
- Gremlin (TinkerPop)
- SPARQL 1.1
- OpenCypher
- Compatible with:
- Amazon Neptune
- Amazon Neptune Analytics
- Neo4j
- Any TinkerPop-compliant database
- Authentication support:
- AWS IAM for Neptune
- Username/password for Neo4j
- No authentication option for open endpoints
- Rich terminal features:
- Command history
- Tab completion
- Syntax highlighting
- Result formatting
- Connection profiles:
- Save and reuse connection settings
- Manage multiple database connections
- Store language preferences with profiles
Installation
# Install from PyPI
pip install graphsh
# Or install from source with pip
git clone https://github.com/awslabs/graphsh.git
cd graphsh
pip install -e .
# Or install from source with UV (recommended for faster installation)
git clone https://github.com/awslabs/graphsh.git
cd graphsh
uv venv
source .venv/bin/activate
uv pip install -e .
# Install with development dependencies
uv pip install -e ".[dev]"
Quick Start
# Connect to Neptune with IAM auth
graphsh --endpoint https://neptune-instance.region.amazonaws.com:8182 --auth iam --type neptune
# Connect to Neptune Analytics with IAM auth
graphsh --graph-id my-graph-id --type neptune-analytics --region us-east-1
# Connect to Neo4j
graphsh --endpoint bolt://localhost:7687 --auth basic --username neo4j --password password --type neo4j
# Connect to an endpoint with no authentication
graphsh --endpoint https://localhost:8182 --auth none --type neptune --no-verify-ssl
# Connect using a saved profile
graphsh --profile my-neptune-profile
# Execute commands from a file
graphsh --commands-file commands.txt
Interactive Shell Commands
Once in the interactive shell, you can use these special commands:
/help - Show help for commands
/help <command> - Show detailed help for a specific command
/quit - Exit the shell
/language <lang> - Switch query language (gremlin, sparql, cypher)
/connect <profile> - Connect to a database using a saved profile
/connect --endpoint <url> [options] - Connect directly with connection parameters
/clear - Clear the screen
/timing on|off - Toggle query execution timing
/format <format> - Set output format (table, raw)
/preferences - Show current user preferences
/preferences reset - Reset preferences to defaults
/profile list - List all saved connection profiles
/profile save <name> - Save current connection as a profile
/profile delete <name> - Delete a saved profile
/profile show <name> - Show details of a saved profile
Metadata
Release files for graphsh 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| graphsh-0.1.1.tar.gz | 40.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| graphsh-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 93.7 kB
Release files / graphsh-0.1.1.tar.gz
| Download URL | graphsh-0.1.1.tar.gz |
|---|---|
| Size | 40.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9c4e2f1daa7e80d80d81e0ec91d7c6c41892801cef06eab1302380202b32c9bd
|
|
BLAKE2b-256 checksum How to use checksums |
bbae131946d8aead440168f00185509657a760f43f86a2c7626397c4928d8c6e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 14, 2025.
Transparency logRelease files / graphsh-0.1.1-py3-none-any.whl
| Download URL | graphsh-0.1.1-py3-none-any.whl |
|---|---|
| Size | 52.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3291fa9b5f96894942be5ac34dd72b057d967d64bc5e95833be47f6c48663d4a
|
|
BLAKE2b-256 checksum How to use checksums |
74bea40baedf29a397347a2c109c474821018517c08451778c1a0f1e15c3b6e4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 14, 2025.
Transparency log