Skip to main content

Memgraph toolbox library for Memgraph AI tools and utilities

Project description

Memgraph Toolbox

The Memgraph Toolbox is a collection of tools designed to interact with a Memgraph database. These tools provide functionality for querying, analyzing, and managing data within Memgraph, making it easier to work with graph data. They are made to be easily called from other framework implementations such as MCP, Langchain or Lamaindex.

Available Tools

Below is a list of tools included in the toolbox, along with their descriptions:

  1. ShowTriggersTool - Shows trigger information from a Memgraph database.
  2. ShowStorageInfoTool - Shows storage information from a Memgraph database.
  3. ShowSchemaInfoTool - Shows schema information from a Memgraph database.
  4. PageRankTool - Calculates PageRank on a graph in Memgraph.
  5. ShowIndexInfoTool - Shows index information from a Memgraph database.
  6. CypherTool - Executes arbitrary Cypher queries on a Memgraph database.
  7. ShowConstraintInfoTool - Shows constraint information from a Memgraph database.
  8. ShowConfigTool - Shows configuration information from a Memgraph database.
  9. BetweennessCentralityTool - Calculates betweenness centrality for nodes in a graph.

Usage

Each tool is implemented as a Python class inheriting from BaseTool. To use a tool:

  1. Instantiate the tool with a Memgraph database connection.
  2. Call the call method with the required arguments.

Example:

from memgraph_toolbox.tools.trigger import ShowTriggersTool
from memgraph_toolbox.api.memgraph import Memgraph

# Connect to Memgraph
db = Memgraph()

# Use the ShowTriggersTool
tool = ShowTriggersTool(db)
triggers = tool.call({})
print(triggers)

Requirements

  • Python 3.10+
  • Memgraph database
  • Memgraph Mage (for certain tools like pagerank and run_betweenness_centrality)

Contributing

Contributions are welcome! Feel free to submit issues or pull requests to improve the toolbox.

License

This project is licensed under the MIT License. See the LICENSE file for details.

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

memgraph_toolbox-0.1.0.tar.gz (10.1 kB view details)

Uploaded Source

Built Distribution

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

memgraph_toolbox-0.1.0-py3-none-any.whl (13.9 kB view details)

Uploaded Python 3

File details

Details for the file memgraph_toolbox-0.1.0.tar.gz.

File metadata

  • Download URL: memgraph_toolbox-0.1.0.tar.gz
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.5

File hashes

Hashes for memgraph_toolbox-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8aa37ff4229c24e7f2059b7473f65b14965e20125ce99b057cd579de2d83f3d8
MD5 c58455cb3ea04b6c33da5cdfd6ca4db4
BLAKE2b-256 a4dfb419cbdfd986c3c9af0322ce54ac5eb105759d84db2325bf564e3504664d

See more details on using hashes here.

File details

Details for the file memgraph_toolbox-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for memgraph_toolbox-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 99b0b639b57a40a22778550b53f3c9a4e4e18aeb56ad69c65e82ee020a8d16f5
MD5 59bc6ed062698609687f3b68a3e3db26
BLAKE2b-256 dbbdf83b1982eb891dc07980907694899351f5569bca80f1dc9aaf2a06e5e0c9

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