Python UPnP/IGD Client Implementation?

▼魔方 西西 提交于 2019-12-03 11:04:45

MiniUPnP source code contains a Python sample code using the C library as an extension module (see testupnpigd.py), which I consider as a proper solution to my problem.

Rationale: this is not the pure Python solution I was looking for, but:

  • significant effort has already been invested in this library,
  • it is lightweight (it does not address Media Server issues),
  • IGD is typically only used at connection setup, so not integrating it tighter with the Python code does not seem like an issue,
  • as a bonus, it also provides a NAT-PNP implementation (the Apple concurrent of IGD, part of Bonjour).

I think you should really consider BRisa. It recently became a pure python UPnP Framework, not focused only on Media Server.

It provides lots of utilitary modules and functions for you to build and deploy your UPnP device.

The project also is lacking feedback :-). I suggest you to use the latest svn code, if you're willing to try BRisa.

You can also contact the developers on #brisa at irc.freenode.org, we're either online or idling.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!