### Install STEPutils from Source Source: https://github.com/mozman/steputils/blob/master/README.md Install STEPutils by cloning the repository and running the setup script. ```bash python setup.py install ``` -------------------------------- ### Install STEPutils with pip Source: https://github.com/mozman/steputils/blob/master/README.md Install the STEPutils package using pip for Python 3.7 and later. ```bash pip install steputils ``` -------------------------------- ### Install Development Version from GitHub Source: https://github.com/mozman/steputils/blob/master/README.md Install the latest development version of STEPutils directly from GitHub using pip. ```bash pip install git+https://github.com/mozman/steputils.git@master ``` -------------------------------- ### get Source: https://github.com/mozman/steputils/blob/master/docs/source/p21.md Retrieves an EntityInstance by its reference name, returning None if not found. Searches all data sections if multiple exist. ```APIDOC ## get(ref: Reference) ### Description Returns `EntityInstance` by instance name ref or `None` if not found. Searches all data sections if more than one exist. ### Parameters * **ref** (Reference) - Required - entity instance name as string e.g. `'#100'` ### Returns EntityInstance | None ``` -------------------------------- ### steputils.p21.reference Source: https://github.com/mozman/steputils/blob/master/docs/source/p21.md Factory function to create a new Reference object, representing an Entity Instance Name. References must start with '#' followed by digits. ```APIDOC ## steputils.p21.reference ### Description Factory function to create a new [`Reference`](#steputils.p21.Reference) object (Entity Instance Name). A reference has to start with `'#'` followed by only digits e.g. `'#100'` ``` -------------------------------- ### Getting Data Section Instance by Reference Source: https://github.com/mozman/steputils/blob/master/docs/source/p21.md Safely retrieve an entity instance by its reference string, returning None if not found. ```python data_section.get('#100') ``` -------------------------------- ### steputils.p21.keyword Source: https://github.com/mozman/steputils/blob/master/docs/source/p21.md Factory function to create a new Keyword object. Keywords must consist of uppercase letters and digits, starting with an uppercase letter for standard keywords or '!' for user-defined keywords. ```APIDOC ## steputils.p21.keyword ### Description Factory function to create a new [`Keyword`](#steputils.p21.Keyword) object. Only uppercase letters and digits are allowed, standard keyword has to start with an uppercase letter and user defined keyword has to start with `'!'`. ``` -------------------------------- ### Retrieving References from Data Section Source: https://github.com/mozman/steputils/blob/master/docs/source/p21.md Get an iterable of all entity instance names (references) present in the data section. ```python data_section.references() ``` -------------------------------- ### Getting Data Section Instance Count Source: https://github.com/mozman/steputils/blob/master/docs/source/p21.md Determine the total number of entity instances stored within a data section. ```python len(data_section) ``` -------------------------------- ### Get the root node of the model Source: https://github.com/mozman/steputils/blob/master/TODO.md Retrieves the root node of the STEP model. This node serves as the entry point for navigating the model's structure. ```python root = ifc4.get_root() ``` -------------------------------- ### Create, Write, and Read STEP File Source: https://github.com/mozman/steputils/blob/master/docs/source/p21.md Demonstrates the complete workflow of creating a new STEP file, adding data, setting header information, saving it to disk, and then reading it back. Includes error handling for file I/O and parsing. ```python from steputils import p21 FNAME = "example.p21" # Create a new STEP-file: stepfile = p21.new_step_file() # Create a new data section: data = stepfile.new_data_section() # Add entity instances to data section: data.add(p21.simple_instance('#1', name='APPLICATION', params=('MyApp', 'v1.0'))) # Set required header entities: stepfile.header.set_file_description(('Example STEP file', 'v1.0')) stepfile.header.set_file_name(name=FNAME, organization=('me', 'myself'), authorization='me') # A file schema has to be defined explicit, list all used file schemas. stepfile.header.set_file_schema(('NONE',)) # Write STEP-file to file system: stepfile.save(FNAME) # Read an existing file from file system: try: stepfile = p21.readfile(FNAME) except IOError as e: print(str(e)) except p21.ParseError as e: # Invalid STEP-file or unsupported version print(str(e)) else: print(f'File {FNAME} is a valid STEP-file (ISO 10303-21;2002).') ``` -------------------------------- ### save Source: https://github.com/mozman/steputils/blob/master/docs/source/p21.md Exports the STEP-file to the file system with the specified name. ```APIDOC ## save(name: str) ### Description Export STEP-file to the file system. ### Parameters * **name** (str) - Required - The name of the file to save. ``` -------------------------------- ### Creating a New Data Section Source: https://github.com/mozman/steputils/blob/master/docs/source/p21.md Instantiate a new STEP-file with at least one data section using the factory function. ```python stepfile = StepFile.new_data_section() ``` -------------------------------- ### Create a new IFC4 model instance Source: https://github.com/mozman/steputils/blob/master/TODO.md Instantiates a new model for the IFC4 schema. This is the first step in creating or loading STEP model data. ```python ifc4 = steputils.model('IFC4') ``` -------------------------------- ### steputils.p21.new_step_file Source: https://github.com/mozman/steputils/blob/master/docs/source/p21.md Factory function to create a new, empty StepFile object, ready for populating with data. ```APIDOC ## steputils.p21.new_step_file ### Description Factory function to create a new [`StepFile`](#steputils.p21.StepFile) object. ### Method new_step_file ### Response #### Success Response (StepFile) Returns a new, empty `StepFile` object. ``` -------------------------------- ### Setting File Schema Source: https://github.com/mozman/steputils/blob/master/docs/source/p21.md Define the schema used for the STEP file. Accepts an iterable of schema names. ```python header.set_file_schema(['AP203', 'ISO-10303-21']) ``` -------------------------------- ### Setting File Description Source: https://github.com/mozman/steputils/blob/master/docs/source/p21.md Set the file description, typically a tuple of strings. The level parameter controls the description level. ```python header.set_file_description(description=('Example Description',)) ``` -------------------------------- ### write Source: https://github.com/mozman/steputils/blob/master/docs/source/p21.md Serializes the data to a STEP-file (ISO 10303-21) formatted stream to the provided file pointer. Uses 'iso-8859-1' encoding, compatible with 'ascii'. ```APIDOC ## write(fp: TextIO) ### Description Serialize to a STEP-file (ISO 10303-21) formatted stream to `fp` (a [`write()`](#steputils.p21.StepFile.write)-supporting file-like object). File encoding should be `'iso-8859-1'` but can also be `'ascii'`, because ISO 10303-21 requires special encoding for characters > 126 into characters < 127 as unicode compatible characters, which should be compatible with most encodings, but don’t use 16-bit encodings! ### Parameters * **fp** (TextIO) - Required - text stream ``` -------------------------------- ### steputils.p21.parameter_list Source: https://github.com/mozman/steputils/blob/master/docs/source/p21.md Factory function to create a new ParameterList object. ```APIDOC ## steputils.p21.parameter_list ### Description Factory function to create a new [`ParameterList`](#steputils.p21.ParameterList) object. ``` -------------------------------- ### Setting File Name Source: https://github.com/mozman/steputils/blob/master/docs/source/p21.md Set the file name and associated metadata such as timestamp, author, and organization. ```python header.set_file_name(name='example.step', time_stamp='2023-01-01T12:00:00Z', author='John Doe') ``` -------------------------------- ### steputils.p21.loads Source: https://github.com/mozman/steputils/blob/master/docs/source/p21.md Loads a STEP-file (ISO 10303-21:2002) directly from a unicode string. It decodes special characters according to the standard. ```APIDOC ## steputils.p21.loads ### Description Loads a STEP-file (ISO 10303-21:2002) from a unicode string. Decoding for special characters greater than 126 to unicode characters is applied according to the ISO 10303-21:2002 standard. ### Method loads ### Parameters #### Request Body - **s** (str) - Required - The STEP-file content as a unicode string. ### Response #### Success Response (StepFile) Returns a `StepFile` object representing the content of the STEP-file. ``` -------------------------------- ### steputils.p21.simple_instance Source: https://github.com/mozman/steputils/blob/master/docs/source/p21.md Factory function to create a new SimpleEntityInstance object, automatically creating the underlying Entity object. ```APIDOC ## steputils.p21.simple_instance ### Description Factory function to create a new [`SimpleEntityInstance`](#steputils.p21.SimpleEntityInstance) object. This method automatically creates the [`Entity`](#steputils.p21.Entity) object. ### Method simple_instance ### Parameters #### Request Body - **ref** (str or Reference) - Required - The instance reference. - **name** (str or Keyword) - Required - The entity name. - **params** (tuple, list, or ParameterList) - Required - The entity parameters. ``` -------------------------------- ### Create a new entity instance Source: https://github.com/mozman/steputils/blob/master/TODO.md Creates a new entity instance within the model, such as 'IfcRoot'. Requires a unique identifier and can accept additional arguments. ```python entity = ifc4.entity('IfcRoot', IfcGloballyUniqueId=guid()) ``` -------------------------------- ### steputils.p21.load Source: https://github.com/mozman/steputils/blob/master/docs/source/p21.md Loads a STEP-file (ISO 10303-21:2002) from a text stream. It handles special character encoding and supports reading files as 'ascii'. ```APIDOC ## steputils.p21.load ### Description Loads a STEP-file (ISO 10303-21:2002) from a text stream. Special encoding for characters greater than 126 is applied, and reading as 'ascii' is generally sufficient. ### Method load ### Parameters #### Request Body - **fp** (TextIO) - Required - The STEP-file content as a text stream yielding unicode strings. ### Response #### Success Response (StepFile) Returns a `StepFile` object representing the content of the STEP-file. ### Notes ISO 10303-21:2016 files are not supported. UTF-8 encoding can be used for older STEP-files as code points less than 127 are compatible with 'ISO-8859-1' or default 'ascii'. ``` -------------------------------- ### steputils.p21.binary Source: https://github.com/mozman/steputils/blob/master/docs/source/p21.md Factory function to create a new Binary object. This is primarily for export, with 'unset' specifying the uppermost unset bits. ```APIDOC ## steputils.p21.binary ### Description Factory function to create a new [`Binary`](#steputils.p21.Binary) object. Only for export used, unset specifies the uppermost unset bits. ``` -------------------------------- ### steputils.p21.readfile Source: https://github.com/mozman/steputils/blob/master/docs/source/p21.md Reads a STEP-file (ISO 10303-21:2002) from the file system. It handles potential IOErrors and ParseErrors for invalid or unsupported STEP-file formats. ```APIDOC ## steputils.p21.readfile ### Description Reads a STEP-file (ISO 10303-21:2002) from the file system. ### Method readfile ### Parameters #### Path Parameters - **filename** (str) - Required - The path to the STEP-file to read. ### Response #### Success Response (StepFile) Returns a `StepFile` object representing the content of the STEP-file. #### Error Response - **IOError**: If there is an issue reading the file. - **p21.ParseError**: If the file is not a valid STEP-file or uses an unsupported version. ``` -------------------------------- ### __getitem__ Source: https://github.com/mozman/steputils/blob/master/docs/source/p21.md Retrieves an EntityInstance by its reference name. It searches across all available data sections if multiple exist. ```APIDOC ## __getitem__(ref: Reference) ### Description Returns `EntityInstance` by instance name ref. Searches all data sections if more than one exist. ### Parameters * **ref** (Reference) - Required - entity instance name as string e.g. `'#100'` ### Raises **KeyError** – instance id not found ``` -------------------------------- ### __str__ Source: https://github.com/mozman/steputils/blob/master/docs/source/p21.md Serializes the data to a STEP-file (ISO 10303-21) formatted string, applying special encoding for characters greater than 126. ```APIDOC ## __str__() ### Description Serialize to a STEP-file (ISO 10303-21) formatted `str`. Special encoding for characters > 126 into characters < 127 as unicode compatible characters according to ISO 10303-21 standard will be applied. ### Returns str ``` -------------------------------- ### DataSection Methods Source: https://github.com/mozman/steputils/blob/master/docs/source/p21.md Provides an overview of the methods available for interacting with a DataSection, including accessing instances, parameters, and references. ```APIDOC ## DataSection Class ### Description Represents a section of application data in a STEP-21 file. It holds entity instances and associated parameters. ### Methods #### `__getitem__(ref: str) -> EntityInstance` Returns an entity instance by its reference string. Raises `KeyError` if the instance is not found. #### `__iter__() -> Iterable[EntityInstance]` Returns an iterable of all entity instances within this data section. #### `get(ref: str) -> EntityInstance | None` Returns an entity instance by its reference string, or `None` if not found. #### `__len__() -> int` Returns the total number of entity instances in this data section. #### `references() -> Iterable[str]` Returns an iterable of all entity instance reference names (e.g., '#100') in this data section. #### `parameter` Attribute that holds parameters associated with this data section. #### `instances` Ordered dictionary of all entity instances in this data section. Keys are instance names (e.g., `'#100'`), and values are `EntityInstance` objects. ``` -------------------------------- ### add Source: https://github.com/mozman/steputils/blob/master/docs/source/p21.md Appends a new entity instance to the collection. If an instance with the same name already exists, it will be replaced. ```APIDOC ## add ### Description Appends a new entity instance. Replaces existing instances with the same instance name if already exists. ### Method `add` ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body * **instance** (EntityInstance) - Required - The entity instance to append. ### Request Example ```json { "example": "instance: EntityInstance" } ``` ### Response #### Success Response (200) None #### Response Example None ``` -------------------------------- ### steputils.p21.simple_entity_instance Source: https://github.com/mozman/steputils/blob/master/docs/source/p21.md Factory function to create a new SimpleEntityInstance object using a provided Entity object. ```APIDOC ## steputils.p21.simple_entity_instance ### Description Factory function to create a new [`SimpleEntityInstance`](#steputils.p21.SimpleEntityInstance) object using a provided [`Entity`](#steputils.p21.Entity) object. ### Method simple_entity_instance ### Parameters #### Request Body - **ref** (str or Reference) - Required - The instance reference. - **entity** (Entity) - Required - The entity object. ``` -------------------------------- ### Adding Header Entries Source: https://github.com/mozman/steputils/blob/master/docs/source/p21.md Add or replace an entry in the header. The entity must be of type Entity. ```python header.add(entity) ``` -------------------------------- ### steputils.p21.timestamp Source: https://github.com/mozman/steputils/blob/master/docs/source/p21.md Factory function that returns an ISO formatted UTC timestamp. ```APIDOC ## steputils.p21.timestamp ### Description Factory function returns an ISO formatted UTC timestamp. ``` -------------------------------- ### steputils.p21.entity Source: https://github.com/mozman/steputils/blob/master/docs/source/p21.md Factory function to create a new Entity object. It takes an entity name and its parameters. ```APIDOC ## steputils.p21.entity ### Description Factory function to create a new [`Entity`](#steputils.p21.Entity) object. ### Parameters * **name** – entity name as str or [`Keyword`](#steputils.p21.Keyword) object * **params** – entity parameters as `tuple`, `list` or [`ParameterList`](#steputils.p21.ParameterList) ``` -------------------------------- ### Find All Matching Child Elements Source: https://github.com/mozman/steputils/blob/master/TODO.md Use `findall` to retrieve all child elements that match the specified tag name. ```python root.findall('spam') # finds all matching child elements named spam ``` -------------------------------- ### Accessing Data Section Instances Source: https://github.com/mozman/steputils/blob/master/docs/source/p21.md Retrieve an entity instance from a data section using its reference string (e.g., '#100'). Raises KeyError if not found. ```python data_section.__getitem__('#100') ``` -------------------------------- ### Accessing Header Entries Source: https://github.com/mozman/steputils/blob/master/docs/source/p21.md Retrieve a header entry by its name. Returns None if the entry is not found. ```python header.get('FILE_DESCRIPTION') ``` -------------------------------- ### __len__ Source: https://github.com/mozman/steputils/blob/master/docs/source/p21.md Returns the total count of all stored entity instances. ```APIDOC ## __len__() ### Description Returns count of all stored entity instances. ### Returns int ``` -------------------------------- ### Find First Matching Child Element Source: https://github.com/mozman/steputils/blob/master/TODO.md Use `find` to retrieve the first child element that matches the specified tag name. ```python root.find('spam') # find first matching child element named spam ``` -------------------------------- ### __iter__ Source: https://github.com/mozman/steputils/blob/master/docs/source/p21.md Returns an iterable of all instance entities across all data sections. ```APIDOC ## __iter__() ### Description Returns iterable of all instance entities of all data sections. ### Returns Iterable[EntityInstance] ``` -------------------------------- ### new_data_section Source: https://github.com/mozman/steputils/blob/master/docs/source/p21.md Creates and appends a new DataSection to the existing data sections. The schema name must be present in the file_schema entry of the header. ```APIDOC ## new_data_section(params: Iterable = None) ### Description Create a new [`DataSection`](#steputils.p21.DataSection) and append to existing data sections. The schema name must appear in the header section file_schema entry. ### Parameters * **name** (str) - Optional - name of data section * **schema** (str) - Optional - schema of data section ### Returns [DataSection](#steputils.p21.DataSection) ``` -------------------------------- ### Iterating Through Data Section Instances Source: https://github.com/mozman/steputils/blob/master/docs/source/p21.md Obtain an iterable of all entity instances within a data section. ```python for instance in data_section: pass ``` -------------------------------- ### steputils.p21.complex_entity_instance Source: https://github.com/mozman/steputils/blob/master/docs/source/p21.md Factory function to create a new ComplexEntityInstance object. It takes an instance reference and a list of Entity objects. ```APIDOC ## steputils.p21.complex_entity_instance ### Description Factory function to create a new [`ComplexEntityInstance`](#steputils.p21.ComplexEntityInstance) object. ### Parameters * **ref** – instance reference as `str` or [`Reference`](#steputils.p21.Reference) object. * **entities** – list of [`Entity`](#steputils.p21.Entity) objects. ``` -------------------------------- ### append Source: https://github.com/mozman/steputils/blob/master/docs/source/p21.md Appends a new data section to the existing data. ```APIDOC ## append(data: DataSection) ### Description Append new data section data. ### Parameters * **data** (DataSection) - Required - data section ``` -------------------------------- ### steputils.p21.enum Source: https://github.com/mozman/steputils/blob/master/docs/source/p21.md Factory function to create a new Enumeration object. Enumerations are enclosed in '.' and contain only uppercase letters and digits. ```APIDOC ## steputils.p21.enum ### Description Factory function to create a new [`Enumeration`](#steputils.p21.Enumeration) object. An enumeration is surrounded `'.'` and only uppercase letters and digits are allowed e.g. `'.TRUE.'` or `'.FALSE.'`. ``` -------------------------------- ### steputils.p21.typed_parameter Source: https://github.com/mozman/steputils/blob/master/docs/source/p21.md Factory function to create a new TypedParameter object. It requires a type name and the parameter value. ```APIDOC ## steputils.p21.typed_parameter ### Description Factory function to create a new [`TypedParameter`](#steputils.p21.TypedParameter) object. ### Parameters * **type_name** – type name as `str` or [`Keyword`](#steputils.p21.Keyword) object. * **param** – typed parameter ``` -------------------------------- ### steputils.p21.is_binary Source: https://github.com/mozman/steputils/blob/master/docs/source/p21.md Type checker function that returns True if the input is a Binary object. ```APIDOC ## steputils.p21.is_binary ### Description Returns `True` if e is a [`Binary`](#steputils.p21.Binary). ``` -------------------------------- ### steputils.p21.is_simple_entity_instance Source: https://github.com/mozman/steputils/blob/master/docs/source/p21.md Type checker function that returns True if the input is a SimpleEntityInstance object. ```APIDOC ## steputils.p21.is_simple_entity_instance ### Description Returns `True` if e is a [`SimpleEntityInstance`](#steputils.p21.SimpleEntityInstance). ``` -------------------------------- ### Iterate over child nodes Source: https://github.com/mozman/steputils/blob/master/TODO.md Provides a way to loop through all child nodes of a given parent node in the DOM. ```python for entity in root: pass ``` -------------------------------- ### steputils.p21.is_reference Source: https://github.com/mozman/steputils/blob/master/docs/source/p21.md Type checker function that returns True if the input is an EntityInstanceName. ```APIDOC ## steputils.p21.is_reference ### Description Returns `True` if e is an `EntityInstanceName`. ``` -------------------------------- ### steputils.p21.is_string Source: https://github.com/mozman/steputils/blob/master/docs/source/p21.md Type checker function that returns True if the input is a string. ```APIDOC ## steputils.p21.is_string ### Description Returns `True` if e is a `str`. ``` -------------------------------- ### Insert a child node at a specific index Source: https://github.com/mozman/steputils/blob/master/TODO.md Inserts a new entity node as a child to a specified parent node at a given index in the DOM. ```python root.insert(index, entity) ``` -------------------------------- ### __delitem__ Source: https://github.com/mozman/steputils/blob/master/docs/source/p21.md Deletes an entity instance from all data sections using its reference name. ```APIDOC ## __delitem__(ref: Reference) ### Description Deletes entity instance by instance name ref from all data sections. ### Parameters * **ref** (Reference) - Required - entity instance name as string e.g. `'#100'` ### Raises **KeyError** – instance ref not found ``` -------------------------------- ### Add multiple child nodes to a parent Source: https://github.com/mozman/steputils/blob/master/TODO.md Appends multiple new entity nodes as children to a specified parent node in the DOM. ```python root.extend([entity, entity2, ...]) ``` -------------------------------- ### steputils.p21.is_keyword Source: https://github.com/mozman/steputils/blob/master/docs/source/p21.md Type checker function that returns True if the input is a Keyword object. ```APIDOC ## steputils.p21.is_keyword ### Description Returns `True` if e is a [`Keyword`](#steputils.p21.Keyword). ``` -------------------------------- ### has_reference Source: https://github.com/mozman/steputils/blob/master/docs/source/p21.md Checks if a given reference exists in any of the data sections. ```APIDOC ## has_reference(ref: str) ### Description Returns True if reference ref exist in any data section. ### Parameters * **ref** (str) - Required - The reference to check. ### Returns bool ``` -------------------------------- ### steputils.p21.unset_parameter Source: https://github.com/mozman/steputils/blob/master/docs/source/p21.md Factory function to create a new UnsetParameter object. Unset attribute values are represented by '$', and explicit attributes re-declared as derived in a subtype are encoded as '*'. ```APIDOC ## steputils.p21.unset_parameter ### Description Factory function to create a new [`UnsetParameter`](#steputils.p21.UnsetParameter) object. Unset attribute values are given as `'$'`. Explicit attributes which got re-declared as derived in a subtype are encoded as `'*'` in the position of the supertype attribute. ``` -------------------------------- ### steputils.p21.is_integer Source: https://github.com/mozman/steputils/blob/master/docs/source/p21.md Type checker function that returns True if the input is an integer. ```APIDOC ## steputils.p21.is_integer ### Description Returns `True` if e is an `int`. ``` -------------------------------- ### steputils.p21.is_real Source: https://github.com/mozman/steputils/blob/master/docs/source/p21.md Type checker function that returns True if the input is a float. ```APIDOC ## steputils.p21.is_real ### Description Returns `True` if e is a `float`. ``` -------------------------------- ### steputils.p21.is_parameter_list Source: https://github.com/mozman/steputils/blob/master/docs/source/p21.md Type checker function that returns True if the input is a ParameterList object. A single parameter is indicated if it's not a ParameterList. ```APIDOC ## steputils.p21.is_parameter_list ### Description Returns `True` if e is a [`ParameterList`](#steputils.p21.ParameterList). Note: It is a single parameter if it’s not a [`ParameterList`](#steputils.p21.ParameterList) ``` -------------------------------- ### steputils.p21.is_unset_parameter Source: https://github.com/mozman/steputils/blob/master/docs/source/p21.md Type checker function that returns True if the input is an unset or omitted parameter. ```APIDOC ## steputils.p21.is_unset_parameter ### Description Returns `True` if e is an unset or omitted parameter ([`UnsetParameter`](#steputils.p21.UnsetParameter)). ``` -------------------------------- ### Add a single child node to a parent Source: https://github.com/mozman/steputils/blob/master/TODO.md Appends a single new entity node as a child to a specified parent node in the DOM. ```python root.append(entity) ``` -------------------------------- ### steputils.p21.is_complex_entity_instance Source: https://github.com/mozman/steputils/blob/master/docs/source/p21.md Type checker function that returns True if the input is a ComplexEntityInstance object. ```APIDOC ## steputils.p21.is_complex_entity_instance ### Description Returns `True` if e is a [`ComplexEntityInstance`](#steputils.p21.ComplexEntityInstance). ``` -------------------------------- ### steputils.p21.is_entity Source: https://github.com/mozman/steputils/blob/master/docs/source/p21.md Type checker function that returns True if the input is an Entity object. ```APIDOC ## steputils.p21.is_entity ### Description Returns `True` if e is a [`Entity`](#steputils.p21.Entity). ``` -------------------------------- ### steputils.p21.is_typed_parameter Source: https://github.com/mozman/steputils/blob/master/docs/source/p21.md Type checker function that returns True if the input is a TypedParameter object. ```APIDOC ## steputils.p21.is_typed_parameter ### Description Returns `True` if e is a [`TypedParameter`](#steputils.p21.TypedParameter). ``` -------------------------------- ### steputils.p21.is_enum Source: https://github.com/mozman/steputils/blob/master/docs/source/p21.md Type checker function that returns True if the input is an Enumeration object. ```APIDOC ## steputils.p21.is_enum ### Description Returns `True` if e is an [`Enumeration`](#steputils.p21.Enumeration). ``` -------------------------------- ### Remove a child node from a parent Source: https://github.com/mozman/steputils/blob/master/TODO.md Removes a specified child node from its parent node in the DOM. ```python root.remove(entity) ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.