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.9.1.tar.gz (98.4 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.1-py3-none-any.whl (95.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for swh_web_client-0.9.1.tar.gz
Algorithm Hash digest
SHA256 056a77bda7bf4f715d30799731e0ee8fc1ee36c1ad11b6513f3436f33bc78c9b
MD5 6059f8a327105ace7dcb091d272d448d
BLAKE2b-256 2e9a28c2f8dd3b35532049a0b8e17ab476362b0350d3b7a51810fc931651c253

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for swh_web_client-0.9.1-py3-none-any.whl
Algorithm Hash digest
SHA256 70c5084a8c7b5bbdf45383c9bfa7569bd574085370ce3fdf56fe8505d2d393b6
MD5 b758e18b48fcad769e85c7f326961fef
BLAKE2b-256 b691bde1a2f63d86312698679ed8ab4214fb405feaf95f765bb71bd80d2f62f2

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