Skip to main content

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


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.8.0.tar.gz (90.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.8.0-py3-none-any.whl (87.5 kB view details)

Uploaded Python 3

File details

Details for the file swh.web.client-0.8.0.tar.gz.

File metadata

  • Download URL: swh.web.client-0.8.0.tar.gz
  • Upload date:
  • Size: 90.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for swh.web.client-0.8.0.tar.gz
Algorithm Hash digest
SHA256 dcfdd0678aaeb0e1e7c89691533b0418fb88607012102edd586209dd892ea017
MD5 6bc26fdfaaa53b0b22897392ddf555e4
BLAKE2b-256 31a7a3b6654ca26ccc6aba365c08faeb0b0ae189a0e19d09122827a92a9c0d3d

See more details on using hashes here.

File details

Details for the file swh.web.client-0.8.0-py3-none-any.whl.

File metadata

  • Download URL: swh.web.client-0.8.0-py3-none-any.whl
  • Upload date:
  • Size: 87.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for swh.web.client-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 db85f511c47269cbb4f16a8f34364908df1c92226ae1be7d22c2be226e16d3ef
MD5 4561403ab9478ed44203fbf8f76ec6e1
BLAKE2b-256 1a7b40b48b12881bc87c09cf8aec5d7177aeda2e5075022681f704c4fd0fa284

See more details on using hashes here.

Supported by

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