Skip to main content

Persist, retrieve and evolve AI skills in Memgraph

Project description

skills-graph

A small library to persist, retrieve and evolve AI skills in Memgraph.

Graph Model

(:Skill {name, description, content, created_at, updated_at})
(:Tag {name})
(:Skill)-[:HAS_TAG]->(:Tag)
(:Skill)-[:DEPENDS_ON]->(:Skill)

Quick Start

from skill_graph import SkillGraph, Skill

# Connect (uses MEMGRAPH_URL, MEMGRAPH_USER, MEMGRAPH_PASSWORD env vars by default)
sg = SkillGraph()

# Prepare the database schema (constraints + indexes)
sg.setup()

# Store a skill
sg.add_skill(Skill(
    name="memgraph-cypher",
    description="Writing Cypher queries for Memgraph",
    content="# Cypher for Memgraph\n\nUse MATCH, CREATE, MERGE ...",
    tags=["cypher", "memgraph"],
))

# Retrieve by name
skill = sg.get_skill("memgraph-cypher")

# Search
sg.search_by_tags(["cypher"])
sg.search_by_name("memgraph")

# Dependencies
sg.add_dependency("advanced-cypher", "memgraph-cypher")
deps = sg.get_dependencies("advanced-cypher")

# List all
all_skills = sg.list_skills()

# Update
sg.update_skill("memgraph-cypher", content="updated content", tags=["cypher"])

# Delete
sg.delete_skill("memgraph-cypher")

Installation

uv sync

Testing

uv run pytest tests/ -v

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

skills_graph-0.1.0.tar.gz (9.8 kB view details)

Uploaded Source

Built Distribution

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

skills_graph-0.1.0-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for skills_graph-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c961006eb59b6048f609674c8228169bef99b0e40c0fa65cfeba4dea4576217a
MD5 f6c32e60dc63b1fde27338f81ccd4ad8
BLAKE2b-256 3dfb1e4fe9c59f22893238472e1912c4d0e1b150b5676fd16941f7da18a444f0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for skills_graph-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d3564f88f3e3c8508545bc33dc7b3e56b77dab3039f3f8936377a64759620d64
MD5 6400ccb64ebaeb3a062521630922326d
BLAKE2b-256 6cbda89a39575b1835d742aa515ad96b99fd656393a251348d517483432b6ede

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