Common Utils.
pip install -U srutil
Few usages of srutil
package,
To get home directory
from srutil import util
home_dir = util.home()
To get random number between 6
and 30
from srutil import util
num = util.rand_num(6, 30)
To check if network is available
from srutil import util
is_connected = util.isnetworkconnected()
To paste data from clipboard
from srutil import util
data = util.from_clipboard()
To get current time in milliseconds
from srutil import util
time_in_millis = util.current_in_millis()
If you encounter any problems, please file an issue along with a detailed description.