Skip to main content

Software Heritage provenance

Project description

Software Heritage - Provenance

This service provide a provenance query service for the Software Heritage Archive. Provenance is the ability to ask for a given object stored in the Archive: “where does it come from?”

This question generally does not have a simple and unambiguous answer. It can be, among other:

  • what it the oldest revision in which this object has been found?

  • what is the “better” origin in which this object can be found?

Answering this kind of question requires querying the Merkle DAG on which the Software Heritage Archive is built with complex queries, mostly from the bottom to the top (aka from Content to Origin objects).

The idea is to use both the compressed graph representation of the Archive (swh-graph) and a preprocessed provenance index to speed up some of the provenance queries.

API Description

For a single object:

Input: SWHID (core SWHID of an artifact found in the use code base)

Output: SWHID or origin URI where input SWHID was found + context information
    Context information, a subset of:
        snapshot (snp SWHID)
        release (rel)
        revision (rev)
        path (filesystem-style path)

Non-functional requirements: TODO something about the fact that both the
answer and the context information should be "as high as possible" in the
graph

Public API

GET /whereis/:swhid

GET /whereis_all/

POST /whereare/TODO
  :swhids

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_provenance-0.1.1.tar.gz (29.0 kB view details)

Uploaded Source

Built Distribution

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

swh.provenance-0.1.1-py3-none-any.whl (29.7 kB view details)

Uploaded Python 3

File details

Details for the file swh_provenance-0.1.1.tar.gz.

File metadata

  • Download URL: swh_provenance-0.1.1.tar.gz
  • Upload date:
  • Size: 29.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.7

File hashes

Hashes for swh_provenance-0.1.1.tar.gz
Algorithm Hash digest
SHA256 8fcf8ed11ce30ac54d2774388bb7ebc2be509f172ea2b8c16048f4e9cf49c339
MD5 b5f6cb34346caa5f880b1fe7b87e6d01
BLAKE2b-256 79a9f239892a72c44ad52f455caeb505ba74b965b05e99a2cd1243a2387278ab

See more details on using hashes here.

File details

Details for the file swh.provenance-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: swh.provenance-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 29.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.7

File hashes

Hashes for swh.provenance-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a38ef72be78d3381b5cb834913c235133608a7673d13462f9081c19a767c440f
MD5 075c1c00e438b610a8387c1770cf9008
BLAKE2b-256 87111e35d0d40eb58a9c3fca6052d36d7842bceda055a0779c1094daf60265d4

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