Skip to content

Dead simple intuitive CurseForge API wrapper for Python

Notifications You must be signed in to change notification settings

DrugsNotIncluded/cursed.py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cursed.py ⚒️

icon

PyPI version

About:

Full asynchronous Curseforge API wrapper
👉 https://docs.curseforge.com

All Json Schemas (Python Types) are exactly the same as in docs
Except missing "Return types" which are essentially just this:
 {"data": Any}
 {"data": Any, "pagination": Pagination}

Usage examples:

Basic usage:

# Get all available games for provided API key:
from cursedpy import CFClient
API_KEY = "API_KEY"

async def main():
    try:
        client = CFClient(API_KEY)
        games = await client.games()
        print(games)
    finally:
        client.close()

Implemented API:

  • Games
  • Categories
  • Mods
  • Files
  • Fingerprints
  • Minecraft

QOL:

  • Add helper methods to some types (Mod.get_download_link() , for example)
  • Add cache
  • Error handling
  • Document all types parameters
  • Make proper docs page???

Similar projects:

https://github.com/Advik-B/CurseForge-API - lacks search method support, example on the main page didn't work for me at all, Lol
https://github.com/Stinky-c/curse-api - cool wrapper, but pydantic is a little bit too much for my taste, thx for multiple http libraries support idea ❤️, although i don't think it will be useful at all for me, but this is a library after all..

About

Dead simple intuitive CurseForge API wrapper for Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages