Client

class SkuidClient(skuid_url)[source]

A client for interacting with a remote SKUID service.

__init__(skuid_url)[source]

Instantiates a new SKUID client.

Parameters:

skuid_url – The URL of the remote SKUID service to use.

fetch_scan_id()[source]

Fetches a new Scan ID from the SKUID service.

Returns:

a new Scan ID from the SKUID service as a string

fetch_skuid(entity_type)[source]

Fetches a new SKA Unique ID from the SKUID service

Parameters:

entity_type – the EntityType that the SKUID is for, e.g. sbd for ScheduleBlockDefinition

Returns:

a new SKA Unique ID as a string

fetch_transaction_id()[source]

Fetches a new Transaction ID from the SKUID service.

Should the fetch from the service fail with a 4xx or 5xx then a locally generated ID will be returned.

Returns:

a new Transaction ID from the SKUID service as a string

classmethod get_local_transaction_id()[source]

Return a transaction id that is not retrieved from the SKUID service. The possibility of duplicates exists.

Returns:

generates a Transaction ID and returns as a string