A python package to scan Python files, check encoding issues and provide an audit summary
Project description
PyFaudit
PyFaudit is a Python utility to scan Python files in a directory (and its subdirectories), check for encoding issues, and provide a summary of the files scanned.
Installation
You can install PyFaudit with pip:
pip install PyFaudit
Usage
You can use PyFaudit from the command line or import it in your Python script.
Command line
Run PyFaudit from the command line like this:
PyFaudit /path/to/your/directory
For verbose output, use the -v or --verbose option:
PyFaudit /path/to/your/directory --verbose
Python script
Here is how to use PyFaudit in a Python script or Jupyter notebook:
from PyFaudit import scan_files
total_files, total_size, problem_files = scan_files('/path/to/your/directory')
The scan_files function returns a tuple containing the total number of files scanned, the total size of scanned files in bytes, and a list of paths to the files that caused a UnicodeDecodeError.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file PyFaudit-0.1.0.tar.gz.
File metadata
- Download URL: PyFaudit-0.1.0.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f43527da9738b6457bd2faae57e3072ce4f59ba607801427b044910e73eb7d96
|
|
| MD5 |
d827eb0bbcf0035abd0566958c6760ef
|
|
| BLAKE2b-256 |
1339845754720fb63a359b5deb9220c907e521218081fd82a3e734f1cea3e091
|
File details
Details for the file PyFaudit-0.1.0-py3-none-any.whl.
File metadata
- Download URL: PyFaudit-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0f706588f58325b36a60006a744ed69dc3e5fb295110f52c5d9409fc5aaf1e67
|
|
| MD5 |
0d74e12953f391f89fdbf79d3eb14731
|
|
| BLAKE2b-256 |
2753a9b670c8a82344c6514029fb8d83f12d4ea8595779d77d1db14d67677cf4
|