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.9.0.tar.gz
(98.5 kB
view details)
Built Distribution
File details
Details for the file swh_web_client-0.9.0.tar.gz
.
File metadata
- Download URL: swh_web_client-0.9.0.tar.gz
- Upload date:
- Size: 98.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c115b589eea2c6b67c72da2af259fb22e27e17bb155d76a05db733c5b54439c |
|
MD5 | 3b0a9eadd7c315a41134fc15cf369b6a |
|
BLAKE2b-256 | 54ae83091ad8c9148e07f01318a9a966e71132b73d84b8e1fc60b996d899ccaa |
File details
Details for the file swh.web.client-0.9.0-py3-none-any.whl
.
File metadata
- Download URL: swh.web.client-0.9.0-py3-none-any.whl
- Upload date:
- Size: 94.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c2706fb5416d468f44565d7c41b7d078554b2db0f2e57f2f03367bbc988dbc8 |
|
MD5 | 66f1e8cbc45d23f8e21e2287967c49fd |
|
BLAKE2b-256 | 9394d0e1d121b1f30fd039a815bf4ad119f813bd5fc07c94f2d2f8dd32afb2ba |