prometa.id package

Submodules

prometa.id.hal module

HAL open science functions.

https://api.archives-ouvertes.fr/docs/search

prometa.id.hal.get_hal_id_from_url(url)[source]

Extract the HAL ID from a HAL URL.

prometa.id.hal.get_hal_url_by_origin(origin)[source]

Get the HAL ID by origin.

prometa.id.orcid module

ORCID functions.

prometa.id.orcid.get_orcid_url(orcid)[source]

Get the ORCID URL for the given ID.

prometa.id.swh module

Software Heritage functions.

prometa.id.swh.get_swh_url_by_origin(origin)[source]

Get a Software Heritage link for an origin URL.

Parameters:

origin – The origin URL of the software project.

Returns:

A Software Heritage URL. The page may not exist.

prometa.id.swh.get_swhid_by_origin(origin)[source]

Get a Software Heritage ID from an origin URL. This only includes the origin and repository ID.

Parameters:

origin – The origin URL of the software project.

Returns:

A Software Heritage ID string.

prometa.id.swh.swh_project_exists(origin)[source]

Check if the project exists on Software Heritage.

Parameters:

origin – The origin URL of the software project.

Returns:

True if the project exists, False otherwise.

Module contents

Package stub.