General Package Utility Functions#
Utility functions useful for various package things like getting the signature matching
- boa.utils.get_dictionary_matching_signature(signature: Signature, d: dict, match_private: bool = False, exclude_fields: Optional[list[str]] = None, accept_all_kwargs: bool = True) dict[source]#
- boa.utils.serialize_init_args(class_, *, parents: list[Type] = None, match_private: bool = False, **kwargs)[source]#
Given an object, return a dictionary of the arguments that are needed by its constructor.
- boa.utils.extract_init_args(args: dict[str, Any], class_: Type, *, parents: list[Type] = None, match_private: bool = False, **kwargs) dict[str, Any][source]#
Given a dictionary, extract the arguments required for the given class’s constructor.
- class boa.utils.StrEnum(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]#
-
Enum where members are also (and must be) strings