Skip to main content

magic-api-server

magic 项目基础包 - 提供统一的抽象基类和核心接口

PyPI version License: MIT Python 3.8+

项目定位

magic-api-server 是 magic-model 和 magic-detector 的共同基础库,提供:

  • 配置查询:根据检测的vendor_id,device_id,匹配准确的查询结果
  • 模型查询:根据应用类型提供可用的模型类型
  • 模型匹配:根据硬件与模型需求进行相应的匹配

具体业务功能请参考 magic-detector 或 magic-model。

核心模块(开发中)

安装

pip install magic-api-server

代码规范

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

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

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

针对 AI 辅助工具的提示

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

贡献指南

  1. Fork 本仓库
  2. 创建特性分支 (git checkout -b feature/amazing-feature)
  3. 提交更改 (git commit -m 'Add some amazing feature')
  4. 推送到分支 (git push origin feature/amazing-feature)
  5. 提交 Pull Request

请确保代码符合代码规范。

许可证

MIT License

作者

wxd123 - GitHub

Metadata

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

Built distribution (wheel)

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

Total release size: 135.3 kB

Release files / magic_api_server-0.1.0.tar.gz

Download URL magic_api_server-0.1.0.tar.gz
Size 61.5 kB
Tags Source
SHA-256 checksum
How to use checksums
67d2cf92bdf8fd4ac4855533833614062450e9d3dd0165c4f45714148a2701e1
BLAKE2b-256 checksum
How to use checksums
70d796e394e4121955312ea0b2980f374313ff20ff97e11d388c10df964b4229
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.12

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

Download URL magic_api_server-0.1.0-py3-none-any.whl
Size 73.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
29fb924f8e321d17824d920725c7a6e9100bf5e6e1a3cc7c28c6f1ac3459853c
BLAKE2b-256 checksum
How to use checksums
40a1c59909fcb4104613fa6054ffc1c02fd48f00144031a171b569dbe395bffb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.12

Security for magic-api-server 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