modwire-extraction
Extraction implementation for Modwire.
The primary API starts from ModwireExtraction:
from pathlib import Path
from modwire_extraction import ModwireExtraction, QueryableCodeMap
queryable_map: QueryableCodeMap = ModwireExtraction(Path("src")).generate_queryable_map("python")
print(queryable_map.source_ids())
Public data and query helpers are exported from:
modwire_extractionforModwireExtractionandQueryableCodeMap.modwire_extraction.codeforCodeMapand query result types.modwire_extraction.dependencyfor dependency graph helpers.modwire_extraction.extractorsfor extractor loading.
Compatibility notes
Version 2 uses extension-bearing physical file IDs, separate logical module IDs, and dependency edges resolved to tracked files. Original and normalized import specifiers remain available with an explicit resolution state.
See Migrating to modwire-extraction 2 for the complete breaking-contract guide.
Serialized CodeMap JSON remains a same-major interchange contract. Regenerate
1.x maps before loading them with version 2.
TypeScript and PHP helper build files are included as package data because they are part of the bundled extractor runtimes and reproducible maintenance path.
Install
pip install modwire-extraction
Python extraction works with the active Python interpreter. TypeScript,
JavaScript, TSX, and JSX extraction require node on PATH. PHP extraction
requires php on PATH.
Development
python -m pip install -e ".[dev]"
pytest
python -m build
twine check dist/*
For local verification, build a fresh distribution from the current Git state:
python -m build
twine check dist/*
Releases use strict SemVer tags. Create and push the tag first, then publish its GitHub Release. That release invokes the shared build and asset workflows before trusted publishing sends the same distributions to PyPI.
git tag -a v2.0.0 -m "v2.0.0"
git push origin v2.0.0
gh release create v2.0.0 --verify-tag --generate-notes --title v2.0.0
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file modwire_extraction-2.1.0.tar.gz.
File metadata
- Download URL: modwire_extraction-2.1.0.tar.gz
- Upload date:
- Size: 2.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b7b6651095381626210844001e55e0ba0a5192d05003278642d32b0ecb78970c
|
|
| MD5 |
58fd679f3775039b356ee7a502e7a724
|
|
| BLAKE2b-256 |
9dfd64f072ea003525007d05f530f36b16561a9a1b651936b2a7e867c491b9dd
|
Provenance
The following attestation bundles were made for modwire_extraction-2.1.0.tar.gz:
Publisher:
release.yml on modwire/modwire-extraction
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
modwire_extraction-2.1.0.tar.gz -
Subject digest:
b7b6651095381626210844001e55e0ba0a5192d05003278642d32b0ecb78970c - Sigstore transparency entry: 2289947197
- Sigstore integration time:
-
Permalink:
modwire/modwire-extraction@1ac41e4d9a1d90731de8552b965c4427e4892839 -
Branch / Tag:
refs/tags/v2.1.0 - Owner: https://github.com/modwire
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@1ac41e4d9a1d90731de8552b965c4427e4892839 -
Trigger Event:
release
-
Statement type:
File details
Details for the file modwire_extraction-2.1.0-py3-none-any.whl.
File metadata
- Download URL: modwire_extraction-2.1.0-py3-none-any.whl
- Upload date:
- Size: 2.3 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9dafe92f29802e4ae7b167515331b39e783da42b565176bd2fffdf97add5a73d
|
|
| MD5 |
249ffd549f81298284a06f45cc22ec33
|
|
| BLAKE2b-256 |
e84e8c921078c923ec8be6c1cef8cabc9ac30676ec63abfc20fac35b7a0f2561
|
Provenance
The following attestation bundles were made for modwire_extraction-2.1.0-py3-none-any.whl:
Publisher:
release.yml on modwire/modwire-extraction
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
modwire_extraction-2.1.0-py3-none-any.whl -
Subject digest:
9dafe92f29802e4ae7b167515331b39e783da42b565176bd2fffdf97add5a73d - Sigstore transparency entry: 2289947257
- Sigstore integration time:
-
Permalink:
modwire/modwire-extraction@1ac41e4d9a1d90731de8552b965c4427e4892839 -
Branch / Tag:
refs/tags/v2.1.0 - Owner: https://github.com/modwire
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@1ac41e4d9a1d90731de8552b965c4427e4892839 -
Trigger Event:
release
-
Statement type: