Skip to main content

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 script
  • count_lines() — Total, non-blank, and blank line counts
  • find_imports() — List all imported modules
  • detect_comments() — Count single-line comments and docstrings
  • style_report() — Basic PEP8 style checks (no extra dependencies)
  • full_report() — Run all checks at once

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

pythonhelper_toolkit-0.1.0.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pythonhelper_toolkit-0.1.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

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

Hashes for pythonhelper_toolkit-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f0de43965f6b965081d73cf3069d4834fe3246a224b716b296636cf0fbadc122
MD5 4462f18a059ac68bf7c24a7d55f7f354
BLAKE2b-256 c1cc52507c33541965442a05ba10e447ce601a2c1e34dbcb62704895f99601c5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pythonhelper_toolkit-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a4ee56942bea4d50da07fb808e04d9893d4c4661eb6c8a3156bfb30734b0ecc6
MD5 68b89bb031590caef29e4eb99ff7374e
BLAKE2b-256 452453c846ab5ffacf75b98e54750c6b25e7f10eb97f83d138dc52c29dae241d

See more details on using hashes here.

Supported by

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