Metadata-Version: 2.4
Name: curseforge-api-wrapper
Version: 1.0.1
Summary: Python wrapper for Curseforge API with Pydantic Model
Project-URL: Homepage, https://github.com/mcmod-info-mirror/curseforge-api-wrapper
Project-URL: Documentation, https://github.com/mcmod-info-mirror/curseforge-api-wrapper
Project-URL: Repository, https://github.com/mcmod-info-mirror/curseforge-api-wrapper
Project-URL: Issues, https://github.com/mcmod-info-mirror/curseforge-api-wrapper/issues
Author-email: z0z0r4 <z0z0r4@outlook.com>
License: MIT
License-File: LICENSE
Keywords: api,curseforge,mcinecraft,python,wrapper
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Typing :: Typed
Requires-Python: >=3.8
Requires-Dist: httpx>=0.28.1
Requires-Dist: pydantic>=2.10.5
Description-Content-Type: text/markdown

# curseforge-api-wrapper

![curseforge-api-wrapper](https://socialify.git.ci/mcmod-info-mirror/curseforge-api-wrapper/image?description=1&font=Inter&forks=1&issues=1&language=1&name=1&owner=1&pattern=Overlapping+Hexagons&stargazers=1&theme=Dark)

`curseforge_api_wrapper` 是一个用于与 Curseforge API 交互的 Python 包。它提供了方便的客户端类和方法来访问 Curseforge 的各种 API 端点。

特别指出提供了所有返回值的 Pydantic 封装，便于调用。

## Installation

```bash
pip install curseforge-api-wrapper
```

## Usage

```python
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)
```
