My personal toolbox
Project description
Rousquille's tools
My personal toolbox 🛠
Installation
pip install rousquille-tools
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.2.tar.gz
(1.8 kB
view hashes)
Built Distribution
Close
Hashes for rousquille_tools-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c31e7494d3f8ee7c9181f7cbd7913e6b1e4e09ba32aa847511d076ecf5193ba |
|
MD5 | a46b41d41a73681116f8a16f462f0417 |
|
BLAKE2b-256 | 674d309dc9727a14c55f91e57bab756cd3c67ad46a779f13147b373dc418488d |