Skip to content

MCArchive API for Python star star GitHub Stars GitHub Forks latest

Warning

This library has no affication with MCArchive.

Introduction

This is a Python library that allows developers to interact with the MCArchive API, using httpx for API requests and urllib to convert variables into URL parameters.

Installation

Install via the pip package manager:

pip install mcarchive-api
poetry install mcarchive-api # or use Poetry
uv pip install mcarchive-api # or use uv

You can also download the wheel and install it:

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

Or clone the Git repository and build the wheel:

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

How to Use

Here are the descriptions of all the modules in this library:

  • mcarchive_api.default: Get Minecraft game versions and authors

  • mcarchive_api.mods: Get all mods or fetch them using a specific slug

  • mcarchive_api.files: Get files by filename/SHA256 hash

For example, to get all Minecraft game versions:

from mcarchive_api.default import get_game_versions

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

For more details, check out the MCArchive API official documentation.

Dependencies

Package Latest Version Description
httpx latest HTTP client
urllib3 latest HTTP library with thread-safe connection pooling, file uploads, and more
colorama latest Colored text output

Open Source License

Uses the MIT License.