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
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.1.tar.gz
(4.5 kB
view details)
Built Distribution
File details
Details for the file pyaphid-0.1.1.tar.gz
.
File metadata
- Download URL: pyaphid-0.1.1.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f98ff3b80fd2e7351ff97748a395d2d914c66eee8089b6ed34fe4965449b31f |
|
MD5 | 528dda3d4ba34d5ba7e9e749bd869b54 |
|
BLAKE2b-256 | 0cc112d4e842dabcdb0614623194b8c002651c1b74aa6788e97bc37f92028d10 |
File details
Details for the file pyaphid-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: pyaphid-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.2 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 | 5ead8b616f920a4e628f17dd6d8b25dc334cf8a6f4327bb0b922266ac945bc3d |
|
MD5 | c83d7825c878663d143bee4715ac029c |
|
BLAKE2b-256 | b1dbd72ebb57197206b2caa61e821ee93c779817078141d6e1b7fcd31c1e56de |