inspirehep.modules.pidstore package

Submodules

inspirehep.modules.pidstore.fetchers module

Persistent identifier minters.

class inspirehep.modules.pidstore.fetchers.FetchedPID(provider, pid_type, pid_value)

Bases: tuple

pid_type

Alias for field number 1

pid_value

Alias for field number 2

provider

Alias for field number 0

inspirehep.modules.pidstore.fetchers.inspire_recid_fetcher(record_uuid, data)[source]

Fetch a record’s identifiers.

inspirehep.modules.pidstore.minters module

Persistent identifier minters.

inspirehep.modules.pidstore.minters.inspire_recid_minter(record_uuid, data)[source]

Mint record identifiers.

inspirehep.modules.pidstore.utils module

PIDStore utils.

inspirehep.modules.pidstore.utils.get_endpoint_from_pid_type(pid_type)[source]

Return the endpoint corresponding to a pid_type.

inspirehep.modules.pidstore.utils.get_pid_type_from_endpoint(endpoint)[source]

Return the pid_type corresponding to an endpoint.

inspirehep.modules.pidstore.utils.get_pid_type_from_schema(schema)[source]

Return the pid_type corresponding to a schema URL.

The schema name corresponds to the endpoint in all cases except for Literature records. This implementation exploits this by falling back to get_pid_type_from_endpoint.

inspirehep.modules.pidstore.utils.get_pid_types_from_endpoints()[source]

Module contents