pyunitwizard.configure package

Submodules

pyunitwizard.configure.configure module

pyunitwizard.configure.configure.add_constant(constant_name, value, unit) None[source]
pyunitwizard.configure.configure.get_default_form() str[source]

Returns the default form of the quantities and units.

Returns:

The default form.

Return type:

str

pyunitwizard.configure.configure.get_default_parser() str[source]

Returns the default parser.

Returns:

The default form.

Return type:

str

pyunitwizard.configure.configure.get_libraries_loaded() List[str][source]

Returns loaded libraries.

Returns:

A list with the loaded libraries.

Return type:

list of str

pyunitwizard.configure.configure.get_libraries_supported() List[str][source]

Returns supported libraries.

Returns:

A list with the loaded libraries.

Return type:

list of str

pyunitwizard.configure.configure.get_parsers_loaded() List[str][source]

Returns loaded parsers.

Returns:

A list with the loaded parsers.

Return type:

list of str

pyunitwizard.configure.configure.get_parsers_supported() List[str][source]

Returns supported parsers.

Returns:

A list with the supported parsers.

Return type:

list of str

pyunitwizard.configure.configure.get_standard_units() Dict[str, Dict[str, int]][source]

Returns a nested dictionary where each subdictionary corresponds to the dimensionality of the standard units set in the configuration.

Returns:

Dictionary with standard units.

Return type:

dict

pyunitwizard.configure.configure.load_library(library_names: str | List[str])[source]

Loads library or libraries.

Parameters:

library (str, list of str) – Name of the library or list with the name of the libraries.

pyunitwizard.configure.configure.reset() None[source]

Resets all kernel variables.

pyunitwizard.configure.configure.set_default_form(form: str) None[source]

Sets the default form of the quantities and units.

Parameters:

form (str) – The new default form.

pyunitwizard.configure.configure.set_default_parser(parser: str) None[source]

Sets the default form of the quantities and units.

Parameters:

form (str) – The new default form.

pyunitwizard.configure.configure.set_standard_units(standard_units: List[str]) None[source]

Sets the standard units.

Parameters:

standard_units (list of str) – List with the standard units

Module contents