diff --git a/src/spaceandtime/sxtkeymanager.py b/src/spaceandtime/sxtkeymanager.py index 51be686..bcc6346 100644 --- a/src/spaceandtime/sxtkeymanager.py +++ b/src/spaceandtime/sxtkeymanager.py @@ -218,7 +218,7 @@ def sign_message(self, message:str, encoding_out:SXTKeyEncodings = SXTKeyEncodin """ if type(message)!=str: - raise ValueError(f'paramter: "message" must be a string type, not {str(type(message))}') + raise ValueError(f'parameter: "message" must be a string type, not {str(type(message))}') try: if not encoding_out: encoding_out = self.encoding signing_object = nacl.signing.SigningKey(bytes(self.__pv)) diff --git a/src/spaceandtime/sxtresource.py b/src/spaceandtime/sxtresource.py index 40f5315..060fb90 100644 --- a/src/spaceandtime/sxtresource.py +++ b/src/spaceandtime/sxtresource.py @@ -212,7 +212,7 @@ def exists(self) -> bool: self.logger.debug(f'testing whether {self.resource_name} exists: {str(does_exist)}') return does_exist else: - self.logger.warning(f'There was a problem deteriming whether resource exists: {self.resource_name} (returning None)\n{resources}') + self.logger.warning(f'There was a problem determining whether resource exists: {self.resource_name} (returning None)\n{resources}') return None @@ -241,7 +241,7 @@ def add_biscuit_object(self, *biscuit_objects:SXTBiscuit) -> SXTBiscuit: """Adds one-or-more SXTBiscuit objects to the resource. Args: - bsicuit_objects (SXTBiscuit): Biscuit objects to add to resource + biscuit_objects (SXTBiscuit): Biscuit objects to add to resource Returns: list: objects added @@ -771,7 +771,7 @@ def require_primary_key(self, value:bool): def get_column_names(self) -> dict: - """Returns a dictonary of column_name : data_type as defined in the create_ddl. + """Returns a dictionary of column_name : data_type as defined in the create_ddl. Useful when an iterable list of columns (and types) is required, such as building INSERT statements or view SELECT lists. Order should be preserved, although as a dict @@ -916,7 +916,7 @@ def with_list_of_dicts(self, pk_column:str, list_of_dicts:list = [{}], upsert:bo """-------------------- Turns a list of dictionaries into multiple UPDATE statements and submits for insertion to this resource on the Space and Time Network. - Each row (dictionary) in the list will be coverted to an update statement individually, thus can contain a different + Each row (dictionary) in the list will be converted to an update statement individually, thus can contain a different assortment of columns and data to update. Rows updated this way are always identified by the unique Primary Key, so the pk_column must be specified, must match the PK column name in the table definition, and must appear in every row in the list_of_dicts. To perform arbitrary UPDATES against multiple rows, us the "with_sqltext()" function.