Skip to content

DrugsNotIncluded/modrinth.py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Modrinth.py 🧪

⚠️ WIP

icon

About:

Asynchonous Labrinth API (v2) wrapper: https://docs.modrinth.com/
Supports basic ratelimiting via https://github.com/mjpieters/aiolimiter
Has poor error handling (Better than nothing)

Usage examples:

Nothing here for now, only dev tests

Basic usage:

from modrinthpy import ModrinthClient

async def main():
    try:
        client = ModrinthClient()
        response = await client.Projects.get_multiple_projects(ids=['create','sodium'])
        print(response)
    finally:
        client.close()

Supported Labrinth API "parts":

TODO:

  • Rewrite abstract class for http client
  • Adjust rateliming
  • Add better Facet class

Similar projects:

About

(WIP) Modrinth Labrinth API v2 wrapper for Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages