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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rousquille_tools-0.1.2.tar.gz.
File metadata
- Download URL: rousquille_tools-0.1.2.tar.gz
- Upload date:
- Size: 1.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.1 CPython/3.11.0 Darwin/21.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
35ebfbe23572380991a3f24c2ac9f63fd4e2b0f1ea7c632806b83c52cf8991a2
|
|
| MD5 |
53655e9bcd09e709c4fecdb04c916225
|
|
| BLAKE2b-256 |
1b141caaabed10e42e23afc897d5c207c135f1bde4e17bc78fb2f65d0cc87808
|
File details
Details for the file rousquille_tools-0.1.2-py3-none-any.whl.
File metadata
- Download URL: rousquille_tools-0.1.2-py3-none-any.whl
- Upload date:
- Size: 2.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.1 CPython/3.11.0 Darwin/21.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9c31e7494d3f8ee7c9181f7cbd7913e6b1e4e09ba32aa847511d076ecf5193ba
|
|
| MD5 |
a46b41d41a73681116f8a16f462f0417
|
|
| BLAKE2b-256 |
674d309dc9727a14c55f91e57bab756cd3c67ad46a779f13147b373dc418488d
|