Metadata-Version: 2.1
Name: async-tio
Version: 1.0.3
Summary: An unoffical API wrapper for tio.run
Home-page: https://github.com/Tom-the-Bomb/async-tio
Author: Tom-the-Bomb
License: MIT
Project-URL: Repository, https://github.com/Tom-the-Bomb/async-tio
Project-URL: Issue tracker, https://github.com/Tom-the-Bomb/async-tio/issues
Platform: UNKNOWN
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Utilities
Requires-Python: >=3.7
Description-Content-Type: text/markdown
Requires-Dist: aiohttp

# Async-Tio
This is a simple unofficial async Api-wrapper for [tio.run](https://tio.run/#)

**Installation**
```bash
$ pip install async_tio
```

**Examples**
```py
import asyncio
import async_tio

async def main():

    async with await async_tio.Tio() as tio:
        print(tio.languages) #list of all supported languages

        #execute the code
        return await tio.execute("print('hello world')", language="python3")

    #Or you can do
    tio = await async_tio.Tio() #instantiate a Tio object
    ...
    #do stuff
    ...
    #at the end
    await tio.close()

output = asyncio.run(main())

print(str(output)) #the formatted output along with the stats
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
```


