Skip to main content

MCArchive API for Python

简介

这是一个允许开发者与MCArchive API交互的Python库,使用httpx进行API交互,urllib库作为变量转URL参数。

安装

通过pip包管理器安装:

pip install mcarchive-api
poetry install mcarchive-api #或者使用Poetry
uv pip install mcarchive-api #或者使用uv

你也可以下载轮子并安装:

pip install ./mcarchive_api-x.x.x-py3-none-any.whl

或者克隆Git仓库并构建轮子:

git clone https://github.com/AngryMouse7891/mcarchive-api-python.git
cd mcarchive-api-python
uv build

使用方法

以下是该库所有模块的描述:

  • mcarchive_api.default:获取Minecraft游戏版本和作者

  • mcarchive_api.mods:获取所有模组以及通过特定slug获取

  • mcarchive_api.files:通过文件名/SHA256哈希值获取文件

比如获取所有Minecraft游戏版本:

from mcarchive_api.default import get_game_versions

print(f'Game Versions: {get_game_versions()}')

使用的依赖

包名 最新版本 描述
httpx latest HTTP客户端
urllib3 latest 带有线程安全连接池、文件上传等功能的 HTTP 库

开源许可

使用MIT许可证。

Metadata

Release files for mcarchive-api 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mcarchive-api 0.1.0
File Size Uploaded Provenance Actions
mcarchive_api-0.1.0.tar.gz 2.4 kB Without provenance Details for mcarchive_api-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mcarchive-api 0.1.0
File Interpreter ABI Platform Actions
mcarchive_api-0.1.0-py3-none-any.whl Python 3 none any Details for mcarchive_api-0.1.0-py3-none-any.whl

Total release size: 6.5 kB

Release files / mcarchive_api-0.1.0.tar.gz

Download URL mcarchive_api-0.1.0.tar.gz
Size 2.4 kB
Tags Source
SHA-256 checksum
How to use checksums
7afecbad7e393a0564039d5df01e283d463592e95ba7506d072a9f34b31a7146
BLAKE2b-256 checksum
How to use checksums
09379fde03804877dea41b76fd6dc42045a26a4efc24668a72ae2008883f591b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / mcarchive_api-0.1.0-py3-none-any.whl

Download URL mcarchive_api-0.1.0-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e94d7b24cd883e65083d51989384cabcb55044c94b3cf7d504d384f24796ef8c
BLAKE2b-256 checksum
How to use checksums
694510446989f35497df399d6e6fa2264854c891c988c6dfc25e9619393ffad3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Security for mcarchive-api 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page