Update: MicroPython使用AST构建下py文件抽象语法树以精确解析模块依赖

This commit is contained in:
王立帮
2024-12-03 10:44:30 +08:00
parent faa8430208
commit d97c70fb36
42 changed files with 2938 additions and 40 deletions

View File

@@ -0,0 +1,75 @@
{
"ble_central": {
"__require__": [
"time",
"gc",
"bluetooth",
"micropython",
"ubinascii",
"ble_advertising"
],
"__file__": true,
"__name__": "ble_central.py"
},
"mini_bot": {
"__require__": [
"time",
"math",
"esp",
"micropython",
"framebuf"
],
"__file__": true,
"__name__": "mini_bot.py"
},
"mini_g2": {
"__require__": [
"gc",
"machine",
"rc522"
],
"__file__": true,
"__name__": "mini_g2.py"
},
"mini_go": {
"__require__": [
"time",
"gc",
"math",
"tm1931",
"machine"
],
"__file__": true,
"__name__": "mini_go.py"
},
"mixgo_mini": {
"__require__": [
"time",
"gc",
"esp32",
"machine",
"ws2812x",
"musicx",
"sc7a20",
"ap3216c",
"mini_bot"
],
"__file__": true,
"__name__": "mixgo_mini.py"
},
"musicx": {
"__require__": [
"time"
],
"__file__": true,
"__name__": "musicx.py"
},
"ws2812x": {
"__require__": [
"time",
"machine"
],
"__file__": true,
"__name__": "ws2812x.py"
}
}