Metadata-Version: 2.4
Name: swh.model
Version: 8.4.1
Summary: Software Heritage data model
Author-email: Software Heritage developers <swh-devel@inria.fr>
License-Expression: GPL-3.0
Project-URL: Homepage, https://gitlab.softwareheritage.org/swh/devel/swh-model
Project-URL: Bug Reports, https://gitlab.softwareheritage.org/swh/devel/swh-model/-/issues
Project-URL: Funding, https://www.softwareheritage.org/donate
Project-URL: Documentation, https://docs.softwareheritage.org/devel/swh-model/
Project-URL: Source, https://gitlab.softwareheritage.org/swh/devel/swh-model.git
Classifier: Programming Language :: Python :: 3
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Development Status :: 5 - Production/Stable
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Requires-Python: >=3.10
Description-Content-Type: text/x-rst
License-File: LICENSE
License-File: AUTHORS
Requires-Dist: attrs>=21.3.0
Requires-Dist: attrs_strict>=0.0.7
Requires-Dist: deprecated
Requires-Dist: hypothesis
Requires-Dist: iso8601
Requires-Dist: python-dateutil
Requires-Dist: typing_extensions
Provides-Extra: cli
Requires-Dist: swh.core>=0.3; extra == "cli"
Requires-Dist: Click; extra == "cli"
Requires-Dist: dulwich; extra == "cli"
Provides-Extra: testing
Requires-Dist: swh.core>=0.3; extra == "testing"
Requires-Dist: Click; extra == "testing"
Requires-Dist: dulwich; extra == "testing"
Requires-Dist: aiohttp; extra == "testing"
Requires-Dist: click; extra == "testing"
Requires-Dist: pytest>=8.1; extra == "testing"
Requires-Dist: pytz; extra == "testing"
Requires-Dist: types-python-dateutil; extra == "testing"
Requires-Dist: types-pytz; extra == "testing"
Requires-Dist: types-deprecated; extra == "testing"
Provides-Extra: testing-minimal
Requires-Dist: aiohttp; extra == "testing-minimal"
Requires-Dist: click; extra == "testing-minimal"
Requires-Dist: pytest>=8.1; extra == "testing-minimal"
Requires-Dist: pytz; extra == "testing-minimal"
Requires-Dist: types-python-dateutil; extra == "testing-minimal"
Requires-Dist: types-pytz; extra == "testing-minimal"
Requires-Dist: types-deprecated; extra == "testing-minimal"
Dynamic: license-file

Software Heritage - Data model
==============================

Implementation of the Data model of the Software Heritage project, used to
archive source code artifacts.

This module defines the notion of SoftWare Hash persistent IDentifiers
(SWHIDs) and provides tools to compute them:

.. code-block:: shell

   $ swh-identify fork.c kmod.c sched/deadline.c
   swh:1:cnt:2e391c754ae730bd2d8520c2ab497c403220c6e3    fork.c
   swh:1:cnt:0277d1216f80ae1adeed84a686ed34c9b2931fc2    kmod.c
   swh:1:cnt:57b939c81bce5d06fa587df8915f05affbe22b82    sched/deadline.c

   $ swh-identify --no-filename /usr/src/linux/kernel/
   swh:1:dir:f9f858a48d663b3809c9e2f336412717496202ab

