Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/Xemay/aiomodrinth

Async API wrapper for modrinth.com
https://github.com/Xemay/aiomodrinth

aiohttp async asyncio modrinth python python3

Last synced: 6 days ago
JSON representation

Async API wrapper for modrinth.com

Awesome Lists containing this project

README

        

## Aiomodrinth

Aiomodrinth is a package for asynchronous interaction with the Modrinth API

----

### Basic usage

```python
import asyncio
from aiomodrinth import ModRinthApi

api = ModRinthApi("your_auth_token", "your_username/id")

async def get_project_description(project_id: str):
project = await api.get_project(project_id)
print(project.description)

asyncio.run(get_project_description("project_id"))
```