Skip to content

一款Windows平台下精简的Python编译环境(IDE),可以将py脚本直接编译成exe,C++/Qt实现,某几款知名RPA编辑器也是基于此架构实现。

Notifications You must be signed in to change notification settings

hcaihao/SmartPython

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

项目简介 Introduction

多年前做的小工具,放出来给有需要的人研究吧,可以作为目前很火的RPA编辑器的架构原型,技术交流[email protected]。 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 [email protected].

功能特性 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

image

About

一款Windows平台下精简的Python编译环境(IDE),可以将py脚本直接编译成exe,C++/Qt实现,某几款知名RPA编辑器也是基于此架构实现。

Resources

Stars

Watchers

Forks

Packages

No packages published