Skip to main content

Identify and remove debugging code

Project description

Pyaphid

Pyaphid is a tool for detecting unwanted function calls in Python code.

Installation and usage

Installation: pip install pyaphid

Usage: python -m pyaphid <files and/or directories to analyze> or pyaphid <files and/or directories to analyze>

Configuration

Forbidden function calls can be configured via the pyproject.toml:

[tool.pyaphid]
forbidden = [
    "print",
    "pdb.run",
    "werkzeug.debug.*"
]

CLI Options

  • -n / --names: Look-up all func calls and print their identifier

Limitations

# Pyaphid cannot work with star imports
from os.path import *
dirname(".") # undetected

# Pyaphid doesn't track assignments
my_print = print
my_print("Hello world") # undetected

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

pyaphid-0.1.0.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

pyaphid-0.1.0-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyaphid-0.1.0.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for pyaphid-0.1.0.tar.gz
Algorithm Hash digest
SHA256 98bb89d863b897771036a3378b6e49975257b2050db1efa2c0a584974bd7382d
MD5 5159c9773c4cde500e61cb7ebbc4c0eb
BLAKE2b-256 4feb7af822a7408e9f96158edfdbb30fcde971259477647e61c3ecb7005617cc

See more details on using hashes here.

File details

Details for the file pyaphid-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pyaphid-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for pyaphid-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c699d93305e984b86ba7392186debd0e973d9ad5a1a9f50c1c677d1becc00f86
MD5 a52335e0f550661639a63a4f5cffddd3
BLAKE2b-256 910f13386fcf19be89616b24c04da2256008ee4ab21b292090736c0f34e0c148

See more details on using hashes here.

Supported by

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