Software Heritage Web client
Project description
.. _swh-web-client:
Software Heritage - Web client
Client for Software Heritage Web applications, via their APIs.
Sample usage
.. code-block:: python
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'))
API Reference
.. toctree:: :maxdepth: 2
/apidoc/swh.web.client
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
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.1.tar.gz.
File metadata
- Download URL: swh.web.client-0.1.1.tar.gz
- Upload date:
- Size: 59.3 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 |
8dade8ec88e8c6fe43543d19268566e7f3b8c9edcaf2702ab2d8c74c9297b25a
|
|
| MD5 |
e332038bad4380da15caee031edd2da1
|
|
| BLAKE2b-256 |
e8d2a2d5629d15302f482773f9024b89efa8a7ce81d8518daf6452b171506b21
|
File details
Details for the file swh.web.client-0.1.1-py3-none-any.whl.
File metadata
- Download URL: swh.web.client-0.1.1-py3-none-any.whl
- Upload date:
- Size: 72.0 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 |
eb8d2c972b5d379f16644fc782b05d7e5ddf791735498a437f759a7aca268725
|
|
| MD5 |
4c90e5e3d3912b8235e15126512b25af
|
|
| BLAKE2b-256 |
f8383f71ee4e4b239576556982d5cfd532dcfba43680ff9394dd3852f36c4127
|