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

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.9.2.tar.gz (98.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

swh_web_client-0.9.2-py3-none-any.whl (95.2 kB view details)

Uploaded Python 3

File details

Details for the file swh_web_client-0.9.2.tar.gz.

File metadata

  • Download URL: swh_web_client-0.9.2.tar.gz
  • Upload date:
  • Size: 98.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.12

File hashes

Hashes for swh_web_client-0.9.2.tar.gz
Algorithm Hash digest
SHA256 926f50a323adce4058a7caca1c275575516ab68b3fd7618e80b053359532442e
MD5 77dcbbccf155905b4783f0ca7e8ae899
BLAKE2b-256 5910cd395e8373b6b39d50df434cd25090c170ac951c4d1f84e4c49bfa526168

See more details on using hashes here.

File details

Details for the file swh_web_client-0.9.2-py3-none-any.whl.

File metadata

  • Download URL: swh_web_client-0.9.2-py3-none-any.whl
  • Upload date:
  • Size: 95.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.12

File hashes

Hashes for swh_web_client-0.9.2-py3-none-any.whl
Algorithm Hash digest
SHA256 769cfedcff58e37fa8aac19a33136c8bdedf96cc7b8996972297c7b94080fb7c
MD5 c98020ce840d59366e5a6a09e1e0cf2b
BLAKE2b-256 4cf80397a73a5d0603680d6cbb1e8a41d9aee5ca0029d6c083dd3f75fc794b77

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.9.2 This release

2 files

0.9.1

2 files

0.9.0

2 files

0.8.0

2 files

0.6.0

2 files

0.5.0

2 files

0.4.0

2 files

0.3.0

2 files

0.2.5

2 files

0.2.4

2 files

0.2.3

2 files

0.2.2

2 files

0.2.1

2 files

0.2.0

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page