This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Reason given by maintainers: Withdrawn because this is an internal interoperability package and was not intended for public distribution.
rubberduck-cpg-contract
A single, versioned contract for code-property-graph (CPG) records: canonical node, edge, provenance and capability types plus a producer-neutral adapter, so different graph producers describe code with one shared vocabulary. Consumers import this package through adapters instead of duplicating the types.
Changing the meaning of an existing field requires a major version and full invalidation.
Install
pip install rubberduck-cpg-contract
Usage
from rubberduck_cpg_contract import to_canonical, contract_fingerprint
# `layers` is a mapping of {layer_name: graph}, where each graph exposes
# .nodes(data=True) / .edges(data=True) (e.g. a networkx DiGraph).
nodes, edges, capabilities = to_canonical(layers, producer)
print(contract_fingerprint()) # stable digest of version + vocabulary
to_canonical returns CanonicalNode / CanonicalEdge records and a
CapabilityReport describing what the producer could and could not resolve.
Unmapped kinds surface in capabilities.unknown_regions — never silently dropped.
What's in the package
vocab— canonical edge / DDG-node kinds and the producer→canonical alias mapsnode,edge,identity,provenance,capability,revision— the dataclassesfingerprint—contract_fingerprint()for cache keys / manifestscompat— version-compatibility check + boundary validatorsadapters.to_canonical— the producer-neutral adapter
Status
Pre-release (0.1.x, draft). The vocabulary may change until 1.0.0.
Metadata
Release files for rubberduck-cpg-contract 0.1.0.dev2
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 |
|---|---|---|---|---|
| rubberduck_cpg_contract-0.1.0.dev2.tar.gz | 10.7 kB | Without provenance | Details for rubberduck_cpg_contract-0.1.0.dev2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rubberduck_cpg_contract-0.1.0.dev2-py3-none-any.whl | Python 3 | none | any | Details for rubberduck_cpg_contract-0.1.0.dev2-py3-none-any.whl |
Total release size: 24.5 kB
Release files / rubberduck_cpg_contract-0.1.0.dev2.tar.gz
| Download URL | rubberduck_cpg_contract-0.1.0.dev2.tar.gz |
|---|---|
| Size | 10.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9173ce914064f31073b2bcc4aa0df08fc640b70c19c7230656ccc9f85c1218a0
|
|
BLAKE2b-256 checksum How to use checksums |
72f724aed20aef8f6fba6175649ba4bf8c33e98fa476df6dc70d61808b47dc6d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|
Release files / rubberduck_cpg_contract-0.1.0.dev2-py3-none-any.whl
| Download URL | rubberduck_cpg_contract-0.1.0.dev2-py3-none-any.whl |
|---|---|
| Size | 13.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d9aee45df38227fa7f39328851d9ff27b41dfa0bc1f3f0f2dad164206c457034
|
|
BLAKE2b-256 checksum How to use checksums |
61dead6decfbdcb541d245b7d8109765a33d07404d54c8f665b13b83e9e9e8a7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|
Security for rubberduck-cpg-contract 0.1.0.dev2
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.