nourish.schema.BaseSchemata¶
-
class
nourish.schema.BaseSchemata(url_or_path, *, tls_verification=True)¶ Bases:
abc.ABCAbstract class that provides functionality to load and export the contents of a schemata file.
- Parameters
url_or_path – URL or path to a schemata file.
tls_verification – When set to
True, verify the remote link is https and whether the TLS certificate is valid. When set to a path to a file, use this file as a CA bundle file. When set toFalse, allow http links and do not verify any TLS certificates. Ignored ifurl_or_pathis a local path.
- Raises
ValueError – An error occurred when parsing
url_or_pathas either a URL or path.InsecureConnectionError – The connection is insecure. See
tls_verificationfor more details.
Methods
export_schema(*keys)Returns a copy of a loaded schemata.
Attributes
The URL or path from which the schemata was retrieved.