Skip to main content

Common Utils.

Project description

Srutil

PyPI Pypi - License PyPI - Python Version

Common Utils.

Installation

pip install -U srutil

Usage

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()

Issues:

If you encounter any problems, please file an issue along with a detailed description.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

srutil-1.0.3.tar.gz (12.1 kB view hashes)

Uploaded Source

Built Distribution

srutil-1.0.3-py3-none-any.whl (14.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page