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.0.tar.gz
(80.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.2.0.tar.gz.
File metadata
- Download URL: swh.web.client-0.2.0.tar.gz
- Upload date:
- Size: 80.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a1f9c9c76b9a8e451613890ce5f9ce9e548da410e94a9d758dc3fa275b9a6e52
|
|
| MD5 |
4673cd87b814057b6e011e90fa130da5
|
|
| BLAKE2b-256 |
9468a36d57d79161b7a2e82c26c291220fdeeca295cdd37a5fdafa3ba8ece0c7
|
File details
Details for the file swh.web.client-0.2.0-py3-none-any.whl.
File metadata
- Download URL: swh.web.client-0.2.0-py3-none-any.whl
- Upload date:
- Size: 78.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ac569fcefdc192a9a8782a23e0bded269b6794ceab932bd7732b90e565c7c36f
|
|
| MD5 |
9f7c50a10ee36357e9117201d54c9406
|
|
| BLAKE2b-256 |
c2b1c971d600832d095e59384e3450b5079908b763a7291b95f6f8cbe9760d46
|