Skip to main content

deproc-core

deproc-core provides the language-agnostic contracts and runtime used by the deproc source-analysis plugins.

It supplies the shared pipeline for discovering source files, registering entities, linking package hierarchies, and resolving symbols. Language-specific parsing and semantics live in separate plugin packages such as deproc-python and deproc-java.

Installation

python -m pip install deproc-core

deproc-core supports Python 3.12 and newer.

Core concepts

  • Context is the central registry for language plugins, parsers, linkers, resolvers, symbol caches, and entities.
  • AnalysisScope describes the permitted analysis universe, including project, source, generated, declaration, and dependency roots, selected languages and extensions, exclusions, and root provenance.
  • EntityRegistry stores entities by ID and maintains a fully qualified name-to-ID index for entities with FQNs.
  • SourceParser, Linker, Resolver, and SymbolCache are the protocols implemented by language plugins.

Example

from deproc.core.context import Context
from deproc.core.discovery import find_source_files
from deproc.core.scope import AnalysisScope

scope = AnalysisScope(project_roots=["/path/to/project"])
context = Context(scope=scope)
context.set_language("python", [".py", ".pyi"], aliases=["py"])

files = find_source_files(context)

Plugins register their parser, linker, and resolver implementations with the context, and may optionally register a symbol cache.

Development

Source code and tests are maintained in the deproc repository.

uv sync
uv run pytest deproc-core/tests

deproc-core is released under the Apache-2.0 license.

Metadata

Release files for deproc-core 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 deproc-core 0.3.0
File Size Uploaded
deproc_core-0.3.0.tar.gz 18.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for deproc-core 0.3.0
File Interpreter ABI Platform
deproc_core-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 31.9 kB

Release files / deproc_core-0.3.0.tar.gz

Download URL deproc_core-0.3.0.tar.gz
Size 18.9 kB
Tags Source
SHA-256 checksum
How to use checksums
42b096fdc392e4d54904827afd747b1d3dcca3d1c9f247289c155ca3a40ca0d9
BLAKE2b-256 checksum
How to use checksums
818254e45eaace1dc2aefdd14c44bd4862ba6546ccd347fc8d9dd39ce389f9ea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 30, 2026.

Transparency log

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

Download URL deproc_core-0.3.0-py3-none-any.whl
Size 13.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2e8b16f4834764e041e1dcc492604bdef5b19cc39a15d1741a1f93db3b89482e
BLAKE2b-256 checksum
How to use checksums
ad193011a19079c8d172a3a5db8f5567d4dde2202c4523200b95bc2f4fdd3889
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 30, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.0

2 release files

0.1.0

2 release files

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