mii-lib
https://jackharrhy.github.io/mii-lib/
https://pypi.org/project/mii-lib/
Library and CLI for extracting .mii files from misc. Wii/Dolphin data dumps, and extracting information from them (name, fav. color, gender, etc.)
Installation
- Library only:
pip install mii-lib - With CLI:
pip install mii-lib[cli]/uvx mii-cli --help/ etc.
Usage
from pathlib import Path
from mii import MiiDatabase, MiiParser, MiiType
database = MiiDatabase(Path("RFL_DB.dat"), MiiType.WII_PLAZA)
mii = database[0]
print(mii.name)
print(mii.favorite_color)
for mii in database:
print(f"{mii.name} by {mii.creator_name}")
with open("WII_PL00000.mii", "rb") as f:
mii_data = f.read()
mii = MiiParser.parse(mii_data)
print(mii.get_birthday_string())
More complete examples can be found in examples/library_usage.py
RFL_DB.dat
This is all based around reading from a RFL_DB.dat file.
The library automatically checks for database files in known Dolphin Emulator locations:
C:\Users\<Your Username>\Documents\Dolphin Emulator\Wii\shared2\menu\FaceLib\C:\Users\<Your Username>\AppData\Roaming\Dolphin Emulator\Wii\shared2\menu\FaceLib\~/.dolphin-emu/Wii/shared2/menu/FaceLib/
If the database file is not in your current directory, the library will automatically search these locations. If none of these exist, check where Dolphin is saving its data to in its settings, and provide the full path when creating a MiiDatabase.
Originally based on https://github.com/PuccamiteTech/PyMii/
Metadata
Release files for mii-lib 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mii_lib-0.2.0.tar.gz | 8.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mii_lib-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.6 kB
Release files / mii_lib-0.2.0.tar.gz
| Download URL | mii_lib-0.2.0.tar.gz |
|---|---|
| Size | 8.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9f80f0d38a1246cbd4918377e7f5783a4b79b37ae9c58798b208124c638ae3b8
|
|
BLAKE2b-256 checksum How to use checksums |
8a1c2c76b68b9594032c46cbe103cc8fd589c92a6be6171b668c22497d748599
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.15
|
Release files / mii_lib-0.2.0-py3-none-any.whl
| Download URL | mii_lib-0.2.0-py3-none-any.whl |
|---|---|
| Size | 11.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
310bbd75e27d1d982f4dbc3456d2c62faf3445f78bee028c107606b9d2e3be3d
|
|
BLAKE2b-256 checksum How to use checksums |
a86879bfef73b0baf07c4a2aa9f9da10f9664f53fe85b6b8be409c728471373f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.15
|