Python wrapper for Curseforge API with Pydantic Model
Project description
curseforge-api-wrapper
curseforge_api_wrapper 是一个用于与 Curseforge API 交互的 Python 包。它提供了方便的客户端类和方法来访问 Curseforge 的各种 API 端点。
特别指出提供了所有返回值的 Pydantic 封装,便于调用。
Installation
pip install curseforge-api-wrapper
Usage
from curseforge_api_wrapper import Client
# Initialize client with your API key
client = Client(api_key="your-api-key")
# Search for mods
results = client.search_mods(gameId=432, pageSize=10, searchFilter="fabric-api")
# Get specific mod
mod = client.get_mod(306612)
# Get mod files
files = client.get_mod_files(306612)
# Get specific file
file = client.get_file(306612, 6113566)
# Get file download URL
url = client.get_file_download_url(306612, 6113566)
# Get fingerprints
fingerprints = client.get_fingerprint([3379185284, 2253581192])
# Get categories
categories = client.get_categories(gameId=432)
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 curseforge_api_wrapper-1.0.1.tar.gz.
File metadata
- Download URL: curseforge_api_wrapper-1.0.1.tar.gz
- Upload date:
- Size: 23.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.5.24
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cdb1953dc5514315a3fe030d650d8f7edb3cf2d23912a27736132476504c2b73
|
|
| MD5 |
f78df198cfd4768253ca0b70b698899e
|
|
| BLAKE2b-256 |
3c72a869d37a5534395c360c94bab981605ddee7329948c12ebcb8615ad3dcb0
|
File details
Details for the file curseforge_api_wrapper-1.0.1-py3-none-any.whl.
File metadata
- Download URL: curseforge_api_wrapper-1.0.1-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.5.24
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fdb044ea52a87b660da8e4430619a9b564313e902bcecbe3ceee4face59ef9cc
|
|
| MD5 |
9bae7713bc23b2c8c871c59f8c2d34de
|
|
| BLAKE2b-256 |
615c855bc1fe34260d8c6e2507bb9447abe40a7b169fe68b3b4f5ae1cdad5014
|