This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Consider using release 6.0.0 instead.
Reason given by maintainers: use 6.0.0
pyinc
Salsa-style red-green queries, hardened for Python's mutable runtime.
pyinc is a correctness-first incremental query engine for Python. Declare
keyed inputs and pure queries, and it records the dependency graph while your
code runs. On the next request it reuses unaffected work, recomputes affected
queries, and backdates semantically equal results so downstream work stays
valid. It is pure Python and stdlib-only, with zero runtime dependencies.
Python 3.11–3.14 and the free-threaded 3.14t build are tested on Linux, macOS,
and Windows. It is built to replace a hand-rolled caching layer and its
cache-invalidation bugs, such as the editor still underlining an error you
fixed a minute ago.
python -m pip install pyinc
Quick start
from pyinc import Database, Input, query
NAMES = Input[tuple[str, ...]]("example.names")
@query
def normalized_names(db: Database) -> tuple[str, ...]:
return tuple(sorted({name.strip() for name in NAMES.read(db)}))
db = Database(mode="strict")
db.set(NAMES, (" Grace ", "Ada", "Ada"))
assert db.get(normalized_names) == ("Ada", "Grace")
db.set(NAMES, ("Grace", "Ada"))
assert db.get(normalized_names) == ("Ada", "Grace")
assert db.inspect(normalized_names).last_decision == "backdated"
The first request computes the result. The second input is different, so the
query runs again, but its result is semantically equal. pyinc backdates that
node, so everything downstream stays valid.
See it on a real workspace
pyinc-tools was pointed at a pinned checkout of pytest, with nothing in it
adapted for pyinc, and watched while single files were edited. In one
recorded run it took 109.08 s to analyze all 270 files from cold, then 632 ms
to catch up after an edit. Timings are machine-specific.
The demo page has
the clips, the full provenance, and the deterministic work counts.
Documentation
- Getting started: build a small graph, add a tracked file, choose a mode, inspect work, and write a first action.
- Examples: small runnable scripts, including the
calcworked example. - FAQ: how this relates to Salsa, why not
lru_cache, threading, scope, and when not to use it. - Kernel contract: the from-scratch consistency guarantee, its three conditions, modes, checkpoints, and limitations. The action contract covers declared-output reconciliation.
- Integration contract: stable entrypoints, result types, supported shapes, and limits.
pyinc-toolsguide and LSP reference: CLI, editor setup, overlays, protocol methods, and user-visible limitations.- Documentation index: every document, the package map, and the authoring and codegen guides.
- Releases and verification: signed tags, trusted publishing, and checking a download.
One distribution ships three top-level typed packages:
pyinc: the stable query kernel, resources, snapshots, artifact stores, and declared-output actionspyinc.integrations: stable analysis results and entrypoints for Python source, configuration, dependencies, symbols, and notebookspyinc_tools(unstable):pyinc-tools analyze, a polling watcher,WorkspaceSession, and a stdio LSP serverpyinc_codegen(unstable): JSON Schema to typed Python generation
Development
git clone https://github.com/Brumbelow/pyinc.git
cd pyinc
python3 -m venv .venv
. .venv/bin/activate
python3 -m pip install -e '.[dev]'
python3 scripts/check_docs.py
pytest -q
python3 -m mypy src tests bench scripts examples
python3 -m mypy --platform win32 src tests bench scripts examples
python3 -m ruff check src tests bench scripts examples
Metadata
Release files for pyinc 5.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyinc-5.0.0.tar.gz | 2.7 MB | With provenance | Details for pyinc-5.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyinc-5.0.0-py3-none-any.whl | Python 3 | none | any | Details for pyinc-5.0.0-py3-none-any.whl |
Total release size: 3.0 MB
Release files / pyinc-5.0.0.tar.gz
| Download URL | pyinc-5.0.0.tar.gz |
|---|---|
| Size | 2.7 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d79ed9303e0b2752134828d53d41f77610f60b8dfc54504ade5402408814f7f9
|
|
BLAKE2b-256 checksum How to use checksums |
efc43c23ed0fa4e01c083ccf20e783759dce57a92f0eb38952366c3c2ed1e3fd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 13, 2026.
Transparency logRelease files / pyinc-5.0.0-py3-none-any.whl
| Download URL | pyinc-5.0.0-py3-none-any.whl |
|---|---|
| Size | 355.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1d4ace947325773405612cfee834df3abc905c866d48c2edcbeab24e73a00577
|
|
BLAKE2b-256 checksum How to use checksums |
c82ac555f0e8ec9cb579018abe0dcc94bea378acdc6338a45342ea78d7ed0fd7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 13, 2026.
Transparency logSecurity for pyinc 5.0.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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for pyinc-5.0.0.tar.gz
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 Nov 13, 2026.
Transparency logA 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.