Dead simple Curseforge API wrapper
Project description
Cursed.py ⚒️
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..
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cursedpy-0.2.0.tar.gz.
File metadata
- Download URL: cursedpy-0.2.0.tar.gz
- Upload date:
- Size: 9.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.3 Linux/6.9.0-arch1-1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d2c407cc123de0bc6b505bf3f9dab90f40468dccdf7dd80bb83ceecb04e3db51
|
|
| MD5 |
01db4c5a5690de97e5642ad8133ef61d
|
|
| BLAKE2b-256 |
2227bb786436209b2811604c789290cafce6ee64625a09bfcf182f25dc5467cc
|
File details
Details for the file cursedpy-0.2.0-py3-none-any.whl.
File metadata
- Download URL: cursedpy-0.2.0-py3-none-any.whl
- Upload date:
- Size: 10.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.3 Linux/6.9.0-arch1-1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
99f7258dc06f4f4f6fb0bac9336f9f713266d5277c4e2489045751553593c710
|
|
| MD5 |
f9c3f724e2c73334f6ca32ba9a497dde
|
|
| BLAKE2b-256 |
cd22b7b9e850b50cdb84d7298e8d8b79dbb4467611f1ccc7d6dd6afd3e40ca0a
|