sir3stoolkit package
Subpackages
- sir3stoolkit.core package
- Submodules
- sir3stoolkit.core.graph module
- sir3stoolkit.core.wrapper module
DotNetEnumMetaGet_Toolkit_Dll_File_Version()Initialize_Toolkit()Read_SirGraf_Config_Path()SIR3S_ModelSIR3S_Model.AddNewBypassElement()SIR3S_Model.AddNewConnectingElement()SIR3S_Model.AddNewNode()SIR3S_Model.AddNewPipe()SIR3S_Model.AddTableRow()SIR3S_Model.AlignElement()SIR3S_Model.AllocateWorkingDirectory()SIR3S_Model.AllowSirMessageBox()SIR3S_Model.CloseModel()SIR3S_Model.ConnectBypassElementWithNode()SIR3S_Model.ConnectConnectingElementWithNodes()SIR3S_Model.CopyWorkingDirectory()SIR3S_Model.CreateModelRepair()SIR3S_Model.CreateWorkingDirectory()SIR3S_Model.DeleteElement()SIR3S_Model.EnableOrDisableOutputComments()SIR3S_Model.EnableOrDisable_ObjectTypes_TableNames_Enum()SIR3S_Model.EndEditSession()SIR3S_Model.EndTransaction()SIR3S_Model.ExecCalculation()SIR3S_Model.ExecuteModelValidation()SIR3S_Model.ExecuteResultsCheck()SIR3S_Model.GetCalculationType()SIR3S_Model.GetCourseOfHydraulicProfile()SIR3S_Model.GetCurrentTimeStamp()SIR3S_Model.GetDBSourcePath()SIR3S_Model.GetElementInfo()SIR3S_Model.GetEndNodes()SIR3S_Model.GetGeometryData()SIR3S_Model.GetGeometryInformation()SIR3S_Model.GetHydraulicProfileObjectString()SIR3S_Model.GetLogFilePath()SIR3S_Model.GetMainContainer()SIR3S_Model.GetMaxResult()SIR3S_Model.GetMaxResult_for_timestamp()SIR3S_Model.GetMinResult()SIR3S_Model.GetMinResult_for_timestamp()SIR3S_Model.GetNetworkType()SIR3S_Model.GetNumberOfElements()SIR3S_Model.GetObjectTypeof_Key()SIR3S_Model.GetPropertiesofElementType()SIR3S_Model.GetReferencesToElement()SIR3S_Model.GetResultProperties_from_elementKey()SIR3S_Model.GetResultProperties_from_elementType()SIR3S_Model.GetResultValue()SIR3S_Model.GetResultforAllTimestamp()SIR3S_Model.GetResultfortimestamp()SIR3S_Model.GetSimulationTimeFrame()SIR3S_Model.GetTableRows()SIR3S_Model.GetThermalCalculationParemeters()SIR3S_Model.GetTimeStamps()SIR3S_Model.GetTkFromIDReference()SIR3S_Model.GetTksofElementType()SIR3S_Model.GetValue()SIR3S_Model.GetWorkingDirectory()SIR3S_Model.InsertElement()SIR3S_Model.IsMainContainer()SIR3S_Model.NewModel()SIR3S_Model.OpenModel()SIR3S_Model.OpenModelXml()SIR3S_Model.RefreshViews()SIR3S_Model.SaveChanges()SIR3S_Model.SetCalculationType()SIR3S_Model.SetCurrentTimeStamp()SIR3S_Model.SetElementColor()SIR3S_Model.SetElementColor_RGB()SIR3S_Model.SetGeometryInformation()SIR3S_Model.SetInsertPoint()SIR3S_Model.SetLogFilePath()SIR3S_Model.SetSimulationTimeFrame()SIR3S_Model.SetThermalCalculationParemeters()SIR3S_Model.SetValue()SIR3S_Model.StartEditSession()SIR3S_Model.StartTransaction()SIR3S_Model.WriteSirCalcXmlFile()SIR3S_Model.to_dotnet_enum()SIR3S_Model.to_python_enum()
SIR3S_ModelRepairSIR3S_ToolkitErrorSIR3S_ViewSIR3S_View.AddExternalArrow()SIR3S_View.AddExternalEllipse()SIR3S_View.AddExternalPolygon()SIR3S_View.AddExternalPolygonPoint()SIR3S_View.AddExternalPolygon_using_LineString()SIR3S_View.AddExternalPolyline()SIR3S_View.AddExternalPolylinePoint()SIR3S_View.AddExternalPolyline_using_LineString()SIR3S_View.AddExternalRectangle()SIR3S_View.AddExternalText()SIR3S_View.AddNewCustomer()SIR3S_View.AddNewDirectionalArrow()SIR3S_View.AddNewHouse()SIR3S_View.AddNewHydrant()SIR3S_View.AddNewNumericalDisplay()SIR3S_View.AddNewStreet()SIR3S_View.AddNewText()SIR3S_View.AddNewValveOnPipe()SIR3S_View.CloseModel()SIR3S_View.ColoratePipe()SIR3S_View.DoColoration()SIR3S_View.EnableOrDisableOutputComments()SIR3S_View.EndEditSession()SIR3S_View.EndTransaction()SIR3S_View.GetColor()SIR3S_View.GetColorTableEntries()SIR3S_View.GetFont()SIR3S_View.GetMainContainer()SIR3S_View.GetMarkedElements()SIR3S_View.GetNumericalDisplayProperties()SIR3S_View.GetTextProperties()SIR3S_View.GetWidthFactor()SIR3S_View.InitColorTable()SIR3S_View.IsElementMarked()SIR3S_View.MarkElement()SIR3S_View.MoveElementBy()SIR3S_View.MoveElementTo()SIR3S_View.OpenModel()SIR3S_View.OpenModelXml()SIR3S_View.PrepareColoration()SIR3S_View.RefreshViews()SIR3S_View.RemoveAllExternalVisualObjects()SIR3S_View.ResetColoration()SIR3S_View.SaveChanges()SIR3S_View.SetExternalArrowProperties()SIR3S_View.SetExternalEllipseProperties()SIR3S_View.SetExternalPolyLineWidthAndColor()SIR3S_View.SetExternalPolygonProperties()SIR3S_View.SetExternalRectangleProperties()SIR3S_View.SetExternalTextProperties()SIR3S_View.SetExternalTextText()SIR3S_View.SetFont()SIR3S_View.SetWidthScaleProperties()SIR3S_View.StartEditSession()SIR3S_View.StartTransaction()SIR3S_View.UnmarkAll()SIR3S_View.UnmarkElement()SIR3S_View.to_dotnet_enum()SIR3S_View.to_python_enum()
Set_Raise_On_Error()Write_SirGraf_Config_Path()create_dotnet_enum()fontInformationhydraulicProfilehydraulicProfile.childrenUIDhydraulicProfile.lengthhydraulicProfile.linksRLhydraulicProfile.linksVLhydraulicProfile.nodesRLhydraulicProfile.nodesVLhydraulicProfile.nrOfBrancheshydraulicProfile.tkArticulationNodehydraulicProfile.xOffSethydraulicProfile.xOffsetRelativeToParenthydraulicProfile.xRLhydraulicProfile.xVL
numericalDisplayPropertiesnumericalDisplayProperties.absValuenumericalDisplayProperties.angle_degreenumericalDisplayProperties.colornumericalDisplayProperties.descriptionnumericalDisplayProperties.elemPropertyNameOrResultnumericalDisplayProperties.faceNamenumericalDisplayProperties.forResultnumericalDisplayProperties.heightPtnumericalDisplayProperties.isBoldnumericalDisplayProperties.isItalicnumericalDisplayProperties.isUnderlinenumericalDisplayProperties.numDecnumericalDisplayProperties.prefixnumericalDisplayProperties.tkObservednumericalDisplayProperties.unitnumericalDisplayProperties.xnumericalDisplayProperties.y
textProperties
- Module contents
- sir3stoolkit.mantle package
- Submodules
- sir3stoolkit.mantle.advanced_operations module
SIR3S_Model_Advanced_OperationsSIR3S_Model_Advanced_Operations.add_element_types_to_tk_list()SIR3S_Model_Advanced_Operations.add_elements_to_group()SIR3S_Model_Advanced_Operations.get_element_type_from_tk()SIR3S_Model_Advanced_Operations.get_tks_of_group_elements()SIR3S_Model_Advanced_Operations.remove_elements_from_group()SIR3S_Model_Advanced_Operations.set_group_elements()
- sir3stoolkit.mantle.alternative_models module
- sir3stoolkit.mantle.dataframes module
SIR3S_Model_DataframesSIR3S_Model_Dataframes.add_interior_points_as_flat_cols()SIR3S_Model_Dataframes.add_interior_points_as_multiindex()SIR3S_Model_Dataframes.add_interior_points_to_start_end_sequence()SIR3S_Model_Dataframes.convert_rows_to_single_tuple_row()SIR3S_Model_Dataframes.delete_elements_in_dataframe()SIR3S_Model_Dataframes.generate_edge_dataframe()SIR3S_Model_Dataframes.generate_element_dataframe()SIR3S_Model_Dataframes.generate_element_model_data_dataframe()SIR3S_Model_Dataframes.generate_element_results_dataframe()SIR3S_Model_Dataframes.generate_longitudinal_section_dataframes()SIR3S_Model_Dataframes.get_EPSG()SIR3S_Model_Dataframes.get_dataframe_from_time_table()SIR3S_Model_Dataframes.get_dataframes_from_nominal_diameter_tables()SIR3S_Model_Dataframes.get_dataframes_from_time_table_type()SIR3S_Model_Dataframes.get_result_file_properties()SIR3S_Model_Dataframes.insert_dataframe_into_time_table()SIR3S_Model_Dataframes.merge_model_data_and_results()
- sir3stoolkit.mantle.mantle module
- sir3stoolkit.mantle.mx module
- sir3stoolkit.mantle.plotting module
- Module contents
- sir3stoolkit.mcp package
Submodules
sir3stoolkit.dependency_check module
Shared helper for sir3stoolkit’s optional (“mantle”) third-party dependencies.
Each sir3stoolkit.mantle module calls require_packages() with its own actual requirements as the first thing it does (before any of the third-party imports it’s checking for), so a missing package surfaces as one clear, actionable message naming exactly what’s missing and how to install it - instead of a raw ModuleNotFoundError/ImportError traceback from wherever inside that package’s own import machinery it happened to fail.
@author: Jablonski
- sir3stoolkit.dependency_check.require_packages(module_name: str, *package_names: str) None[source]
Verify each of
package_namesis importable, and raise one combined ImportError naming every missing one if any are missing.Uses importlib.util.find_spec() rather than actually importing each package - cheap (no module code executes) and side-effect-free, so calling this before the real imports below it doesn’t do any of that work twice.
- Parameters:
module_name (str) – The calling module’s
__name__, used in the error message so the user knows which part of sir3stoolkit needs the missing package(s).package_names (str) – Top-level import names to check (e.g. “pandas”, “geopandas”). Assumed to match their PyPI/pip distribution name - true for every package sir3stoolkit’s “mantle” extra currently uses.
- Raises:
ImportError – If any of package_names is not importable.
sir3stoolkit.logging_utils module
- sir3stoolkit.logging_utils.emit_message(logger: Logger, message) None[source]
Emit a legacy message with level inference.
- sir3stoolkit.logging_utils.get_logger(name: str) Logger[source]
Create/get module logger with a host-aware fallback print handler.
- sir3stoolkit.logging_utils.get_process_executable_name() str[source]
Get executable name of current process when available.
Module contents
sir3stoolkit: Python client for SIR 3S (pipe network simulation/analysis software, 3S Consult).
AI assistant writing code against this package? Quick orientation:
- core.wrapper: thin low-level wrapper around the SIR 3S .NET Toolkit API (SIR3S_Model:
OpenModel,GetValue/SetValue,ExecCalculation,GetResultValue, …).
mantle: higher-level convenience functions built on core (dataframes, model-editing, plotting, alternative-model export) - prefer these when one exists for what you need.Docstrings in this package are the ground truth for exact signatures - introspect directly (
help(...)) rather than guessing.GetValue/SetValue/GetResultValuetake opaque property-name strings and OBJTYPE codes; see the generated reference at https://3sconsult.github.io/sir3stoolkit/object_types_props_results_snippet_global_mapped.htmlFull guide, known gotchas, docs/tutorial links: https://github.com/3SConsult/sir3stoolkit/blob/main/AGENTS.md