Metadata-Version: 2.1
Name: asyncosu
Version: 0.0.2
Summary: Async osu! Api Wrapper
Home-page: https://github.com/aticie/async_osu_api
Author: Efehan Atıcı
Author-email: efehanatici@gmail.com
License: UNKNOWN
Project-URL: Bug Tracker, https://github.com/aticie/async_osu_api/issues
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE

<div align="center">

# AsyncOsu

</div>

Asynchronous osu! api wrapper for python using aiohttp. 

## OsuApiV2
This package supports [osu api v2.](https://osu.ppy.sh/docs/index.html)

Basic usage with context manager:

```python
import asyncio
from asyncosu import OsuApiV2


async def main():
    async with OsuApiV2(client_id='client_id', client_secret='client_secret') as osu_api:
        return await osu_api.get_user_from_username(f'heyronii')


if __name__ == "__main__":
    print(asyncio.run(main()))
```

without context_manager:

```python
async def main():
    osu_api = OsuApiV2(client_id='client_id', client_secret='client_secret')
    user_info = await osu_api.get_user_from_username(f'heyronii')
    await osu_api.close()  # Close the connection before creating another instance
    return user_info
```


