alkh-0.4.1
توضیحات
algorithmic python debugging
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | alkh-0.4.1 |
| نام | alkh |
| نسخه کتابخانه | 0.4.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Erez Aharonov |
| ایمیل نویسنده | ahar.erez@gmail.com |
| آدرس صفحه اصلی | https://github.com/erez-aharonov/alkh |
| آدرس اینترنتی | https://pypi.org/project/alkh/ |
| مجوز | Apache License 2.0 |
# alkh [al-khwarizmi]
### Algorithmic python debugging
### 1. [Convert your debugger stack to jupyter notebook](#convert-your-debugger-stack-to-jupyter-notebook)

### 2. [Focus on code pathways using local web application](#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</br>
alkh.analyze()
### Usage flow example
Add two line to top of file

Run the file

Analyze your code

نیازمندی
| مقدار | نام |
|---|---|
| >=1.16.6 | numpy |
| >=0.25.0 | pandas |
| >=5.1.3 | nbformat |
| >=1.12.0 | streamlit |
| >=0.4.7 | libcst |
| >=2.5.1 | networkx |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7.2 | Python |
نحوه نصب
نصب پکیج whl alkh-0.4.1:
pip install alkh-0.4.1.whl
نصب پکیج tar.gz alkh-0.4.1:
pip install alkh-0.4.1.tar.gz