在bash中,我可以轻松检索CouchDB复制状态文档的json blob:
curl -X GET -u admin:password localhost:5984/_scheduler/docs/_replicator
在Python中使用couchdb
库是否可以检索相同的信息?我已经尝试过了:
couch_db.view("_scheduler/docs/_replicator", include_docs=True)
..但这会传回('not_found', 'missing')
错误。
1条答案
按热度按时间qnyhuwrf1#
事实证明,我把它做得比实际需要的还要复杂,使用Python requests库可以使这个任务变得简单: