Skip to main content

MagicM

PyPI version License: MIT Python 3.8+

一键部署大模型的工具包 —— 支持 API 服务和 ComfyUI 节点两种部署方式

项目状态

开发中 - 首个正式版本将于 2026 年 5 月发布

功能规划

  • API 服务部署:一行命令将大模型封装为 REST API 服务
  • ComfyUI 集成:一键安装 ComfyUI 自定义节点,在 ComfyUI 中直接调用
  • 模型格式转换:支持 PyTorch、ONNX、TensorRT 等多种格式
  • 多平台发布:支持发布到 Hugging Face、ModelScope 等平台

安装

pip install magicm

快速开始(待正式版本发布后补充)

from magicm import deploy

一键部署

deploy("your-model-path")

代码规范

本项目遵循以下基本原则:

  1. 单文件不超过 200 行:超过时请拆分为多个模块
  2. 单函数不超过 200 行:超过时请拆分为多个小函数
  3. 注释尽量完整:关键逻辑、复杂算法、非显而易见的代码必须有注释说明
  4. 如有特殊场景确实需要突破(如纯数据定义文件),可在 PR 中说明。

这些规则旨在保证代码的可读性和可维护性,便于合作,请尽量遵守。

针对 AI 辅助工具的提示

本项目使用 AI 辅助开发,请在生成代码时尽量遵守上述代码规范。

许可证

MIT License

作者

wxd123 - GitHub

Metadata

Release files for magicm 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 magicm 0.1.0
File Size Uploaded Provenance Actions
magicm-0.1.0.tar.gz 3.0 kB Without provenance Details for magicm-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for magicm 0.1.0
File Interpreter ABI Platform Actions
magicm-0.1.0-py3-none-any.whl Python 3 none any Details for magicm-0.1.0-py3-none-any.whl

Total release size: 5.6 kB

Release files / magicm-0.1.0.tar.gz

Download URL magicm-0.1.0.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
73a7e7e5814809865abb01e2b0f1a84c90e821f9337e7e5da1bdfe135343c78e
BLAKE2b-256 checksum
How to use checksums
0c976296a6b0158d40db9805789d8191d4f6b613b0f1e6cae04cec3e9a5f050c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

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

Download URL magicm-0.1.0-py3-none-any.whl
Size 2.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
342a1831da307f7b1788e0ea9407b0e098a4df5294291137b8d62e147a996e08
BLAKE2b-256 checksum
How to use checksums
8322991baa3cbe0abd431f813f2ee60d200b8e2d3e696d7f85fc11260efdc077
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Security for magicm 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.

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