My personal toolbox
Project description
Rousquille's tools
My personal toolbox 🛠
Python 🐍
Measurement of the time used by a function
import time
from rousquille_tools.decorators import time_def
@time_def
def func1():
time.sleep(5)
Result:
>>> func1()
[time_def] Function: func1 Time: 5.0s
Detect if python is executed in screen session
>>> from rousquille_tools.shell import is_in_screen_session
>>> print(is_in_screen_session())
False
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
rousquille_tools-0.1.1.tar.gz
(1.6 kB
view hashes)
Built Distribution
Close
Hashes for rousquille_tools-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38578e4ced7fce81ca0c46a67bd258f2a9f4c896f893709f62e3f9f3d8381eb9 |
|
MD5 | adea1c1278561c767984ca35cff59cb1 |
|
BLAKE2b-256 | 109d6178dc958f3585f06ee5d936d71912d0edce2bfe5a32bfd965344e097f36 |