# yinwang0/pysonar2

PySonar2: a semantic indexer for Python with interprocedual type inference

Repository: https://github.com/yinwang0/pysonar2
Canonical: https://ross.abutalabs.com/products/pysonar2
Language: Java
License: Apache-2.0
License Family: permissive
Topics: python, index, code-search, code-intelligence, code-analysis, static-analysis, type-inference
Last push: 2026-03-02T04:19:48+00:00

## Health v2 (maintenance only)
Score: 64/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 70, release rhythm 35, longevity 100
- inputs: {"age_days": 4691, "days_push": 184, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1425, forks 499 (observed 2026-08-28T04:04:41.437803+00:00)

## What it is
PySonar2 is a Java library that performs interprocedural type inference and semantic indexing of Python codebases. The resulting index powers code browsers, code search engines, and IDE-like developer tools.

## Use cases
- build a code search engine for Python repositories
- index a large Python codebase for go-to-definition navigation
- infer types across a whole Python project for static analysis
- generate an HTML code browser for the Python standard library
- power code intelligence features in an IDE or developer tool

## When to choose
- you need highly accurate cross-function type inference and definition lookup for Python at scale
- you are building a code search or code browsing product and want a proven index backend
- you need analysis accuracy beyond what typical Python IDEs provide

## When to avoid
- you want a polished end-user tool rather than a library to embed
- your project is not Python
- you cannot run a JVM-based toolchain (Java 8+, Maven) alongside a local Python installation

## Facets
- artifact type: library
- maturity: active
- function: search-engine, parser, developer-tools
- domain: developer-tools, programming-languages, parsers
- platform: jvm, cli, cross-platform
- tags: static-analysis, type-inference, code-indexing, code-navigation, code-intelligence, search

## Member repositories
- yinwang0/pysonar2 (main) score 64

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:41.437803+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:37:32.752885+00:00, confidence not recorded.
  - readme: https://github.com/yinwang0/pysonar2 (fetched 2026-08-28T04:04:41.437803+00:00, sha 6f23958d6ec9)
- Data as of 2026-08-30T08:39:29.467469+00:00.
