Skip to main content

Push your codebase to a graph DB and query it with natural language

Project description

memory-neo/docs/README.md

Path: docs/README.md

Purpose: User-facing documentation — install, usage, deployment

🧠 memory-neo

Push your codebase to a graph database. Query it with natural language.

pip install memory-neo
cd your-project/
memory-neo push
memory-neo query "show all auth functions"
memory-neo context parse_directory

How it works

  1. Pushmemory-neo push scans your project, extracts files and Python functions via AST, and sends the structure to a hosted Memgraph graph database.
  2. Querymemory-neo query "..." converts your question to Cypher via Claude, runs it against your graph, and prints results with code highlighting.
  3. Contextmemory-neo context <name> fetches a function or file as prompt-ready code you can paste into any LLM.

Install

pip install memory-neo

Python 3.9+ required.


Authentication

Get an API key at memory-neo.dev, then:

memory-neo login
# Paste your API key when prompted
# Saved to ~/.memoryneo/config.json

Commands

memory-neo push

Scan the current directory and push its structure to Memgraph.

memory-neo push                        # use directory name as project name
memory-neo push my-project             # explicit project name
memory-neo push --dir ./src            # scan a subdirectory
memory-neo push --dry-run              # scan only, don't push

What gets indexed:

  • Files: .py .js .jsx .ts .tsx .html .md .txt
  • Python: full AST extraction — function names, line numbers, args, docstrings, code
  • Other: file name, path, content, line count

Ignored by default (via memIgnore):

  • .venv/, node_modules/, __pycache__/, .git/, *.pyc, .env, and more

Custom ignore: place a memIgnore file in your project root (same syntax as .gitignore).


memory-neo query

Ask a natural language question about your indexed codebase.

memory-neo query "show all auth functions"
memory-neo query "which files import httpx"
memory-neo query "list all Python files"
memory-neo query "how many functions are in each file"
memory-neo query "show the parse_directory function"
memory-neo query --project my-project "show all classes"
memory-neo query --raw "..."           # print raw JSON
memory-neo query --context "..."       # dump results as prompt-ready context block
memory-neo query                       # interactive mode

memory-neo context

Fetch the raw code of a function or file — ready to paste into a prompt.

memory-neo context parse_directory           # fetch function by name
memory-neo context memory_neo/main.py        # fetch file by path
memory-neo context login --type function     # force function lookup
memory-neo context main.py --copy            # copy to clipboard

Ignore patterns (memIgnore)

Place a memIgnore file in your project root to control what gets scanned. Uses the same syntax as .gitignore:

# Folders
.venv/
node_modules/
dist/

# Wildcards
*.log
*.tmp
*.pyc

# Files
.env
secrets.json

If no memIgnore is found in your project, the package default is used (covers most common cases).


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

memory_neo-0.1.4.tar.gz (18.0 kB view details)

Uploaded Source

Built Distribution

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

memory_neo-0.1.4-py3-none-any.whl (22.6 kB view details)

Uploaded Python 3

File details

Details for the file memory_neo-0.1.4.tar.gz.

File metadata

  • Download URL: memory_neo-0.1.4.tar.gz
  • Upload date:
  • Size: 18.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for memory_neo-0.1.4.tar.gz
Algorithm Hash digest
SHA256 9e4984becd03920e49cdfe4ec05a6a61df7395f2cbd19991ecf7d6185223f977
MD5 378219c0dc8cb3b657f3b72033cee8ec
BLAKE2b-256 d43d235665448328cdc676bb6d330aebc2375c1d15ff223b72ea76b3cbad7f8e

See more details on using hashes here.

File details

Details for the file memory_neo-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: memory_neo-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 22.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for memory_neo-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 677a6aa35cffc06919ef40f34c14c921f81997c23aa24adaa23930ebcca5ba31
MD5 c7ba08a238929118d7acb787024c55c0
BLAKE2b-256 45a39085b25b88a33799c6d6b5ad63234c9431a1929f2091f3aec139ef4ebd3a

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