mips
本项目package.json采用绝对地址,低版本mip可以直接下载,以此解决低版本mip不支持相对目录的问题
This project's package.json uses absolute addresses, allowing lower versions of mip to download it directly, thereby solving the issue that older versions of mip do not support relative directories.
为mip添加了upypi:等多种简写,解决低版本mip不支持相对目录的问题-Added abbreviations such as upypi: to mip, solving the issue that older versions of mip do not support relative directories.
修改自MicroPython的mip源码,在此做出了以下修改:
添加了upypi:,gitee:,gitcode:三种简写
针对gitcode添加了sleep(2)的反爬机制
修改了Copying输出,添加了url
并修改出了在标准python中运行的mips_cpy.py
Modified from the MicroPython mip source code, the following changes have been made:
Added three abbreviations: upypi:, gitee:, gitcode:
Added a sleep(2) anti-crawling mechanism for gitcode
Modified the Copying output, added the URL
And modified to create mips_cpy.py that runs in standard Python
本项目基于新版本mip源码,有效解决了低版本mip不支持相对目录的问题-This project is based on the new version of mip source code, effectively solving the issue that older versions of mip do not support relative directories.
Files
- mips.py
- mips_cpy.py
mips_cpy
本文件有以下机制:
下载时,将会在当前目录查询lib或者Lib文件夹(lib优先级高于Lib)
当没有找到lib或者Lib文件夹时,将会保存到当前目录
This file has the following mechanisms:
When downloading, it will search for the lib or Lib folder in the current directory (lib has higher priority than Lib).
When no lib or Lib folder is found, it will be saved to the current directory.
demo
import mips
mips.install("gitcode:wth_iw0/microdns",mpy=False,version="master")
mips.install("gitee:wth_iw0/microdns",mpy=False,version="master")
mips.install("upypi:utemplate/1.4.1")
mips.install("http://upypi.net/pkgs/microflask_async/0.0.20260321/package.json")
许可证
MIT License
支持
如有问题请提交 Issue 或联系开发团队。
联系
EMAIL:tianqi2021_001@163.com