Skip to content

armcnc/python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🛠️ Python Framework SDK

⚡ Python development framework for armcnc. ⚡

License: MIT

已经内置在armcnc中,无需单独、重复安装,该仓库仅供学习参考。

📖 Initialization

安装相关依赖

pip3 install armcnc websocket-client==0.48.0 requests pyserial colorlog

📖 Using templates

#!/usr/bin/env python
# -*- coding: utf-8 -*-

import armcnc as framework

def armcnc_start(cnc):
    while True:
        pass

def armcnc_message(cnc, message):
    pass
    
def armcnc_exit(cnc):
        pass
    
if __name__ == '__main__':
    framework_sdk = framework.Init()

📖 Development

安装相关依赖

pip3 install twine setuptools wheel

构建软件包

python3 setup.py sdist bdist_wheel

上传软件包到PyPI

twine upload dist/*

🌞 Development Team

https://www.armcnc.net