strangeworks.core package

Subpackages

Submodules

strangeworks.core.utils module

utils.py.

strangeworks.core.utils.fix_str_attr(attr: str) str | None

Fix Attribute Name.

Removes leading and trailing whitespaces and converts to lower-case.

Parameters:

attr (str) – Attribute value

Returns:

adjusted attribute value

Return type:

str

strangeworks.core.utils.is_empty_str(s: str) bool

Check if string is empty.

A string is considered to be empty if any one of the following conditions are true:
  • it is set to None or

  • consists exclusively of spaces

  • is equal to “”

Module contents