cartograph-python
Ultra-Fast Native AST Code Graph & Graph Data Science SDK
cartograph-python is the official Python SDK and high-performance PyO3 native extension for Cartograph. It provides sub-millisecond AST code graph queries, blast-radius impact analysis, zero-copy Apache Arrow exports to Polars & Pandas, and seamless conversion to NetworkX & igraph.
Installation
# Core SDK
pip install cartograph-python
# With all data science dependencies
pip install "cartograph-python[all]"
# Or specific extras:
pip install "cartograph-python[polars]"
pip install "cartograph-python[networkx]"
pip install "cartograph-python[igraph]"
pip install "cartograph-python[pandas]"
Quickstart
import cartograph
# Open indexed repository code graph
with cartograph.open() as cg:
# 1. Locate symbol definition & callers
res = cg.locate("OrderService")
print(res)
# 2. Blast-radius impact analysis
impact = cg.impact("OrderService")
print(f"Risk score: {impact.risk_score}, dependents: {len(impact.affected_dependents)}")
# 3. Export to NetworkX DiGraph
G = cg.to_networkx()
# 4. Zero-copy export to Polars DataFrame
df = cg.nodes_dataframe(engine="polars")
print(df.head())
License
MIT OR Apache-2.0
Metadata
Release files for cartograph-python 0.2.1
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 | |
|---|---|---|---|---|
| cartograph_python-0.2.1.tar.gz | 476.3 kB | With provenance | Details |
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| cartograph_python-0.2.1-cp38-abi3-win_amd64.whl | CPython 3.8 | abi3 | Windows x86-64 | Details |
| cartograph_python-0.2.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl | CPython 3.8 | abi3 | Linux glibc 2.17+ x86-64 | Details |
| cartograph_python-0.2.1-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl | CPython 3.8 | abi3 | Linux glibc 2.17+ ARM64 | Details |
| cartograph_python-0.2.1-cp38-abi3-macosx_11_0_arm64.whl | CPython 3.8 | abi3 | macOS 11.0+ ARM64 | Details |
| cartograph_python-0.2.1-cp38-abi3-macosx_10_12_x86_64.whl | CPython 3.8 | abi3 | macOS 10.12+ x86-64 | Details |
Total release size: 34.5 MB
Release files / cartograph_python-0.2.1.tar.gz
| Download URL | cartograph_python-0.2.1.tar.gz |
|---|---|
| Size | 476.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e5a3e8680c85e08f399210eebd3d70188d1091767b187af36639c38cd04ebfd3
|
|
BLAKE2b-256 checksum How to use checksums |
e417abb739aa65f304b1e7a0d7ce834889dcd480e9e0fab608f549864b432804
|
| 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 Oct 22, 2026.
Transparency logRelease files / cartograph_python-0.2.1-cp38-abi3-win_amd64.whl
| Download URL | cartograph_python-0.2.1-cp38-abi3-win_amd64.whl |
|---|---|
| Size | 6.5 MB |
| Tags | CPython 3.8 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
0337845408ca26eb8b650c279a6b3d9f05aaa3d9fd2f0edd310adaec776cab71
|
|
BLAKE2b-256 checksum How to use checksums |
0e3a212cac74f8f44fe91932c9ad1026f018e20ea6f8cd5d67d421de9840fe84
|
| 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 Oct 22, 2026.
Transparency logRelease files / cartograph_python-0.2.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | cartograph_python-0.2.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 7.2 MB |
| Tags | CPython 3.8 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
9170a2eee850a97c0ffd4cd6474f57da049e7912ac2e3caab433b2277118d1d4
|
|
BLAKE2b-256 checksum How to use checksums |
2baa659a6e4ebadd5317e30e56c1889bd6d805acfd61c8bca9017c3257ab9d95
|
| 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 Oct 22, 2026.
Transparency logRelease files / cartograph_python-0.2.1-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | cartograph_python-0.2.1-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 7.0 MB |
| Tags | CPython 3.8 Linux glibc 2.17+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
5fa2932ed10ac5e3e83d2bc9c3544237f519825d02285e19de3e792603ba0b61
|
|
BLAKE2b-256 checksum How to use checksums |
81546482aadc90b0f38cfb9ae10ac18f62f57601f64be70cf228e3c463792a48
|
| 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 Oct 22, 2026.
Transparency logRelease files / cartograph_python-0.2.1-cp38-abi3-macosx_11_0_arm64.whl
| Download URL | cartograph_python-0.2.1-cp38-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 6.5 MB |
| Tags | CPython 3.8 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
178b322c62813b43f8aef7cbf7ebcba103c0514592436eb03e519d0d9213dfd6
|
|
BLAKE2b-256 checksum How to use checksums |
3510dc9e858fda0d05484f70c5064c084cb3208c439400515fa97a907362e2d0
|
| 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 Oct 22, 2026.
Transparency logRelease files / cartograph_python-0.2.1-cp38-abi3-macosx_10_12_x86_64.whl
| Download URL | cartograph_python-0.2.1-cp38-abi3-macosx_10_12_x86_64.whl |
|---|---|
| Size | 6.8 MB |
| Tags | CPython 3.8 abi3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
e8428addf1c67f80f5f8cb9f100991b1d3b234d197aeac4b1e8bbc76d1d28bb2
|
|
BLAKE2b-256 checksum How to use checksums |
102b6fec34d3ae94911aa68a262bd99739a7bfcb6e0d225dd7a439c72611860c
|
| 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 Oct 22, 2026.
Transparency logSecurity for cartograph-python 0.2.1
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
All 6 files in this release have been uploaded with provenance metadata.
Attestation for cartograph_python-0.2.1.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 Oct 22, 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.