Metadata-Version: 2.4
Name: rishlib
Version: 0.1.0
Summary: ./rish command for python!
Author: abiyyumc
License: MIT
Requires-Python: >=3.8
Description-Content-Type: text/markdown

# rishlib
python library that can run cmds with rish!

## how to install
```
pip install rishlib
```
## How to use
```python
from rishlib import Rish

env = Rish.setup(app="com.termux") #default = "com.termux"
output = Rish(cmd).run(env=env, pref="./rish", c=True, timeout=10)
# use setup() to setup your rish
# fill pref arg with "./rish" if your current directory is in rish directory, if not do not fill pref arg
# c is for "-c"
```
## Features
| Function | Result |
| --- | --- |
| `Rish.setup()` | Setup your rish by setting the RISH_APPLICATION_ID and return the enviroment dict
| `Rish(cmd).run(env, pref, c, timeout)` | Run program and return the results

## LISCENSE
__MIT__
