async-tio-1.3.2
توضیحات
An unoffical API wrapper for tio.run
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | async-tio-1.3.2 |
| نام | async-tio |
| نسخه کتابخانه | 1.3.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Tom-the-Bomb |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com/Tom-the-Bomb/async-tio |
| آدرس اینترنتی | https://pypi.org/project/async-tio/ |
| مجوز | MIT |
# Async-Tio
This is a simple unofficial async Api-wrapper for [tio.run](https://tio.run/#)
**Installation**
```bash
$ py -m pip install async_tio
```
**Install Latest**
```bash
$ py -m pip install git+https://github.com/Tom-the-Bomb/async-tio.git
```
**Example**
```py
# assuming you are already inside an async environment and have already imported everything
# to instantiate
# recommended to have a global class if you are going to run .execute more than 1 time throughout the program
# alternatively you can use the async context manager if it's a one time use:
# async with async_tio.Tio() as tio: ...
tio = async_tio.Tio() # Optional 'loop' and 'session' kwargs etc. if needed
# to execute
output = await tio.execute("print('')", language="python3") # pass in other optional kwargs if needed
print(str(output)) # the formatted output along with the stats
print(output.stdout) # the output by itself
print(int(output)) # returns the exit status
# print(vars(output).keys())
# -> dict_keys(['token', 'output', 'stdout', 'real_time', 'user_time', 'sys_time', 'cpu_usage', 'exit_status'])
# all the attributes of the response object you can access
```
نیازمندی
| مقدار | نام |
|---|---|
| - | aiohttp |
| - | typing-extensions |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8 | Python |
نحوه نصب
نصب پکیج whl async-tio-1.3.2:
pip install async-tio-1.3.2.whl
نصب پکیج tar.gz async-tio-1.3.2:
pip install async-tio-1.3.2.tar.gz