Skip to main content

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'))

Release files for swh.web.client 0.9.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for swh.web.client 0.9.2
File Size Uploaded
swh_web_client-0.9.2.tar.gz 98.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for swh.web.client 0.9.2
File Interpreter ABI Platform
swh_web_client-0.9.2-py3-none-any.whl Python 3 none any Details

Total release size: 193.7 kB

Release files / swh_web_client-0.9.2.tar.gz

Download URL swh_web_client-0.9.2.tar.gz
Size 98.6 kB
Tags Source
SHA-256 checksum
How to use checksums
926f50a323adce4058a7caca1c275575516ab68b3fd7618e80b053359532442e
BLAKE2b-256 checksum
How to use checksums
5910cd395e8373b6b39d50df434cd25090c170ac951c4d1f84e4c49bfa526168
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.12

Release files / swh_web_client-0.9.2-py3-none-any.whl

Download URL swh_web_client-0.9.2-py3-none-any.whl
Size 95.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
769cfedcff58e37fa8aac19a33136c8bdedf96cc7b8996972297c7b94080fb7c
BLAKE2b-256 checksum
How to use checksums
4cf80397a73a5d0603680d6cbb1e8a41d9aee5ca0029d6c083dd3f75fc794b77
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.12

Release history Release notifications | RSS feed

This release

0.9.2 This release

2 release files

0.9.1

2 release files

0.9.0

2 release files

0.8.0

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page