Software Heritage Web client
Project description
Client for Software Heritage Web applications, via their APIs.
Sample usage
from swh.web.client.client import WebAPIClient
cli = WebAPIClient()
# retrieve any archived object via its SWHID
cli.get('swh:1:rev:aafb16d69fd30ff58afdd69036a26047f3aebdc6')
# same, but for specific object types
cli.revision('swh:1:rev:aafb16d69fd30ff58afdd69036a26047f3aebdc6')
# get() always retrieve entire objects, following pagination
# WARNING: this might *not* be what you want for large objects
cli.get('swh:1:snp:6a3a2cf0b2b90ce7ae1cf0a221ed68035b686f5a')
# type-specific methods support explicit iteration through pages
next(cli.snapshot('swh:1:snp:cabcc7d7bf639bbe1cc3b41989e1806618dd5764'))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
swh.web.client-0.6.0.tar.gz
(86.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file swh.web.client-0.6.0.tar.gz.
File metadata
- Download URL: swh.web.client-0.6.0.tar.gz
- Upload date:
- Size: 86.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a3515c261de79865d6640051410523dea8033da1d7c1f6b3681bfc7f72c43699
|
|
| MD5 |
1aaeaff12cd377c8e4caf1bfb59e9435
|
|
| BLAKE2b-256 |
4437b039e969bb985da0bb664be0d82aba94c25638688809e15594343472d281
|
File details
Details for the file swh.web.client-0.6.0-py3-none-any.whl.
File metadata
- Download URL: swh.web.client-0.6.0-py3-none-any.whl
- Upload date:
- Size: 83.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9b9980320f0de89ac381580f595677ecc83e1704ee2161fcb0189082a70049aa
|
|
| MD5 |
bd54ba25de2388578f87e4d925de0f2a
|
|
| BLAKE2b-256 |
cc389705a72588f61c0da8b25265341a0c1c8d4a21d7ff757f3978011be8149a
|