Skip to main content

Python wrapper for Curseforge API with Pydantic Model

Project description

curseforge-api-wrapper

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

curseforge_api_wrapper-1.0.0.tar.gz (23.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

curseforge_api_wrapper-1.0.0-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file curseforge_api_wrapper-1.0.0.tar.gz.

File metadata

File hashes

Hashes for curseforge_api_wrapper-1.0.0.tar.gz
Algorithm Hash digest
SHA256 5ac76570323c186448fe2e54c73b82e42a19d2f073956e1b0b4e7ef7f6d49026
MD5 c5b9768cd2dd327ecc01c19cd4e244c0
BLAKE2b-256 9d81c403e7c66d195f345c396f03205598dfe6b42f498d1ce88c71b291819cc1

See more details on using hashes here.

File details

Details for the file curseforge_api_wrapper-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for curseforge_api_wrapper-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 da9d283cd5e8485517c35508c71754267a1be54be35c373f30344081cd90c13a
MD5 302025657c908f446c2e2f66f16ac554
BLAKE2b-256 d0db9b49ff0ea9a8722015aa8346e11c00a088438771687c987fab140e87653c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page