Skip to main content

Cypher Shell -- a shell for querying Neo4j with Cypher

Project description

Cypher Shell

A shell for querying Neo4j with Cypher using LLMs.

Installation

pip install cypher-shell

How to use

python -m cypher_shell --help

or

python -m cypher_shell run --cfg-path configs/movies.yaml

where configs/movies.yaml is a configuration file that contains the node and relationship descriptions.

If no configuration file is provided, the tool will try to generate a schema automatically. This might give worse results.

You need to set the .env file with your OpenAI API key and Neo4j credentials. See .env_template for more information.

Docker

You can also run the tool using Docker.

docker run --env .env -it ghcr.io/lemurpwned/cypher-shell:latest python3 -m cypher_shell run --cfg-path configs/movies.yaml

Run query without LLM

Just preface the query with: cs: and the query will not be rewritten by the llm.

Notes:

  • sometimes getting the schema automatically is better than providing it manually.

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

cypher_shell-0.4.tar.gz (11.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cypher_shell-0.4-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

Details for the file cypher_shell-0.4.tar.gz.

File metadata

  • Download URL: cypher_shell-0.4.tar.gz
  • Upload date:
  • Size: 11.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.3

File hashes

Hashes for cypher_shell-0.4.tar.gz
Algorithm Hash digest
SHA256 9430ddc613bd5af98dd79d8e40b3a03c125c6cb2e29fc8f0e613f00cdb1f0833
MD5 9f81ab1ebb508d655ce10a0abeb75f3a
BLAKE2b-256 68fecc05503c6550a1cc65f7077499a33397d5314c0bd9d393c65df640bd74b2

See more details on using hashes here.

File details

Details for the file cypher_shell-0.4-py3-none-any.whl.

File metadata

  • Download URL: cypher_shell-0.4-py3-none-any.whl
  • Upload date:
  • Size: 11.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.3

File hashes

Hashes for cypher_shell-0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 ae5cf43d537c56f923b51be048aa7071aa75e8a592db81dbf32bff2eec16560f
MD5 44ca1edb8814dead25b7833c793625df
BLAKE2b-256 f6a86c1c399b10ef5f9525b07d6c83dd6ce850ce8b9cc5e7ea59e78c427e23eb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page