Skip to main content

spy-code

GraphQL-style codebase intelligence CLI — index, query, and analyze any codebase.

PyPI version License: MIT

Installation

pip install spy-code

On first run (or install), the package automatically downloads the appropriate native binary for your platform from the GitHub Releases page. No Rust compiler required.

Usage

# Initialize a project
spy-code init

# Index your codebase
spy-code index

# Search for symbols
spy-code search "my_function"

# Get call graph callers
spy-code callers <node_id>

# Start the GraphQL HTTP playground
spy-code serve --http

# Start as an MCP server (for LLM clients)
spy-code serve --mcp

Supported Platforms

Platform Architecture Support
Linux x86_64 ✅
macOS x86_64 ✅
macOS Apple Silicon (arm64) ✅
Windows x86_64 ✅

How It Works

This package is a thin Python wrapper around the native spy-code binary built with Rust. On installation, spy-code detects your OS and CPU architecture, then downloads the matching pre-compiled binary from the GitHub Releases page. All subsequent spy-code commands are forwarded to this binary.

Metadata

Release files for spy-code 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for spy-code 0.3.0
File Size Uploaded Provenance Actions
spy_code-0.3.0.tar.gz 4.8 kB Without provenance Details for spy_code-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for spy-code 0.3.0
File Interpreter ABI Platform Actions
spy_code-0.3.0-py3-none-any.whl Python 3 none any Details for spy_code-0.3.0-py3-none-any.whl

Total release size: 10.2 kB

Release files / spy_code-0.3.0.tar.gz

Download URL spy_code-0.3.0.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
f97bd6031c372975c0138eac3bbd6f3595b444631ea0c5b6378950d76a73e44a
BLAKE2b-256 checksum
How to use checksums
46d49908cd320a0ba3cda165e50b74cad54cfefa57c12cdf7f44e0deeb743263
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / spy_code-0.3.0-py3-none-any.whl

Download URL spy_code-0.3.0-py3-none-any.whl
Size 5.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
68681450d7d7ffa73068d8c1866d701ae89fbb01c9f88702a5314b000fe6cfa0
BLAKE2b-256 checksum
How to use checksums
8c319457f73c58afeacb198363748336d878f4745003ddc8dba50371e7c52166
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Security for spy-code 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page