python-sdk
python-sdk copied to clipboard
LeanCloud Python SDK
我的用例需要在后端捕获LiveQuery流,我注意到了Java和Swift客户端使用了WebSocket来实现LiveQuery,但是Python SDK没有这方面的实现。未来有在Python SDK集成LiveQuery的计划吗?请问可以向外开放LiveQuery的rpc接口文档或者是proto文件吗?这将大大减少开发这项功能的时间并避免错误。如果可以公布RPC接口,我可能会提出LiveQuery的PR。 谢谢!
```js const d = await new AV.Query('TestObject').get('5f27bc73fbb489000824300d') console.log(d.get('testList')) listData = d.get('testList') listData.push('debug') await d.save() ``` 上面这段 JS 代码,最终云端的 `testList` 会包含 `debug` 这个值,但是等效的 Python 代码,`testList` 并不会包含 `debug` 这个值。 python SDK 的...
> Nose has been in maintenance mode for the past several years and will likely cease without a new person/team to take over maintainership. New projects should consider using Nose2,...
更详细的调试日志
现在调试日志用的是 requests (也就是 urllib3)的日志,只有 url 和 status code,没有 POST 请求的 body,也没有 http header。 顺便记录下 python 3 下如何开启完整日志: ```python import http.client http.client.HTTPConnection.debuglevel=5 import logging logging.basicConfig(level=logging.DEBUG) import leancloud # leancloud.init(...) ```
参考 leancloud/javascript-sdk#579 的做法(js 用的是 polly.js,python 对应的库是 vcrpy)