algorithmic python debugging
Project description
alkh [al-khwarizmi]
Algorithmic python debugging
1. Convert your debugger stack to jupyter notebook
2. Focus on code pathways using local web application
Installation
pip install alkh
Convert your debugger stack to jupyter notebook
API
function name: take_it_offline
description: create jupyter notebook based on the program stack
parameters:
notebook_dir_path: Optional[str] = None, directory path to save the notebook in
levels: Optional[int] = 1, number of program stack layers to put in notebook
Usage
import alkh
alkh.take_it_offline('path-of-notebooks-directory')
or
alkh.take_it_offline('path-of-notebooks-directory', levels=2)
or
bash:
export ALKH_NOTEBOOKS_PATH='path-to-notebooks-directory'
python:
import alkh
alkh.take_it_offline()
or
alkh.take_it_offline(levels=2)
Usage flow example
Stop at breakpoint within PyCharm
Use Console to run code within debugger
Run: import alkh
Run: alkh.take_it_offline('path-of-notebooks-directory')
Start Jupyter
Run the notebook
Focus on code pathways using local web application
API
function name: analyze
description: launches web application to analyze code pathways
parameters:None
Usage
import alkh
alkh.analyze()
Usage flow example
Add two line to top of file
Run the file
Analyze your code
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
File details
Details for the file alkh-0.5.0.tar.gz
.
File metadata
- Download URL: alkh-0.5.0.tar.gz
- Upload date:
- Size: 985.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 404140c529787e596e7c017681e5ac55750557eaba785e472ce00fa971757d14 |
|
MD5 | c4a27f7ec7118cb959483c243122cef1 |
|
BLAKE2b-256 | c6ed8c47219e54a80b6368e9218eb0916b40e0e3c8e696141fb11495ff39a63c |
File details
Details for the file alkh-0.5.0-py3-none-any.whl
.
File metadata
- Download URL: alkh-0.5.0-py3-none-any.whl
- Upload date:
- Size: 40.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 072a1f7eeabca09e0b3bff5db44c476fbea7b0caafabc5f0bb2c43c4d0c0057b |
|
MD5 | 36e24a0d7e566adaae340292882ef472 |
|
BLAKE2b-256 | e4817db03bd92d7060644eb3b91cc8f1b71d640227e9711d96c580895277b8dc |