semvec/pypi-packages huggingface dataset:
local 1.0.0
To browse local files.
License: Apache License, Version 2.0
Requires Python: >=3.6
Keywords: local,browse

# local

[![PyPI](https://img.shields.io/pypi/v/local)](https://pypi.python.org/pypi/local)
[![Pypi - License](https://img.shields.io/github/license/codesrg/local)](https://github.com/codesrg/local/blob/main/LICENSE)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/local?color=red)](https://pypi.python.org/pypi/local)

To browse local files.

## Installation

`pip install -U local`

## Usage

```
usage: local [options]

optional arguments:
  -h, --help       show this help message and exit
  -v, --version    show version number and exit.

to browse local files:
  keys             keyword to search
  -p , --path      root path
  -n, --no-prompt  do not interactively prompt for choice
```

### Python Script

To browse local files.

```python
from local import Local

loc = Local("../path").search("key", "words")
loc.display()  # to display results
loc.open("category-index")  # to open specified file/folder
```

### Command Line

To browse local files.

```
$ local "key" "word" --path "/"
### matched results ###
```

## Issues:

If you encounter any problems, please file an [issue](https://github.com/codesrg/local/issues) along with a detailed
description.
ioutil 1.0.3
To read and write files.
License: Apache License, Version 2.0
Requires Python: >=3.6
Keywords: io,read,write,file,ioutil

# IOutil

[![PyPI](https://img.shields.io/pypi/v/ioutil)](https://pypi.python.org/pypi/ioutil)
[![Pypi - License](https://img.shields.io/github/license/codesrg/ioutil)](https://github.com/codesrg/ioutil/blob/main/LICENSE)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/ioutil?color=red)](https://pypi.python.org/pypi/ioutil)

To read and write files.

csv, json, parquet, text, toml formats is supported.

## Installation

`pip install -U ioutil`

## Usage

```
usage: ioutil [options]

optional arguments:
  -h, --help      show this help message and exit
  -v, --version   show version number and exit.

to read/write files:
  path            path to read/write
  -r, --read      to read file
  -w, --write     to write file
  -d, --data      data to write
  -f, --format    file format to use
  -m, --mode      mode to open file
  --rfv           will return formatted string (CSV only)

-w/--write function may return error as it expects data in specific datatype.
Writing files using commandline isn't recommended.
```

### Python Script

To read/write csv file.

```python
from ioutil import csv

data = [['a', 'b'], [1, 2], [3, 4]]
path = '.../file.csv'
csv.write(data=data, path=path)  # to write csv
csv.read(path=path)  # to read csv
```

```python
from ioutil import File

data = [{'a': 1, 'b': 2}, {'a': 3, 'b': 4}]
path = '.../file.csv'

File.write(data=data, path=path)  # to write file
File.read(path=path)  # to read file
```

### Command Line (not recommended)

To write a text file.

```
$ ioutil ".../file.txt" --data "data" --write
True
```

###

To read a json file.

```
$ ioutil ".../file.json" --read
### content of a file ###
```

## Issues:

If you encounter any problems, please file an [issue](https://github.com/codesrg/ioutil/issues) along with a detailed
description.
srutil 1.0.3
Common Utils.
License: Apache License, Version 2.0
Requires Python: >=3.6
Keywords: srutil,util

# 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.