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.5.0.tar.gz
(84.5 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.5.0.tar.gz.
File metadata
- Download URL: swh.web.client-0.5.0.tar.gz
- Upload date:
- Size: 84.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c2dca30c7f6969640f43bb0562bb53ac6f4ede4f6e4af8bc92e3d8de3595700
|
|
| MD5 |
841b7c198c4438e1ce2dbea7924d3e44
|
|
| BLAKE2b-256 |
01e9d00a4d2c96484649814c0360875588c709ce317f7bff1cfe519ec2eeefdd
|
File details
Details for the file swh.web.client-0.5.0-py3-none-any.whl.
File metadata
- Download URL: swh.web.client-0.5.0-py3-none-any.whl
- Upload date:
- Size: 83.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5fdb1c17bd3ff03435c818437e625c2f6535dbbe092e56c184f58f4a76ca849c
|
|
| MD5 |
134a201b6f101116f2fa78931878cc5d
|
|
| BLAKE2b-256 |
b5f040f953e52b9e5ebae53c6b2c4df0fc6d00cf9aff39196709b8e48a5bf0b2
|