srutil


Namesrutil JSON
Version 1.0.3 PyPI version JSON
download
home_page
SummaryCommon Utils.
upload_time2022-12-24 14:16:24
maintainer
docs_urlNone
author
requires_python>=3.6
licenseApache License, Version 2.0
keywords srutil util
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Srutil

[![PyPI](https://img.shields.io/pypi/v/srutil)](https://pypi.python.org/pypi/srutil)
[![Pypi - License](https://img.shields.io/github/license/codesrg/srutil)](https://github.com/codesrg/srutil/blob/main/LICENSE)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/srutil?color=red)](https://pypi.python.org/pypi/srutil)

Common Utils.

## Installation

`pip install -U srutil`

## Usage

Few usages of `srutil` package,

To get home directory

```python
from srutil import util

home_dir = util.home() 
```

###

To get random number between `6` and `30`

```python
from srutil import util

num = util.rand_num(6, 30)
```

###

To check if network is available

```python
from srutil import util

is_connected = util.isnetworkconnected()
```

###

To paste data from clipboard

```python
from srutil import util

data = util.from_clipboard()
```

###

To get current time in milliseconds

```python
from srutil import util

time_in_millis = util.current_in_millis()
```

## Issues:

If you encounter any problems, please file an [issue](https://github.com/codesrg/srutil/issues) along with a detailed
description.

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "srutil",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "srutil,util",
    "author": "",
    "author_email": "srg <srg.code@pm.me>",
    "download_url": "https://files.pythonhosted.org/packages/f1/9e/5d6e1b17d375d404134ac438ac70b8c34fad70381140fa929f5a76654486/srutil-1.0.3.tar.gz",
    "platform": null,
    "description": "# Srutil\r\n\r\n[![PyPI](https://img.shields.io/pypi/v/srutil)](https://pypi.python.org/pypi/srutil)\r\n[![Pypi - License](https://img.shields.io/github/license/codesrg/srutil)](https://github.com/codesrg/srutil/blob/main/LICENSE)\r\n[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/srutil?color=red)](https://pypi.python.org/pypi/srutil)\r\n\r\nCommon Utils.\r\n\r\n## Installation\r\n\r\n`pip install -U srutil`\r\n\r\n## Usage\r\n\r\nFew usages of `srutil` package,\r\n\r\nTo get home directory\r\n\r\n```python\r\nfrom srutil import util\r\n\r\nhome_dir = util.home() \r\n```\r\n\r\n###\r\n\r\nTo get random number between `6` and `30`\r\n\r\n```python\r\nfrom srutil import util\r\n\r\nnum = util.rand_num(6, 30)\r\n```\r\n\r\n###\r\n\r\nTo check if network is available\r\n\r\n```python\r\nfrom srutil import util\r\n\r\nis_connected = util.isnetworkconnected()\r\n```\r\n\r\n###\r\n\r\nTo paste data from clipboard\r\n\r\n```python\r\nfrom srutil import util\r\n\r\ndata = util.from_clipboard()\r\n```\r\n\r\n###\r\n\r\nTo get current time in milliseconds\r\n\r\n```python\r\nfrom srutil import util\r\n\r\ntime_in_millis = util.current_in_millis()\r\n```\r\n\r\n## Issues:\r\n\r\nIf you encounter any problems, please file an [issue](https://github.com/codesrg/srutil/issues) along with a detailed\r\ndescription.\r\n",
    "bugtrack_url": null,
    "license": "Apache License, Version 2.0",
    "summary": "Common Utils.",
    "version": "1.0.3",
    "split_keywords": [
        "srutil",
        "util"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "22916dcf798345a94d508420d283c768",
                "sha256": "73d49981c4995ea37db17f7c074f6bf6a9ee18fb7cc0cfce32fc279831dd4442"
            },
            "downloads": -1,
            "filename": "srutil-1.0.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "22916dcf798345a94d508420d283c768",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 13969,
            "upload_time": "2022-12-24T14:16:23",
            "upload_time_iso_8601": "2022-12-24T14:16:23.009143Z",
            "url": "https://files.pythonhosted.org/packages/e1/8a/78bc6a55e12e2d090eae8ba6586dc5227027792a677648fd0ebebf58c91e/srutil-1.0.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "01ab04a6a8c2ec04f4c13c7fa7373381",
                "sha256": "8c98b5bcde8455e72aba03b830f2d536122b4fe400fef8f2004918798d731803"
            },
            "downloads": -1,
            "filename": "srutil-1.0.3.tar.gz",
            "has_sig": false,
            "md5_digest": "01ab04a6a8c2ec04f4c13c7fa7373381",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 12117,
            "upload_time": "2022-12-24T14:16:24",
            "upload_time_iso_8601": "2022-12-24T14:16:24.955465Z",
            "url": "https://files.pythonhosted.org/packages/f1/9e/5d6e1b17d375d404134ac438ac70b8c34fad70381140fa929f5a76654486/srutil-1.0.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-12-24 14:16:24",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "srutil"
}
        
Elapsed time: 0.02564s