Python 3.x 有哪些 SOAP 库?
我在网上搜索了 Python 3 的现有且支持 SOAP 库。 (客户端和服务器)
这里是我找到的库列表:
Python 2:
- Zeep:Python 2.7/3 中活跃且有据可查
- SOAPy:已停止使用 Python 2项目
- ZSI:已停止的 Python 2 项目
- soaplib:已停止的 Python 2 项目
- SUDS:已停止的 Python 2 项目(无活动)自 02/2012 起)
- rpclib:已停止的 Python 2 项目(自 08/2012 起没有任何活动)
Python 3:
- < a href="http://docs.python-zeep.org/en/master/" rel="noreferrer">Zeep:活跃且文档齐全 Python 2/3 项目
- SOAPy:已停止的 Python 2 项目
- pysimplesoap:活跃 Python 2/3 项目
- SUDS-jurko:非常不活跃。 Python 2/3 项目
- ladon:低活跃度。但仅限网络服务
您觉得这个列表完整吗? (仅供参考,我使用了这个 post 作为起点(该帖子的目的是相同的,但针对 Python 2))
ladon 在我看来,Python 3 唯一现有的框架但据我所知可以仅用于实现服务器端。
否:我不想自己迁移已停止的 Python 2 项目之一。我正在寻找一个受支持的项目,该项目有一个积极的团队在需要时提供帮助。
更新于 2013 年 9 月 28 日
I searched the web for an existing and supported SOAP library for Python 3. (both client and server)
Here the list of libraries I've found:
Python 2:
- Zeep: active and well documented in Python 2.7/3
- SOAPy: discontinued Python 2 project
- ZSI: discontinued Python 2 project
- soaplib: discontinued Python 2 project
- SUDS: discontinued Python 2 project (no activity since 02/2012)
- rpclib: discontinued Python 2 project (no activity since 08/2012)
Python 3:
- Zeep: active and well documented Python 2/3 project
- SOAPy: discontinued Python 2 project
- pysimplesoap: active Python 2/3 project
- SUDS-jurko: quite inactive. Python 2/3 project
- ladon: low activivty. but web services only
Does this list seems complete to you? (FYI, I used this post as starting point (The purpose of that post was the same but for Python 2))
ladon seems to me the only existing framework for Python 3 but can AFAIK only be used for implementing the server side.
NO: I don't want to migrate one of the discontinued Python 2 projects myself. I am looking for a supported project with an active team providing help if needed.
Updated on 28/09/2013
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
根据服务的复杂性,您可以在服务器端使用 ladon,并手动模拟客户端,直到有更好的解决方案可用。
只需在打开日志记录的情况下使用 suds(或类似的)调用服务,并记下请求上的 SOAP 包装即可。使用它来包装您的请求并使用纯 http 调用服务。
这不是一个理想的解决方案,但它可以帮助您渡过难关,直到您有一个软件包可以替代它。
Depending on the complexity of the service, you could use ladon for the server side and mock up the client by hand until there's a better solution available.
Just call the service with suds (or similar) with logging turned on and note the SOAP wrapping on the request. Use that to wrap your request and call the service with plain http.
It's not an ideal solution, but it can get you by until you have a package to replace it.
几个月前我做了同样的搜索并得出了相同的结论。这个空间确实没有太多可供选择的地方。我最终坚持使用 Python 2.7 并在我的项目中使用 SOAPy,因为它非常易于使用。它可能已停止,但仍然有效。我认为有时候你只需要亲自动手并养活自己,这就是我们被称为程序员的原因。
I did this same search several months ago and came to the same conclusions. There really isn't much to choose from in this space. I ended up sticking with Python 2.7 and using SOAPy for my project because it was so easy to use. It may be discontinued but it still works. I figure that sometimes you just have to get your hands a little dirty and support yourself, that is why we are called programmers.
rpclib:似乎是唯一活跃的项目。在他们的描述中,他们说他们正在寻找志愿者来测试 Python 3。所以也许你应该自己做志愿者!
rpclib: seems the only active project. In their description, they say they are looking for volunteers to test it for Python 3. So maybe you should volunteer yourself!