npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

scip-python-plus

v0.7.4

Published

Enhanced SCIP indexer for Python with full self.method(), instance attribute, and decorator support

Readme

scip-python-plus

Enhanced fork of scip-python with full support for self.method() calls, instance attributes, and decorated functions.

Built on Pyright for generating SCIP indexes from Python projects.

What's different from upstream scip-python?

The original scip-python silently drops all MemberAccess nodes, which means:

  • self.method() calls produce no cross-references
  • self.attribute access is invisible to the index
  • Decorated functions (e.g., @app.get, @pytest.fixture) show as dead code

scip-python-plus fixes all of this:

| Feature | scip-python | scip-python-plus | |---|---|---| | self.method() calls | Not tracked | Fully resolved via Pyright type evaluator | | self.attribute access | Not tracked | Tracked as references | | Instance attribute definitions (self.x = ... in __init__) | Not emitted | Emitted as definition symbols | | Decorated functions (@app.get, @route) | Reported as dead code | Implicit reference prevents false positives | | Static/class method access (MyClass.method()) | Not tracked | Fully resolved | | Module member access (os.path) | Not tracked | Resolved via module type |

Install

npm install -g scip-python-plus

Requires Node v16+ and Python 3.10+.

Used automatically by scip-query when indexing Python projects.

This package now installs both scip-python-plus and scip-python on your PATH. scip-python-plus is the preferred command name, and scip-python remains as a compatibility alias.

Usage

# Activate your virtual environment first
scip-python-plus index . --project-name=my-project --project-version=0.1.0

# Convert to SQLite for scip-query
scip expt-convert --output index.db index.scip

# Query the index
scip-query dead
scip-query call-graph my_function
scip-query refs my_function

If you hit an out-of-memory error, increase the heap size:

NODE_OPTIONS="--max-old-space-size=8192" scip-python-plus index . --project-name=my-project

Options

# Index only a specific subdirectory
scip-python-plus index . --project-name=my-project --target-only=src/subdir

# Add a namespace prefix to all symbols
scip-python-plus index . --project-name=my-project --project-namespace=implicit.namespace

# Supply a custom environment file (skips pip detection)
scip-python-plus index . --project-name=my-project --environment=path/to/env.json

Environment file format

If you don't use pip, supply a JSON file listing your packages:

[
  {
    "name": "PyYAML",
    "version": "6.0",
    "files": [
      "yaml/__init__.py",
      "yaml/composer.py",
      "yaml/tokens.py"
    ]
  }
]

Technical details

All changes are in packages/pyright-scip/src/treeVisitor.ts. The key fix: the original code returned ScipSymbol.empty() for all MemberAccess parse nodes. This fork resolves them using Pyright's TypeEvaluator.getTypeOfExpression() and lookUpClassMember(), which already have full type information — it just wasn't being used for SCIP emission.

Upstream

Based on sourcegraph/scip-python. Upstream changes to Pyright internals are minimal (3 patches for indexing stability).