用于调用 Spotify api 的 libspotify Python 包?
我正在构建一个应用程序,需要从 libspotify Spotify API 获取艺术品信息。
我正在 google appengine 上用 python 构建应用程序。有谁知道有一个包可以让我访问 libspotify API? 官方页面是 C,我在谷歌上搜索了一下,试图找到一个合适的包装器但似乎找不到。
谢谢 汤姆
I'm building an app that needs to get artwork information out of the libspotify Spotify API.
I'm building the app in python on google appengine. Does anyone know of a package that will enable me to access the libspotify API? The official page is C and I've googled around to try and find a suitable wrapper but can't seem to find one.
Thanks
Tom
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
还有 https://github.com/mopidy/pyspotify 在某些应用程序及更高版本中积极使用迄今为止。
There is also https://github.com/mopidy/pyspotify which is actively used in some applications and up to date.
我认为您根本无法调用 libspotify。来自文档:
“Python 解释器在安全的“沙箱”中运行解释器可以运行任何 Python 代码,包括应用程序中包含的 Python 模块,以及 Python 标准库。解释器无法加载带有 C 代码的 Python 模块; “Python环境。”
I don't think you will be able to call libspotify at all. From the docs:
"The Python interpreter runs in a secured "sandbox" environment to isolate your application for service and security. The interpreter can run any Python code, including Python modules you include with your application, as well as the Python standard library. The interpreter cannot load Python modules with C code; it is a "pure" Python environment."
检查 Spotimeta
http://pypi.python.org/pypi/spotimeta/
Check Spotimeta
http://pypi.python.org/pypi/spotimeta/