Skip to main content

codemap-c

A C language indexer for CodeMap, shipped as an independent PyPI package.

What it captures

Backed by tree-sitter-c:

AST node Symbol kind
function_definition function
struct_specifier (named, with body) class (extra.c_kind=struct)
union_specifier (named, with body) class (extra.c_kind=union)
enum_specifier (named) class (extra.c_kind=enum)
type_definition (typedef) class (extra.c_kind=typedef)
preproc_def (#define X ...) variable (extra.c_kind=macro)
Top-level declaration with initializer variable
field_declaration inside a struct/union body field (attached to the parent)

Function bodies are not walked for inner declarations — locals are not script-level interface.

Install

pip install codemap-c

File patterns

  • *.c, *.h

Limits

  • Preprocessor conditionals (#ifdef/#if) parse but no branch selection is performed — both arms contribute symbols.
  • Function declarations (prototypes) are not emitted; only definitions.
  • Forward struct declarations without a body are skipped.

License

MIT.

Metadata

Release files for codemap-c 0.4.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for codemap-c 0.4.10
File Size Uploaded Provenance Actions
codemap_c-0.4.10.tar.gz 5.8 kB With provenance Details for codemap_c-0.4.10.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for codemap-c 0.4.10
File Interpreter ABI Platform Actions
codemap_c-0.4.10-py3-none-any.whl Python 3 none any Details for codemap_c-0.4.10-py3-none-any.whl

Total release size: 10.9 kB

Release files / codemap_c-0.4.10.tar.gz

Download URL codemap_c-0.4.10.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
b31b1534f28add20fc3495f7f84fb70419f986eba9be5a6657cb1ca1d72c4f4d
BLAKE2b-256 checksum
How to use checksums
0783d11cb3c46c1b8d84219e445ceb8d7f26b957ef037482bb4348cbe7908f5f
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 Aug 17, 2026.

Transparency log

Release files / codemap_c-0.4.10-py3-none-any.whl

Download URL codemap_c-0.4.10-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e987a21cd29854d599f6774b6485ab3e7632a79e0b1d70b39c7ffcfbf075f220
BLAKE2b-256 checksum
How to use checksums
718598527b428999117eedb072b3a1c834b90b825e8ee8a1b301736424711cc3
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 Aug 17, 2026.

Transparency log

Security for codemap-c 0.4.10

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.

Select from 2 files

Attestation for codemap_c-0.4.10.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 Aug 17, 2026.

Transparency log

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.

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