semvec/pypi-packages huggingface dataset:
rousquille-tools 0.1.2
My personal toolbox
License: MIT
Requires Python: >=3.9,<4.0

# Rousquille's tools

My personal toolbox 🛠

## Installation

```
pip install rousquille-tools
```

## Python 🐍

<details><summary>Measurement of the time used by a function</summary>
<p>

```py
import time
from rousquille_tools.decorators import time_def


@time_def
def func1():
    time.sleep(5)
```
Result:
```py
>>> func1()
[time_def] Function: func1 Time: 5.0s
```


</p>
</details>

<details><summary>Detect if python is executed in screen session</summary>
<p>

```py
>>> from rousquille_tools.shell import is_in_screen_session
>>> print(is_in_screen_session())
False
```

</p>
</details>