SmartPython
一款Windows平台下精简的Python编译环境(IDE),可以将py脚本直接编译成exe,C++/Qt实现,某几款知名RPA编辑器也是基于此架构实现。
Install / Use
/learn @hcaihao/SmartPythonREADME
项目简介 Introduction
多年前做的小工具,放出来给有需要的人研究吧,可以作为目前很火的RPA编辑器的架构原型,技术交流6850825@qq.com。 This is a small tool I made years ago that is now being released for those who need it to study. It can serve as an architectural prototype for the currently popular RPA editor, and for technical exchanges, please contact 6850825@qq.com.
功能特性 Features
- 支持代码高亮显示 (Supports code highlighting.)
- 支持代码单步调试 (Supports single-step debugging.)
- 支持代码中断执行 (Supports interrupting code execution.)
- 支持导入第三方Py库 (Supports importing third-party Py libraries.)
- 支持导入自定义模块 (Supports importing custom modules.)
- 支持调用C扩展 (Supports calling C extensions.)
- 支持调用函数 (Supports calling functions.)
- 支持输入输出重定向 (Supports input and output redirection.)
- 支持直接编译生成Exe (Supports direct compilation to generate Exe files.)
测试脚本 Test
import json
import os
import requests
import sys
import utility
import chilkat
from time import sleep
sleep(1)
print("--Py模块测试--")
print(utility.get_uuid())
sleep(1)
print("--C扩展测试--")
import SmartPythonExt
print(SmartPythonExt.greet())
sleep(1)
print("--函数测试--")
def get_current_ip():
#ret = requests.get('http://ipinfo.io/json')
ret = requests.get('https://api.myip.com', timeout=30)
j_ret = json.loads(ret.text)
return j_ret["ip"]
print(get_current_ip())
sleep(1)
print("--IO测试--")
line = input("请输入:")
print(line)
功能演示 Demo

Related Skills
node-connect
348.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
108.9kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
348.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
348.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
