Metadata-Version: 2.1
Name: mmc-export
Version: 2.1.7
Summary: Export MMC modpack to other modpack formats
Home-page: https://github.com/RozeFound/mmc-export
License: MIT
Keywords: minecraft,mods,modpack,converter,MultiMC
Author: RozeFound
Requires-Python: >=3.10,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Requires-Dist: Werkzeug (>=2.1.2,<3.0.0)
Requires-Dist: aiohttp (>=3.8.1,<4.0.0)
Requires-Dist: aiohttp-client-cache[filesystem,sqlite] (>=0.6.1,<0.7.0)
Requires-Dist: cryptography (>=37.0.2,<38.0.0)
Requires-Dist: jsonpickle (>=2.1.0,<3.0.0)
Requires-Dist: murmurhash2 (>=0.2.10,<0.3.0)
Requires-Dist: pytoml (>=0.1.21,<0.2.0)
Requires-Dist: tenacity (>=8.0.1,<9.0.0)
Requires-Dist: tomli (>=2.0.1,<3.0.0)
Requires-Dist: xxhash (>=3.0.0,<4.0.0)
Project-URL: Repository, https://github.com/RozeFound/mmc-export
Description-Content-Type: text/markdown

# MultiMC advanced exporter
![PyPI pyversions](https://img.shields.io/pypi/pyversions/mmc-export)
[![PyPI version](https://img.shields.io/pypi/v/mmc-export?label=mmc-export&color=%2347a637)](https://pypi.org/project/mmc-export)
![PyPI downloads](https://img.shields.io/pypi/dm/mmc-export?color=%23894bbf)
[![GitHub license](https://img.shields.io/github/license/RozeFound/mmc-export)](/LICENSE)

Since MultiMC export features are very limited, I created a script that solves this problem, with this script you can export MultiMC pack to any popular format (e.g. curseforge, modrinth, packwiz). MultiMC forks which didn't changed export format much also supported, PolyMC support approved.

# Features

- Support conversion to:
    - CurseForge
    - Modrinth
    - packwiz
- Detects downloadable resourcepacks and shaders
- Supports github parsing[¹](#github-rate-limits)
- Loose modrinth search
- User friendly toml config
- Multiple output formats at once

---
### Github rate limits

Github has limited requests per hour (up to 60), this means that if you have more than 60 mods, the rest will be excluded from github search.

To solve this, you can authorize in application. \
You need to create personal key [here](https://github.com/settings/tokens) (with no permissions), and pass it as argument to script along with your username, like:
```
mmc-export -i modpack -f format --github-auth username:token
```
I recommend you to store tokens in enviroment variables for security reasons.

# How to Use
```
mmc-export -i modpack.zip -c config.toml -f Modrinth packwiz -o converted_modpacks
```
It's recommended to fill config at least with basic info like name and version, some launchers can fail import if these values are empty.
## Syntax:
```
mmc-export [-h] [-c CONFIG] -i INPUT -f FORMAT [-o OUTPUT] [--github-auth GITHUB_AUTH] [--modrinth-search SEARCH_TYPE] [--exclude-providers PROVIDERS] [--exclude-forbidden]
```

### Explanation:

```
-h --help: prints help
-i --input: path to modpack, must be zip file exported from MultiMC.
-c --config: path to config, used to fill the gaps like description or losted mods.
-f --format: output formats, must be separated by spaces.
-o --output: directory where converted zip files will be stored.
--github-auth: Github Auth in format username:token
--modrinth-search: modrinth search accuracy (exact (default), accurate, loose)
--exclude-providers: providers you wish to exclude from search (cf, mr, gh)
--exclude-forbidden: set to not ignore CF distribution flag. Must be enabled for public modpacks.
```

Avaliable formats:     - `CurseForge, Modrinth, packwiz, Intermediate` (case-sensitive)

`Intermediate` must be used for debugging only, as it may contain sensitive information like username.

# How to Install / Update
```
pip install -U mmc-export
```

