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.0.tar.gz (5.7 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.0-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: funccheck-0.1.0.tar.gz
  • Upload date:
  • Size: 5.7 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.0.tar.gz
Algorithm Hash digest
SHA256 f7ecb47f8b983d06c50939a23f1d8713916f0ae5212d5ee97111bb58bae4e1e0
MD5 b7f49272a0ea1e1c45ed5597b7930317
BLAKE2b-256 420f0a9168edd7efb93b6c07ec8552bdcf71c58a83be0a2c0dbb1555dd8e684f

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: funccheck-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.6 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3b70c201284ffff3dd3db79381a8b978f46c326e2dd3ad37d400298a534b18be
MD5 003f482b03b33f5a24ab19e2e39a193d
BLAKE2b-256 01bc5c82426e1798fd7487d966af65a38e67fc160913c73c9defa42d44b55614

See more details on using hashes here.

Provenance

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