一组控制收银机的python绑定

python-cash-register的Python项目详细描述


https://badge.fury.io/py/python-cash-register.svghttps://travis-ci.org/palazzem/python-cash-register.svg?branch=masterhttps://codecov.io/gh/palazzem/python-cash-register/branch/master/graph/badge.svg

通用收银机的python绑定,使用XON/XOFF protocol进行串行通信。

支架

如果需要支持,请使用GitHub issue tracker

贡献

我们喜欢贡献,所以请随时修复错误,改进事情,提供文件。 只需遵循指导原则并提交一份PR即可。

要求

  • python 2.7、3.3、3.4和3.5

概述

很快就来。

开始

此示例可能已过时,在稳定版本之前不应使用它 图书馆的:

fromserialimportSerialfromcash_register.models.xditronimportSaremaX1# defines the serial communicationconn=Serial()conn.port='/dev/ttyUSB0'conn.baudrate=9600conn.xonxoff=Trueconn.timeout=1# create a cash register with a serial connection handlerregister=SaremaX1('Shop center',connection=conn)# write a list of productsproducts=[{'description':'Potatoes','price':'2.0','quantity':'3.0',},{'description':'Water','price':'0.50',},]# prepare and send cash register commandsregister.sell_products(products)register.send()

文档

很快就来。

许可证

python-cash-register根据bsd许可证的条款发布。LICENSE文件中的完整详细信息。

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java中布尔值的位模式(变量值)?   无法解决我的R.java文件中的安卓错误   java当post请求在postman中完成时,它会将所有值传递为NULL   java如何在我的扫描仪之前调用GUI代码?   java类名。变量使用Classname作为变量   使用弱引用侦听器的java   具有二维数组(Java)的服务器/客户端类   java如何过滤OSGi服务可见性?   java更改静态方法中静态字段的值   java操作。启动\u已完成,但不工作   java如何在javafx中嵌入PApplet?   java如何提取数据库的结构以使用JDBC将其复制到另一个数据库中?   安卓如何在java中将双精度值转换为n个位置(给出答案,而不是提问)   java是可以使用Gson的。fromJson()获取ArrayList<ArrayList<String>?   java创建类的独立对象