Software Heritage Web client
Project description
Client for Software Heritage Web applications, via their APIs.
Sample usage
from swh.web.client import WebAPIClient
cli = WebAPIClient()
# retrieve any archived object via its PID
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.1.2.tar.gz
(59.1 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.1.2.tar.gz.
File metadata
- Download URL: swh.web.client-0.1.2.tar.gz
- Upload date:
- Size: 59.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
99a55a00debefb19a0e1116b677e0915ca8577cdfe83b1ac02ec5dd66876ee31
|
|
| MD5 |
5182ff4490c3a6c201a892b5f06979f9
|
|
| BLAKE2b-256 |
57305e0e946e72d1e1f4db61be7cb2a78edbc87202b68c6c5666f872420e5691
|
File details
Details for the file swh.web.client-0.1.2-py3-none-any.whl.
File metadata
- Download URL: swh.web.client-0.1.2-py3-none-any.whl
- Upload date:
- Size: 71.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fe2028deaf101a5e91aefe133280815e1f5ea7d00bf648a37f823ae8be26a351
|
|
| MD5 |
d56293d4ee62392dde36c0be65693327
|
|
| BLAKE2b-256 |
268bc7c00cfb5805916eb81846fae88572c24ab4acb17fcc5f398e85efa47d30
|