# 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
```
Raw data
{
"_id": null,
"home_page": "https://github.com/Tom-the-Bomb/async-tio",
"name": "async-tio",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": "",
"keywords": "",
"author": "Tom-the-Bomb",
"author_email": "",
"download_url": "",
"platform": null,
"description": "# Async-Tio\nThis is a simple unofficial async Api-wrapper for [tio.run](https://tio.run/#)\n\n**Installation**\n```bash\n$ py -m pip install async_tio\n```\n**Install Latest**\n```bash\n$ py -m pip install git+https://github.com/Tom-the-Bomb/async-tio.git\n```\n**Example**\n\n```py\n# assuming you are already inside an async environment and have already imported everything\n# to instantiate\n# recommended to have a global class if you are going to run .execute more than 1 time throughout the program\n# alternatively you can use the async context manager if it's a one time use:\n# async with async_tio.Tio() as tio: ...\ntio = async_tio.Tio() # Optional 'loop' and 'session' kwargs etc. if needed\n\n# to execute\noutput = await tio.execute(\"print('')\", language=\"python3\") # pass in other optional kwargs if needed\n\nprint(str(output)) # the formatted output along with the stats\nprint(output.stdout) # the output by itself\nprint(int(output)) # returns the exit status\n\n# print(vars(output).keys())\n# -> dict_keys(['token', 'output', 'stdout', 'real_time', 'user_time', 'sys_time', 'cpu_usage', 'exit_status'])\n# all the attributes of the response object you can access\n```\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "An unoffical API wrapper for tio.run",
"version": "1.3.2",
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"md5": "1679b4c2f3e259e5f045cf02465cdc7e",
"sha256": "9b12816f90747b8d7ff6cfb03202f6dc9e06949f08be48278bbe722d9d1bd34d"
},
"downloads": -1,
"filename": "async_tio-1.3.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "1679b4c2f3e259e5f045cf02465cdc7e",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 8213,
"upload_time": "2022-06-30T01:26:12",
"upload_time_iso_8601": "2022-06-30T01:26:12.736618Z",
"url": "https://files.pythonhosted.org/packages/f9/6c/c72bbb1bf9dc2b140ce25f66882b5ad3d241acf43b63a82997e098641708/async_tio-1.3.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2022-06-30 01:26:12",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "Tom-the-Bomb",
"github_project": "async-tio",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [
{
"name": "aiohttp",
"specs": []
},
{
"name": "typing_extensions",
"specs": []
}
],
"lcname": "async-tio"
}