semvec/pypi-packages huggingface dataset:
debugger-for-small-scripts 0.92
Simple debugger
License: MIT
Keywords: debugger,debugging


# debugger_for_small_scripts

Simple debugger for small scripts - shows the line being executed, local vars, log files as xlsx

```python
pip install debugger-for-small-scripts
```

```python
#Examples
from debugger_for_small_scripts import get_detailed_debugger

#Configurations for all debugged functions with
detailed_debugger = get_detailed_debugger()
detailed_debugger.enabled = True
detailed_debugger.write_log_file = True
detailed_debugger.log_folder = "f:\\mylogstest2"
detailed_debugger.pause_for_n_seconds_when_exception = 1
detailed_debugger.continue_on_exceptions = True
detailed_debugger.print_write_exceptions_only = False


@detailed_debugger
def test1(x, y):
    vara = x * y * 1000


@detailed_debugger
def test2(x, y):
    test2 = x * y * 6
    test3 = x * y * 16
    return x * y


@detailed_debugger
def test3(*args, **kwargs):
    hal = "hallo" in kwargs
    return args


@detailed_debugger
def test4_exception(x, t):
    tt = t * t
    j = 0
    p = x / j
    return p


test1(44, 44)
test2(44, 122)
test3(3, 4, 4, hallo="baba")
test4_exception(199, 34)
```

<div>
<img title="" src="https://raw.githubusercontent.com/hansalemaos/debugger_for_small_scripts/main/screen2.png" alt="">
</div>

```python
from debugger_for_small_scripts import get_detailed_debugger
##Let's use some other configurations
detailed_debugger = get_detailed_debugger()
detailed_debugger.enabled = True
detailed_debugger.write_log_file = False
detailed_debugger.log_folder = "f:\\mylogstest2"
detailed_debugger.pause_for_n_seconds_when_exception = 1
detailed_debugger.continue_on_exceptions = True
detailed_debugger.print_write_exceptions_only = True


@detailed_debugger
def test1(x, y):
    vara = x * y * 1000


@detailed_debugger
def test2(x, y):
    test2 = x * y * 6
    test3 = x * y * 16
    return x * y


@detailed_debugger
def test3(*args, **kwargs):
    hal = "hallo" in kwargs
    return args


@detailed_debugger
def test4_exception(x, t):
    tt = t * t
    j = 0
    p = x / j
    return p


test1(44, 44)
test2(44, 122)
test3(3, 4, 4, hallo="baba")
test4_exception(199, 34)
```

<div>
<img title="" src="https://raw.githubusercontent.com/hansalemaos/debugger_for_small_scripts/main/screen1.png" alt="">
</div>
minikservices 0.0.6
App to start, stop and view minikube services easily.
License: MIT
Requires Python: >=3.9, <4
Keywords: minikube,k8s,minikube services

# Minikube Services

__minikservices__ is a small and very simple python project that aims to help with the start and stop of __Minikube__ services.

Instead of creating multiple terminal tabs to expose minikube services, you can use __kservice__ command line tool to start and stop services. It will also display the exposed services and its addresses. 


## Build/Dev local
```
git clone https://github.com/dszortyka/minikservices.git
cd minikservices
python3 -m venv .pyenv
source .pyenv/bin/activate
pip install -r requirements.txt
pip install . 
kservice -h
```

## Python Package (PyPI)
```
pip install minikservices
```


## Usage
```
kservice --start service1 service2
kservice --start service1 service2 -n namespace

kservice --stop service1 service2
kservice --stop service1 service2 -n namespace

kservice --startall
kservice --stopall

kservice --status
```

## How it works
* The application will start the minikube service in background and store and temp file in /tmp folder. 
* If you have an Application deployed in two different namespaces and run the __--start__ operation without specifying the -n (namespace), it will start the application on both namespaces. The same is valid for __--stop__
* __--startall__ and __--stopall__ works in the same way, it will start all services in all namespaces unless you specify which __-n__ (namespace) in want. 
* __--status__ will print a table with service names, namespace and the current URL for the exposed services. 

```
❯ kservice --start simple-flask-app

❯ kservice --status
+-----------+-----------------------------------------+------------------------+
| Namespace |               Service Name              |          URL           |
+-----------+-----------------------------------------+------------------------+
|   argocd  |     argocd-applicationset-controller    |                        |
|   argocd  |            argocd-dex-server            |                        |
|   argocd  |              argocd-metrics             |                        |
|   argocd  | argocd-notifications-controller-metrics |                        |
|   argocd  |               argocd-redis              |                        |
|   argocd  |            argocd-repo-server           |                        |
|   argocd  |              argocd-server              |                        |
|   argocd  |          argocd-server-metrics          |                        |
|  default  |             simple-flask-app            | http://127.0.0.1:64888 |
|  flaskapp |             simple-flask-app            | http://127.0.0.1:64885 |
+-----------+-----------------------------------------+------------------------+
```