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.1

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.1
File Size Uploaded Provenance Actions
mcarchive_api-0.1.1.tar.gz 3.0 kB Without provenance Details for mcarchive_api-0.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 7.9 kB

Release files / mcarchive_api-0.1.1.tar.gz

Download URL mcarchive_api-0.1.1.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
789ac698ece98218851dd50426094d654bb68919cd4020d692c9a43032a58928
BLAKE2b-256 checksum
How to use checksums
96f166c3b888f9ba5abff89d7bae0598d13c2eda59df9f48a45762ea7d4f894e
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.1-py3-none-any.whl

Download URL mcarchive_api-0.1.1-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
779102aae09a417c2b32ba8c7a04b3b4f3fb7c70157332d5cdaa2e1dc0cdfb4d
BLAKE2b-256 checksum
How to use checksums
2fd85a44783748d41b8f96434ea426738129b2f62b80d455e4f773adf322c759
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.1

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.1 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