Homemade SDK for tio.run
Developed and used for tuxbot-bot
- The pre-requirements are:
- Python 3.8 or greater
- Pip
- Git
Some examples:
>>> from tio.tio import Tio
>>>
>>> tio = Tio()
>>> tio.get_languages().keys()
dict_keys(['05ab1e', '1l-a', '1l-aoi', '2dfuck', '2l', '2sable'...
>>>
>>> print(tio.run("python", "print(42)"))
42
Exit code: 0
>>> from tio.tio import AsyncTio
>>> import asyncio
>>>
>>> async def main():
... tio = AsyncTio()
... print((await tio.get_languages()).keys())
... print(await tio.run("python", "print(42)"))
>>>
>>> asyncio.run(main())
dict_keys(['05ab1e', '1l-a', '1l-aoi', '2dfuck', '2l', '2sable'...
42
Exit code: 0