(self, packages)
return api_packages
Returns a list of python-stix api STIXPackage objects.

        Keyword arguments:
        packages -- a list of STIX_Package etree Element objects
Returns a list of python-stix api STIXPackage objects.
Returns a list of python - stix api STIXPackage objects .
def get_api_packages(self, packages):
        """Returns a list of python-stix api STIXPackage objects.

        Keyword arguments:
        packages -- a list of STIX_Package etree Element objects
        """
        api_packages = []
        for package in packages:
            xml = etree.tostring(package)
            bytesio = BytesIO(xml)
            stix_package = STIXPackage.from_xml(bytesio)
            api_packages.append(stix_package[0])

        return api_packages
def get_api_packages ( self , packages ) : api_packages = [ ] for package in packages : xml = etree . tostring ( package ) bytesio = BytesIO ( xml ) stix_package = STIXPackage . from_xml ( bytesio ) api_packages . append ( stix_package [ 0 ] ) return api_packages