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

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.1.4.tar.gz (64.2 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.1.4-py3-none-any.whl (78.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: swh.web.client-0.1.4.tar.gz
  • Upload date:
  • Size: 64.2 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.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.3

File hashes

Hashes for swh.web.client-0.1.4.tar.gz
Algorithm Hash digest
SHA256 724f02040e8fed157221b6613ac5154bb36a7dd43d5a16c22237687e7f63d003
MD5 f08d60b1d8773de21fe643c45d47d87d
BLAKE2b-256 53aec284f8e9443aacf0f586ff96e85341c76ae189bdfe08b670e239a696cdbb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: swh.web.client-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 78.5 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.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.3

File hashes

Hashes for swh.web.client-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b973e83aa78a054d1b8cc4c1310537be5e7df4021dadee328a7e5940a02147a3
MD5 617e08cd3b607032057cbb725a00ce0e
BLAKE2b-256 59a4579fc32fee033d64cd5f5c986b2f853363a7d1a221fa8023728d58bef4ec

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