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.
  • 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.

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: funccheck-0.2.0.tar.gz
  • Upload date:
  • Size: 6.9 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.0.tar.gz
Algorithm Hash digest
SHA256 e673ec79d0656fdf24bc6fc53ac25db070f08670aa3144a19afbd28cd7845f0a
MD5 5f30335076a8822db3e2ed960a681174
BLAKE2b-256 4d4a83faa065047511cf9799a6440c25be14a5495e359711fa512a8a823994ca

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: funccheck-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 7.4 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b586c095319cfdb52b54f8e52fa195307fa91e9e9c75688d81599cc3c8316fa1
MD5 6b4623f9465a485ad22fa8e2e178091c
BLAKE2b-256 21c596befd0615aec0baec725cd424b5fc9bca1bc79e50d724a7914211f94df0

See more details on using hashes here.

Provenance

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