specify exported api methods in __all__

It's py.types requirement, similar to 6e2edbf

Example issue without __all__:
import ifcopenshell
import ifcopenshell.api.project

# "create_file" is not exported from module "ifcopenshell.api.project"
ifcopenshell.api.project.create_file()
This commit is contained in:
Andrej730
2024-06-03 11:30:41 +05:00
parent 70091aa28b
commit 4a5d1eba0b
33 changed files with 394 additions and 0 deletions
@@ -28,3 +28,8 @@ from .assign_object import assign_object
from .unassign_object import unassign_object
wrap_usecases(__path__, __name__)
__all__ = [
"assign_object",
"unassign_object",
]
@@ -27,3 +27,7 @@ from .. import wrap_usecases
from .edit_attributes import edit_attributes
wrap_usecases(__path__, __name__)
__all__ = [
"edit_attributes",
]
@@ -30,3 +30,10 @@ from .edit_attributes import edit_attributes
from .remove_boundary import remove_boundary
wrap_usecases(__path__, __name__)
__all__ = [
"assign_connection_geometry",
"copy_boundary",
"edit_attributes",
"remove_boundary",
]
@@ -36,3 +36,12 @@ from .remove_classification import remove_classification
from .remove_reference import remove_reference
wrap_usecases(__path__, __name__)
__all__ = [
"add_classification",
"add_reference",
"edit_classification",
"edit_reference",
"remove_classification",
"remove_reference",
]
@@ -34,3 +34,15 @@ from .remove_metric import remove_metric
from .unassign_constraint import unassign_constraint
wrap_usecases(__path__, __name__)
__all__ = [
"add_metric",
"add_metric_reference",
"add_objective",
"assign_constraint",
"edit_metric",
"edit_objective",
"remove_constraint",
"remove_metric",
"unassign_constraint",
]
@@ -31,3 +31,9 @@ from .edit_context import edit_context
from .remove_context import remove_context
wrap_usecases(__path__, __name__)
__all__ = [
"add_context",
"edit_context",
"remove_context",
]
@@ -27,3 +27,8 @@ from .assign_control import assign_control
from .unassign_control import unassign_control
wrap_usecases(__path__, __name__)
__all__ = [
"assign_control",
"unassign_control",
]
@@ -46,3 +46,25 @@ from .remove_cost_value import remove_cost_value
from .unassign_cost_item_quantity import unassign_cost_item_quantity
wrap_usecases(__path__, __name__)
__all__ = [
"add_cost_item",
"add_cost_item_quantity",
"add_cost_schedule",
"add_cost_value",
"assign_cost_item_quantity",
"assign_cost_value",
"calculate_cost_item_resource_value",
"copy_cost_item",
"copy_cost_item_values",
"edit_cost_item",
"edit_cost_item_quantity",
"edit_cost_schedule",
"edit_cost_value",
"edit_cost_value_formula",
"remove_cost_item",
"remove_cost_item_quantity",
"remove_cost_schedule",
"remove_cost_value",
"unassign_cost_item_quantity",
]
@@ -35,3 +35,14 @@ from .remove_reference import remove_reference
from .unassign_document import unassign_document
wrap_usecases(__path__, __name__)
__all__ = [
"add_information",
"add_reference",
"assign_document",
"edit_information",
"edit_reference",
"remove_information",
"remove_reference",
"unassign_document",
]
@@ -28,3 +28,9 @@ from .edit_text_literal import edit_text_literal
from .unassign_product import unassign_product
wrap_usecases(__path__, __name__)
__all__ = [
"assign_product",
"edit_text_literal",
"unassign_product",
]
@@ -61,3 +61,28 @@ from .remove_representation import remove_representation
from .unassign_representation import unassign_representation
wrap_usecases(__path__, __name__)
__all__ = [
"add_axis_representation",
"add_boolean",
"add_door_representation",
"add_footprint_representation",
"add_mesh_representation",
"add_profile_representation",
"add_railing_representation",
"add_representation",
"add_slab_representation",
"add_wall_representation",
"add_window_representation",
"assign_representation",
"connect_element",
"connect_path",
"create_2pt_wall",
"disconnect_element",
"disconnect_path",
"edit_object_placement",
"map_representation",
"remove_boolean",
"remove_representation",
"unassign_representation",
]
@@ -29,3 +29,9 @@ from .edit_georeferencing import edit_georeferencing
from .remove_georeferencing import remove_georeferencing
wrap_usecases(__path__, __name__)
__all__ = [
"add_georeferencing",
"edit_georeferencing",
"remove_georeferencing",
]
@@ -30,3 +30,9 @@ from .create_grid_axis import create_grid_axis
from .remove_grid_axis import remove_grid_axis
wrap_usecases(__path__, __name__)
__all__ = [
"create_axis_curve",
"create_grid_axis",
"remove_grid_axis",
]
@@ -32,3 +32,12 @@ from .unassign_group import unassign_group
from .update_group_products import update_group_products
wrap_usecases(__path__, __name__)
__all__ = [
"add_group",
"assign_group",
"edit_group",
"remove_group",
"unassign_group",
"update_group_products",
]
@@ -33,3 +33,11 @@ from .remove_layer import remove_layer
from .unassign_layer import unassign_layer
wrap_usecases(__path__, __name__)
__all__ = [
"add_layer",
"assign_layer",
"edit_layer",
"remove_layer",
"unassign_layer",
]
@@ -34,3 +34,14 @@ from .remove_reference import remove_reference
from .unassign_reference import unassign_reference
wrap_usecases(__path__, __name__)
__all__ = [
"add_library",
"add_reference",
"assign_reference",
"edit_library",
"edit_reference",
"remove_library",
"remove_reference",
"unassign_reference",
]
@@ -58,3 +58,30 @@ from .reorder_set_item import reorder_set_item
from .unassign_material import unassign_material
wrap_usecases(__path__, __name__)
__all__ = [
"add_constituent",
"add_layer",
"add_list_item",
"add_material",
"add_material_set",
"add_profile",
"assign_material",
"assign_profile",
"copy_material",
"edit_assigned_material",
"edit_constituent",
"edit_layer",
"edit_layer_usage",
"edit_material",
"edit_profile",
"edit_profile_usage",
"remove_constituent",
"remove_layer",
"remove_list_item",
"remove_material",
"remove_material_set",
"remove_profile",
"reorder_set_item",
"unassign_material",
]
@@ -34,3 +34,10 @@ from .reorder_nesting import reorder_nesting
from .unassign_object import unassign_object
wrap_usecases(__path__, __name__)
__all__ = [
"assign_object",
"change_nest",
"reorder_nesting",
"unassign_object",
]
@@ -50,3 +50,29 @@ from .unassign_actor import unassign_actor
from .update_owner_history import update_owner_history
wrap_usecases(__path__, __name__)
__all__ = [
"add_actor",
"add_address",
"add_application",
"add_organisation",
"add_person",
"add_person_and_organisation",
"add_role",
"assign_actor",
"create_owner_history",
"edit_actor",
"edit_address",
"edit_organisation",
"edit_person",
"edit_role",
"remove_actor",
"remove_address",
"remove_application",
"remove_organisation",
"remove_person",
"remove_person_and_organisation",
"remove_role",
"unassign_actor",
"update_owner_history",
]
@@ -30,3 +30,11 @@ from .edit_profile import edit_profile
from .remove_profile import remove_profile
wrap_usecases(__path__, __name__)
__all__ = [
"add_arbitrary_profile",
"add_arbitrary_profile_with_voids",
"add_parameterized_profile",
"edit_profile",
"remove_profile",
]
@@ -33,3 +33,10 @@ from .create_file import create_file
from .unassign_declaration import unassign_declaration
wrap_usecases(__path__, __name__)
__all__ = [
"append_asset",
"assign_declaration",
"create_file",
"unassign_declaration",
]
@@ -31,3 +31,11 @@ from .edit_qto import edit_qto
from .remove_pset import remove_pset
wrap_usecases(__path__, __name__)
__all__ = [
"add_pset",
"add_qto",
"edit_pset",
"edit_qto",
"remove_pset",
]
@@ -33,3 +33,12 @@ from .remove_prop_template import remove_prop_template
from .remove_pset_template import remove_pset_template
wrap_usecases(__path__, __name__)
__all__ = [
"add_prop_template",
"add_pset_template",
"edit_prop_template",
"edit_pset_template",
"remove_prop_template",
"remove_pset_template",
]
@@ -38,3 +38,18 @@ from .remove_resource_quantity import remove_resource_quantity
from .unassign_resource import unassign_resource
wrap_usecases(__path__, __name__)
__all__ = [
"add_resource",
"add_resource_quantity",
"add_resource_time",
"assign_resource",
"calculate_resource_usage",
"calculate_resource_work",
"edit_resource",
"edit_resource_quantity",
"edit_resource_time",
"remove_resource",
"remove_resource_quantity",
"unassign_resource",
]
@@ -33,3 +33,10 @@ from .reassign_class import reassign_class
from .remove_product import remove_product
wrap_usecases(__path__, __name__)
__all__ = [
"copy_class",
"create_entity",
"reassign_class",
"remove_product",
]
@@ -67,3 +67,44 @@ from .unassign_recurrence_pattern import unassign_recurrence_pattern
from .unassign_sequence import unassign_sequence
wrap_usecases(__path__, __name__)
__all__ = [
"add_task",
"add_task_time",
"add_time_period",
"add_work_calendar",
"add_work_plan",
"add_work_schedule",
"add_work_time",
"assign_lag_time",
"assign_process",
"assign_product",
"assign_recurrence_pattern",
"assign_sequence",
"assign_workplan",
"calculate_task_duration",
"cascade_schedule",
"create_baseline",
"duplicate_task",
"edit_lag_time",
"edit_recurrence_pattern",
"edit_sequence",
"edit_task",
"edit_task_time",
"edit_work_calendar",
"edit_work_plan",
"edit_work_schedule",
"edit_work_time",
"recalculate_schedule",
"remove_task",
"remove_time_period",
"remove_work_calendar",
"remove_work_plan",
"remove_work_schedule",
"remove_work_time",
"unassign_lag_time",
"unassign_process",
"unassign_product",
"unassign_recurrence_pattern",
"unassign_sequence",
]
@@ -29,3 +29,10 @@ from .reference_structure import reference_structure
from .unassign_container import unassign_container
wrap_usecases(__path__, __name__)
__all__ = [
"assign_container",
"dereference_structure",
"reference_structure",
"unassign_container",
]
@@ -46,3 +46,27 @@ from .remove_structural_load_group import remove_structural_load_group
from .unassign_structural_analysis_model import unassign_structural_analysis_model
wrap_usecases(__path__, __name__)
__all__ = [
"add_structural_activity",
"add_structural_analysis_model",
"add_structural_boundary_condition",
"add_structural_load",
"add_structural_load_case",
"add_structural_load_group",
"add_structural_member_connection",
"assign_structural_analysis_model",
"edit_structural_analysis_model",
"edit_structural_boundary_condition",
"edit_structural_connection_cs",
"edit_structural_item_axis",
"edit_structural_load",
"edit_structural_load_case",
"remove_structural_analysis_model",
"remove_structural_boundary_condition",
"remove_structural_connection_condition",
"remove_structural_load",
"remove_structural_load_case",
"remove_structural_load_group",
"unassign_structural_analysis_model",
]
@@ -38,3 +38,18 @@ from .unassign_material_style import unassign_material_style
from .unassign_representation_styles import unassign_representation_styles
wrap_usecases(__path__, __name__)
__all__ = [
"add_style",
"add_surface_style",
"add_surface_textures",
"assign_material_style",
"assign_representation_styles",
"edit_presentation_style",
"edit_surface_style",
"remove_style",
"remove_styled_representation",
"remove_surface_style",
"unassign_material_style",
"unassign_representation_styles",
]
@@ -39,3 +39,18 @@ from .unassign_port import unassign_port
from .unassign_system import unassign_system
wrap_usecases(__path__, __name__)
__all__ = [
"add_port",
"add_system",
"assign_flow_control",
"assign_port",
"assign_system",
"connect_port",
"disconnect_port",
"edit_system",
"remove_system",
"unassign_flow_control",
"unassign_port",
"unassign_system",
]
@@ -30,3 +30,9 @@ from .map_type_representations import map_type_representations
from .unassign_type import unassign_type
wrap_usecases(__path__, __name__)
__all__ = [
"assign_type",
"map_type_representations",
"unassign_type",
]
@@ -36,3 +36,16 @@ from .remove_unit import remove_unit
from .unassign_unit import unassign_unit
wrap_usecases(__path__, __name__)
__all__ = [
"add_context_dependent_unit",
"add_conversion_based_unit",
"add_monetary_unit",
"add_si_unit",
"assign_unit",
"edit_derived_unit",
"edit_monetary_unit",
"edit_named_unit",
"remove_unit",
"unassign_unit",
]
@@ -31,3 +31,10 @@ from .remove_filling import remove_filling
from .remove_opening import remove_opening
wrap_usecases(__path__, __name__)
__all__ = [
"add_filling",
"add_opening",
"remove_filling",
"remove_opening",
]