软件传统Web客户端
swh.web.client的Python项目详细描述
软件遗产Web应用程序的客户端,通过其API。在
示例用法
fromswh.web.client.clientimportWebAPIClientcli=WebAPIClient()# retrieve any archived object via its SWHIDcli.get('swh:1:rev:aafb16d69fd30ff58afdd69036a26047f3aebdc6')# same, but for specific object typescli.revision('swh:1:rev:aafb16d69fd30ff58afdd69036a26047f3aebdc6')# get() always retrieve entire objects, following pagination# WARNING: this might *not* be what you want for large objectscli.get('swh:1:snp:6a3a2cf0b2b90ce7ae1cf0a221ed68035b686f5a')# type-specific methods support explicit iteration through pagesnext(cli.snapshot('swh:1:snp:cabcc7d7bf639bbe1cc3b41989e1806618dd5764'))
- 项目
标签: