Identify debugging function calls
Project description
Pyaphid (Experimental)
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
As a pre-commit hook
- repo: https://github.com/jvllmr/pyaphid
rev: v0.1.2
hooks:
- id: pyaphid
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.2.tar.gz
(5.7 kB
view details)
Built Distribution
File details
Details for the file pyaphid-0.1.2.tar.gz
.
File metadata
- Download URL: pyaphid-0.1.2.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72e4452c58ea8e8e25f754681ffcfbafde4dfbb99c21f644e9cf4f1354379e0c |
|
MD5 | 3eab0508c96e9b8ff74b768c68d48e21 |
|
BLAKE2b-256 | 71e71c33a0e77ffcfebb787327f688a8ed8abe798877a337a3f23f725128d473 |
File details
Details for the file pyaphid-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: pyaphid-0.1.2-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e59f1f4818bda7ab79c641fa49aa9860895de599a2521c2f1182ee6145c9e9f |
|
MD5 | a470a2865594d012ac502ec02ab8db66 |
|
BLAKE2b-256 | 14a966434ba68bd7b9ad75e75c5820a7bc018091570468f84981d5f3d206f073 |