Skip to main content

auto-mas-maafw-native

MaaFramework 原生库识别库,从 AUTO-MAS 宿主的 MFW 引擎原样搬出:只读项目目录里的 DLL、dist-info、requirements,识别项目自带的 MaaFramework 原生库版本和架构。运行时只依赖 packaging。不依赖 auto-mas-maafw-interface。

对外接口

按子模块导入,各子模块的 __all__ 与宿主原件相同,包根不导出东西。没有私有名改成公开名。

模块 提供
maafw_native.architecture host_architecture、supported_architecture_target、ArchitectureTarget 和架构错误类型
maafw_native.layout data/mfw、.payloads、.pycache 等目录布局常量
maafw_native.offline_dependencies 离线依赖文件识别
maafw_native.pe detect_pe_architecture、pe_imported_dlls
maafw_native.project_runtime 项目原生库路径、版本、架构、依赖与加载探测
maafw_native.requirement 项目 maafw requirement 解析
maafw_native.requirements_file requirements 文件解析
maafw_native.versions 版本规范化、requirement 解析、MaaFWBindingError

开发

在仓库根 D:\MAS\code\blocks 运行。uv 不在 PATH 时用 D:\MAS\code\main\environment\python\Scripts\uv.exe。

uv venv .venv-dev --python 3.12
uv pip install --python .venv-dev\Scripts\python.exe -e packages\auto-mas-maafw-native -e packages\auto-mas-maafw-interface pytest build ruff
.\.venv-dev\Scripts\python.exe -m pytest packages\auto-mas-maafw-native\tests -q -p no:cacheprovider --basetemp "$env:TEMP\blk-pytest"

只开发本包时 -e packages\auto-mas-maafw-interface 可以不装。测试里的 PE 架构用例取 D:\MAS\test\walkref 里真实项目的 MaaFramework.dll。等价对拍的环境怎么建见 packages\auto-mas-maafw-interface\README.md「等价对拍」。

打包

.\.venv-dev\Scripts\python.exe scripts\build_all.py

两个包的 wheel 和 sdist 写进 dist\。只装 wheel 的验收命令见 packages\auto-mas-maafw-interface\README.md「打包」。

Metadata

Release files for auto-mas-maafw-native 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 auto-mas-maafw-native 0.1.0
File Size Uploaded Provenance Actions
auto_mas_maafw_native-0.1.0.tar.gz 36.5 kB With provenance Details for auto_mas_maafw_native-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for auto-mas-maafw-native 0.1.0
File Interpreter ABI Platform Actions
auto_mas_maafw_native-0.1.0-py3-none-any.whl Python 3 none any Details for auto_mas_maafw_native-0.1.0-py3-none-any.whl

Total release size: 77.1 kB

Release files / auto_mas_maafw_native-0.1.0.tar.gz

Download URL auto_mas_maafw_native-0.1.0.tar.gz
Size 36.5 kB
Tags Source
SHA-256 checksum
How to use checksums
3b77ec81800ad75fd849fcf1a79684709dc6b9bdc1e9bc24290c396246357460
BLAKE2b-256 checksum
How to use checksums
326be4f95f7fef5acc6a986b3741839b356b5d2eda95b3344a81f5a1bd2d515f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

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

Download URL auto_mas_maafw_native-0.1.0-py3-none-any.whl
Size 40.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cf490e5b277b1c997e009510b420ae227afb5c0af73f43b4d8d4672eafbb93ea
BLAKE2b-256 checksum
How to use checksums
e83fadb3d41bd5d339eab8ca3e9fdf332a7d82734f04f0571f689b1c015dcf78
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Security for auto-mas-maafw-native 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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for auto_mas_maafw_native-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

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 Full 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