Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/Xemay/aiomodrinth
- Owner: Xemay
- License: mit
- Created: 2022-03-29T16:31:36.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-05-10T18:46:06.000Z (over 2 years ago)
- Last Synced: 2024-08-02T11:16:34.438Z (3 months ago)
- Topics: aiohttp, async, asyncio, modrinth, python, python3
- Language: Python
- Homepage:
- Size: 24.4 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome - Xemay/aiomodrinth - Async Python API wrapper for Modrinth (Libraries)
README
## Aiomodrinth
Aiomodrinth is a package for asynchronous interaction with the Modrinth API
----
### Basic usage
```python
import asyncio
from aiomodrinth import ModRinthApiapi = 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"))
```