nexusLIMS.harvesters#

Handles obtaining a certificate authority bundle from settings.

Sub-modules include connections to calendar APIs (NEMO) as well as a class to represent a Reservation Event

Subpackages#

Submodules#

Package Contents#

Functions#

get_ca_bundle_path

Get the path to the custom CA bundle file, if configured.

get_ca_bundle_content

Get the content of the custom CA bundle, if configured.

API#

nexusLIMS.harvesters.get_ca_bundle_path() Path | None[source]#

Get the path to the custom CA bundle file, if configured.

Loaded from the NX_CERT_BUNDLE_FILE configuration setting.

Returns:

Path to the certificate authority bundle file, or None if not configured.

Return type:

Path | None

nexusLIMS.harvesters.get_ca_bundle_content() list[bytes] | None[source]#

Get the content of the custom CA bundle, if configured.

Loaded from NX_CERT_BUNDLE configuration or reads the file at get_ca_bundle_path() if not provided.

Returns:

Certificate authority bundle content as a list of byte strings, or None if not configured.

Return type:

list[bytes] | None