Make every python function async/await
Project description
aioify
======
Make every function async and await-able.
Usage
------
```
pip install aioify
```
For example, make `os.path.exists` await-able.
```Python
import os
from aioify import aioify
aios = aioify(os)
async def main():
print(await aios.path.exists('/'))
if __name__ == '__main__':
import asyncio as aio
loop = aio.get_event_loop()
loop.run_until_complete(main())
```
======
Make every function async and await-able.
Usage
------
```
pip install aioify
```
For example, make `os.path.exists` await-able.
```Python
import os
from aioify import aioify
aios = aioify(os)
async def main():
print(await aios.path.exists('/'))
if __name__ == '__main__':
import asyncio as aio
loop = aio.get_event_loop()
loop.run_until_complete(main())
```
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
aioify-0.2.0.tar.gz
(2.2 kB
view hashes)