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.2.5.tar.gz
(83.4 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.2.5.tar.gz.
File metadata
- Download URL: swh.web.client-0.2.5.tar.gz
- Upload date:
- Size: 83.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b179f03d5e68098362d37816ea431e3501cc814c33b79f98cac9adf8f384fcce
|
|
| MD5 |
dd5127d9fc7a21fbb6d907705b098244
|
|
| BLAKE2b-256 |
f70ae79ba909959aefa5d95c79f3214d1b13cc3667443b5432db30dc3dd774fb
|
File details
Details for the file swh.web.client-0.2.5-py3-none-any.whl.
File metadata
- Download URL: swh.web.client-0.2.5-py3-none-any.whl
- Upload date:
- Size: 82.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a18d58f14d1b79fb01d6ef9702ce807b50bf65adda991b3f5926e492ce914146
|
|
| MD5 |
1f1b989e8a0080227a43d19b39248dd1
|
|
| BLAKE2b-256 |
722da50fb65871a8f009ed38f176a59704272d565c20f01c10fdc469b9173e1b
|