A Python package to analyze Python scripts automatically
Project description
pythonhelper-toolkit
A Python package to analyze Python scripts automatically.
Installation
pip install pythonhelper-toolkit
Usage
from pythonhelper import CodeAnalyzer
ca = CodeAnalyzer("my_script.py")
ca.count_functions()
ca.count_lines()
ca.find_imports()
ca.detect_comments()
ca.style_report()
ca.full_report()
Features
count_functions()— Count total functions defined in the scriptcount_lines()— Total, non-blank, and blank line countsfind_imports()— List all imported modulesdetect_comments()— Count single-line comments and docstringsstyle_report()— Basic PEP8 style checks (no extra dependencies)full_report()— Run all checks at once
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 pythonhelper_toolkit-0.1.0.tar.gz.
File metadata
- Download URL: pythonhelper_toolkit-0.1.0.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f0de43965f6b965081d73cf3069d4834fe3246a224b716b296636cf0fbadc122
|
|
| MD5 |
4462f18a059ac68bf7c24a7d55f7f354
|
|
| BLAKE2b-256 |
c1cc52507c33541965442a05ba10e447ce601a2c1e34dbcb62704895f99601c5
|
File details
Details for the file pythonhelper_toolkit-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pythonhelper_toolkit-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a4ee56942bea4d50da07fb808e04d9893d4c4661eb6c8a3156bfb30734b0ecc6
|
|
| MD5 |
68b89bb031590caef29e4eb99ff7374e
|
|
| BLAKE2b-256 |
452453c846ab5ffacf75b98e54750c6b25e7f10eb97f83d138dc52c29dae241d
|