g2c is a python script to convert Gremlin query to Cypher query with OpenAI API
Project description
g2c
Overview
g2c is a python script to convert Gremlin query to Cypher query with OpenAI API
Table of Contents
Installation
Just add tap and install homebrew package.
brew tap rioriost/g2c
brew install g2c
Prerequisites
- Python 3.11 or higher
- OpenAI API key enabled to call gpt-4o-mini
Usage
Execute g2c command.
g2c --help
usage: g2c [-h] gremlin_query
Convert Gremlin queries to Cypher queries.
positional arguments:
gremlin_query The Gremlin query to convert.
options:
-h, --help show this help message and exit
The indentical usage is shown below.
g2c 'g.V().has(“name”, “Alice”).as(“a”).V().has(“name”, “Bob”).as(“b”).select(“a”, “b”).by(“name”)'
MATCH (a {name: "Alice"}), (b {name: "Bob"}) RETURN a.name AS a, b.name AS b
Release Notes
0.1.0 Release
- Initial release.
License
MIT License
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
g2c-0.1.0.tar.gz
(4.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
g2c-0.1.0-py3-none-any.whl
(4.7 kB
view details)
File details
Details for the file g2c-0.1.0.tar.gz.
File metadata
- Download URL: g2c-0.1.0.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.27
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
76e53fd3113f406e9de81ba8876fcd43cc0342869f83559cd902b708a2ee8ae1
|
|
| MD5 |
a5ad0a4ccf857d1f5929af1bccb0c269
|
|
| BLAKE2b-256 |
c5175f46ae790991d822a17eeef3cdcf999bef0d5113ec3663a225b5e45fd4d7
|
File details
Details for the file g2c-0.1.0-py3-none-any.whl.
File metadata
- Download URL: g2c-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.27
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c541da4bb6d35a9781ac60fa9193053a3db3dfc56ec81499c6c5cc5f0129c476
|
|
| MD5 |
b8963d98e23618a5746d1144d9420c08
|
|
| BLAKE2b-256 |
f888726bf3263ca1af5c56ae38d3d6daf9c7d6611c18da3481a3333a33961ba0
|