Changeset View
Changeset View
Standalone View
Standalone View
docs/persistent-identifiers.rst
Show First 20 Lines • Show All 293 Lines • ▼ Show 20 Lines | |||||||||
Computing | Computing | ||||||||
--------- | --------- | ||||||||
An important property of any SWHID is that its core identifier is *intrinsic*: | An important property of any SWHID is that its core identifier is *intrinsic*: | ||||||||
it can be *computed from the object itself*, without having to rely on any | it can be *computed from the object itself*, without having to rely on any | ||||||||
third party. An implementation of SWHID that allows to do so locally is the | third party. An implementation of SWHID that allows to do so locally is the | ||||||||
`swh identify <https://docs.softwareheritage.org/devel/swh-model/cli.html>`_ | `swh identify <https://docs.softwareheritage.org/devel/swh-model/cli.html>`_ | ||||||||
tool, available from the `swh.model <https://pypi.org/project/swh.model/>`_ | tool, available from the `swh.model <https://pypi.org/project/swh.model/>`_ | ||||||||
Python package under the GPL license. This package can be installed via the ``pip`` | Python package under the GPL license. This package can be installed via the ``pip`` | ||||||||
vlorentzUnsubmitted Done Inline Actions
vlorentz: | |||||||||
package manager with the one liner ``pip install swh.model`` on any machine with | package manager with the one liner ``pip3 install swh.model`` on any machine with | ||||||||
Done Inline Actionsmaybe "any machine with Python (>=3.7)" (or something like that) douardda: maybe "any machine with Python (>=3.7)" (or something like that) | |||||||||
Python and ``pip`` installed (on a Debian or Ubuntu system a simple ``apt install python3 python3-pip`` | Python (at least version 3.7) and ``pip`` installed (on a Debian or Ubuntu system a simple ``apt install python3 python3-pip`` | ||||||||
will suffice, see `the general instructions <https://packaging.python.org/tutorials/installing-packages/>`_ for other platforms). | will suffice, see `the general instructions <https://packaging.python.org/tutorials/installing-packages/>`_ for other platforms). | ||||||||
SWHIDs are also automatically computed by Software Heritage for all archived | SWHIDs are also automatically computed by Software Heritage for all archived | ||||||||
objects as part of its archival activity, and can be looked up via the project | objects as part of its archival activity, and can be looked up via the project | ||||||||
`Web interface <https://archive.softwareheritage.org>`_. | `Web interface <https://archive.softwareheritage.org>`_. | ||||||||
This has various practical implications: | This has various practical implications: | ||||||||
▲ Show 20 Lines • Show All 77 Lines • Show Last 20 Lines |