如何使用 python 通过 Google 应用程序引擎将条形码渲染为图像?
经过一天的阅读,我并没有找到一种在 Python 上通过 Google 应用引擎呈现条形码的好方法。我发现的最接近的是 PyPNG 作为纯 python 图像库,但看起来似乎需要相当多的工作才能使其可用。在我走上自己的喧嚣之路之前,有没有人对如何做到这一点有任何好的建议?
谢谢, 理查德
After a day's reading, I'm no closer to finding a good way to render a bar code through Google app engine on python. The closest I've found is PyPNG as a pure python image library but it looks as though that would require quite a bit of work to make it usable. Does anyone have any good suggestions on how to do it before i walk down the tumultuous path of rolling my own?
Thanks,
Richard
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可能需要查看网络服务来生成条形码。我在谷歌上找到了下面的网站,但如果你搜索:barcode webservice,会有很多结果。其中许多是供您下载和使用的代码,但有些似乎是实时网络服务。
http://www.barcodesoft.com/barcode-generator-webservice.aspx
编辑:现在我想到另一个选择可能是根据您的需要在 js/html 中生成条形码。这个问题/答案可能会有所帮助:
https://stackoverflow.com/questions /835082/what-is-the-best-javascript-barcode-generator
You might want to look at a webservice to generate the barcode. I found the site below on google but there are many results if you search for: barcode webservice. Many of them are code for you to download and use but some appear to be live webservices.
http://www.barcodesoft.com/barcode-generator-webservice.aspx
Edit: Now that I think about it another option may be to generate the barcode in js/html depending on your need. This SO question/answers might be helpful:
https://stackoverflow.com/questions/835082/what-is-the-best-javascript-barcode-generator