Python developer toolkit — performance analyzer and more
Project description
masoumi
Python developer toolkit — performance analyzer and more.
Install
pip install masoumi
Usage
import masoumi
code = open("my_script.py").read()
# Analyze full file
masoumi.analyze(code)
# Analyze specific line range
masoumi.analyze(code, start=10, end=50)
# Analyze a file directly
masoumi.analyze_file("my_script.py", start=1, end=100)
What it detects
| Severity | Issue |
|---|---|
| 🔴 HIGH | String concatenation += inside loops |
| 🟡 MEDIUM | in lookup on list/tuple instead of set |
| 🟡 MEDIUM | Bare except: clause |
| 🔵 LOW | Unnecessary pass statements |
| 🔵 LOW | Imports inside functions |
| 🟣 PROFILE | Slow functions (runtime profiling) |
License
MIT
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
masoumi-0.1.0.tar.gz
(3.9 kB
view details)
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 masoumi-0.1.0.tar.gz.
File metadata
- Download URL: masoumi-0.1.0.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c74f1f075db25e28fb623beb54699c3abc51941eadaff7ff1f4dc4ad581faa7e
|
|
| MD5 |
b21284b05f22003ae8e367bf8b049c39
|
|
| BLAKE2b-256 |
ed9d4ae8f8cdfe58f0a64d70c25837e691ad87d5cd44361d42f45249bf7094c8
|
File details
Details for the file masoumi-0.1.0-py3-none-any.whl.
File metadata
- Download URL: masoumi-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f061f816c3494bab450f862b5d8d20eb0fb3142a6e32309a784f16f148251555
|
|
| MD5 |
70d5f5b3357f3481d94f1594650a17ff
|
|
| BLAKE2b-256 |
774e27e99f9af652463fa6246cde90cb07693f69274272fda36120893832b3bd
|