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.
  • --strict: exit with status 1 if any files are skipped due to parse errors.
  • -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

# Fail if any scanned file cannot be parsed
funccheck --strict src

Notes

  • Files in common cache/venv/build directories are skipped automatically.
  • funccheck checks PyPI at startup and prints an update notice when a newer version is available.
  • If no calls are found, funccheck prints: No function calls found.
  • Parse errors are reported on stderr; with --strict, they also cause a non-zero exit status.

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.2.1.tar.gz (7.6 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.2.1-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for funccheck-0.2.1.tar.gz
Algorithm Hash digest
SHA256 af70ca8f3c60b743f9f98473b3811a6f8f4efcb89d0204dfb5679ff49479682a
MD5 f138c5712c23ca3c112ee72cc83f922b
BLAKE2b-256 443727e524ecf2d3b3ad7c388bb0cb8faabb854cbd6dc02499bf939bd2f1e442

See more details on using hashes here.

Provenance

The following attestation bundles were made for funccheck-0.2.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.2.1-py3-none-any.whl.

File metadata

  • Download URL: funccheck-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 8.1 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.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 031e9ec7be416df2002afb81b69e64743a0ce552457dcf4740591bb98fb243f1
MD5 b5ebd3879a7fd166cf10a03fc99c5681
BLAKE2b-256 68523f0464d5cdba8bbf95f5c07ab3f0cf81107d954a5d75caacdba589e92095

See more details on using hashes here.

Provenance

The following attestation bundles were made for funccheck-0.2.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