Skip to main content

Command-line tool to scan Python and C source files and report function calls.

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

funccheck

funccheck is a command-line tool to scan Python and C source files and report function calls.

Supported file types:

  • Python: .py
  • C/C headers: .c, .h

By default, user-defined symbols are excluded. Use -d/--def to include them.

Installation

From PyPI:

pip install funccheck

From source:

pip install .

Quick Start

Scan the current directory:

funccheck

Scan specific files/directories:

funccheck src tests some_file.py

CLI Options

  • -d, --def: include user-defined functions/classes in output.
  • -c, --count: show counts like func (3).
  • -n: print one function per line.
  • -a, --all: merge all scanned results under one combined title.
  • -v, --version: show installed version and exit.
  • -h, --help: show help.

Output Examples

Default output (grouped by file):

src/funccheck/scanner.py:
  set, int, print

With counts (-c):

src/funccheck/scanner.py:
  set (4), int (2), print (1)

One-per-line (-n):

src/funccheck/scanner.py:
  set
  int
  print

Merged output (-a):

src, tests:
  set, int, print

More Examples

# Default scan
funccheck

# Include user-defined symbols
funccheck -d src

# Show counts
funccheck -c src

# One function per line
funccheck -n src

# Merge all input paths and show counts
funccheck -a -c src tests

Notes

  • Files in common cache/venv/build directories are skipped automatically.
  • If no calls are found, funccheck prints: No function calls found.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

funccheck-0.1.1.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

funccheck-0.1.1-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file funccheck-0.1.1.tar.gz.

File metadata

  • Download URL: funccheck-0.1.1.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for funccheck-0.1.1.tar.gz
Algorithm Hash digest
SHA256 51ac14d42fe40075924b01ea752cd9d43c7905d216508058e436435fec9e80ac
MD5 8f3eaefe020e940b996f2a62dee22bb7
BLAKE2b-256 ef2dc412f0862031762c8e6f3a413f33c3b16768734fe92e27c0a61c5d5ec65b

See more details on using hashes here.

Provenance

The following attestation bundles were made for funccheck-0.1.1.tar.gz:

Publisher: publish-pypi.yml on 2mdtln/funccheck

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file funccheck-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: funccheck-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for funccheck-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a89e2a0b3aa7fbec6c2a7f10f141d77788e674a04be1d631daafb51569190614
MD5 8f216548ae81bab863942cdeb3bb5aad
BLAKE2b-256 0ad8f776f82127836f7b5786dd96e0652107aa3e8196afddc8b2342a5e821971

See more details on using hashes here.

Provenance

The following attestation bundles were made for funccheck-0.1.1-py3-none-any.whl:

Publisher: publish-pypi.yml on 2mdtln/funccheck

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page