deployment_api module

DeploymentApi

class edgeimpulse_api.api.deployment_api.DeploymentApi(
		api_client=None
)

Parameters

  • api_client=None

Methods

download_build

edgeimpulse_api.api.deployment_api.download_build(
		self,
		project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})],
		type: Annotated[pydantic.types.StrictStr, FieldInfo(default=Ellipsis, description='The name of the built target. You can find this by listing all deployment targets through `listDeploymentTargetsForProject` (via `GET /v1/api/{projectId}/deployment/targets`) and see the `format` type.', extra={})],
		model_type: Annotated[Optional[edgeimpulse_api.models.keras_model_type_enum.KerasModelTypeEnum], FieldInfo(default=PydanticUndefined, description='Optional model type of the build (if not, it uses the settings in the Keras block)', extra={})] = None,
		engine: Annotated[Optional[edgeimpulse_api.models.deployment_target_engine.DeploymentTargetEngine], FieldInfo(default=PydanticUndefined, description='Optional engine for the build (if not, it uses the default engine for the deployment target)', extra={})] = None,
		impulse_id: Annotated[Optional[pydantic.types.StrictInt], FieldInfo(default=PydanticUndefined, description='Impulse ID. If this is unset then the default impulse is used.', extra={})] = None,
		**kwargs
)> str

Download

Download the build artefacts for a project

Parameters

  • self

  • project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})]

  • type: Annotated[pydantic.types.StrictStr, FieldInfo(default=Ellipsis, description='The name of the built target. You can find this by listing all deployment targets through listDeploymentTargetsForProject (via GET /v1/api/{projectId}/deployment/targets) and see the format type.', extra={})]

  • model_type: Annotated[Optional[edgeimpulse_api.models.keras_model_type_enum.KerasModelTypeEnum], FieldInfo(default=PydanticUndefined, description='Optional model type of the build (if not, it uses the settings in the Keras block)', extra={})] = None

  • engine: Annotated[Optional[edgeimpulse_api.models.deployment_target_engine.DeploymentTargetEngine], FieldInfo(default=PydanticUndefined, description='Optional engine for the build (if not, it uses the default engine for the deployment target)', extra={})] = None

  • impulse_id: Annotated[Optional[pydantic.types.StrictInt], FieldInfo(default=PydanticUndefined, description='Impulse ID. If this is unset then the default impulse is used.', extra={})] = None

  • **kwargs

Return

str

find_syntiant_posterior

edgeimpulse_api.api.deployment_api.find_syntiant_posterior(
		self,
		project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})],
		target_words: List[pydantic.types.StrictStr],
		reference_set: pydantic.types.StrictStr,
		impulse_id: Annotated[Optional[pydantic.types.StrictInt], FieldInfo(default=PydanticUndefined, description='Impulse ID. If this is unset then the default impulse is used.', extra={})] = None,
		wav_file: Optional[pydantic.types.StrictStr] = None,
		meta_csv_file: Optional[pydantic.types.StrictStr] = None,
		deployment_target: Optional[pydantic.types.StrictStr] = None,
		**kwargs
)> edgeimpulse_api.models.start_job_response.StartJobResponse

Find Syntiant posterior parameters

Automatically find the current posterior parameters for the Syntiant deployment target

Parameters

  • self

  • project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})]

  • target_words: List[pydantic.types.StrictStr]

  • reference_set: pydantic.types.StrictStr

  • impulse_id: Annotated[Optional[pydantic.types.StrictInt], FieldInfo(default=PydanticUndefined, description='Impulse ID. If this is unset then the default impulse is used.', extra={})] = None

  • wav_file: Optional[pydantic.types.StrictStr] = None

  • meta_csv_file: Optional[pydantic.types.StrictStr] = None

  • deployment_target: Optional[pydantic.types.StrictStr] = None

  • **kwargs

Return

edgeimpulse_api.models.start_job_response.StartJobResponse

get_deployment

edgeimpulse_api.api.deployment_api.get_deployment(
		self,
		project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})],
		type: Annotated[pydantic.types.StrictStr, FieldInfo(default=Ellipsis, description='The name of the built target. You can find this by listing all deployment targets through `listDeploymentTargetsForProject` (via `GET /v1/api/{projectId}/deployment/targets`) and see the `format` type.', extra={})],
		model_type: Annotated[Optional[edgeimpulse_api.models.keras_model_type_enum.KerasModelTypeEnum], FieldInfo(default=PydanticUndefined, description='Optional model type of the build (if not, it uses the settings in the Keras block)', extra={})] = None,
		engine: Annotated[Optional[edgeimpulse_api.models.deployment_target_engine.DeploymentTargetEngine], FieldInfo(default=PydanticUndefined, description='Optional engine for the build (if not, it uses the default engine for the deployment target)', extra={})] = None,
		impulse_id: Annotated[Optional[pydantic.types.StrictInt], FieldInfo(default=PydanticUndefined, description='Impulse ID. If this is unset then the default impulse is used.', extra={})] = None,
		**kwargs
)> edgeimpulse_api.models.get_deployment_response.GetDeploymentResponse

Get deployment info

Gives information on whether a deployment was already built for a type

Parameters

  • self

  • project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})]

  • type: Annotated[pydantic.types.StrictStr, FieldInfo(default=Ellipsis, description='The name of the built target. You can find this by listing all deployment targets through listDeploymentTargetsForProject (via GET /v1/api/{projectId}/deployment/targets) and see the format type.', extra={})]

  • model_type: Annotated[Optional[edgeimpulse_api.models.keras_model_type_enum.KerasModelTypeEnum], FieldInfo(default=PydanticUndefined, description='Optional model type of the build (if not, it uses the settings in the Keras block)', extra={})] = None

  • engine: Annotated[Optional[edgeimpulse_api.models.deployment_target_engine.DeploymentTargetEngine], FieldInfo(default=PydanticUndefined, description='Optional engine for the build (if not, it uses the default engine for the deployment target)', extra={})] = None

  • impulse_id: Annotated[Optional[pydantic.types.StrictInt], FieldInfo(default=PydanticUndefined, description='Impulse ID. If this is unset then the default impulse is used.', extra={})] = None

  • **kwargs

Return

edgeimpulse_api.models.get_deployment_response.GetDeploymentResponse

get_evaluate_job_result

edgeimpulse_api.api.deployment_api.get_evaluate_job_result(
		self,
		project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})],
		impulse_id: Annotated[Optional[pydantic.types.StrictInt], FieldInfo(default=PydanticUndefined, description='Impulse ID. If this is unset then the default impulse is used.', extra={})] = None,
		**kwargs
)> edgeimpulse_api.models.evaluate_job_response.EvaluateJobResponse

Evaluate job result

Get evaluate job result, containing detailed performance statistics for every possible variant of the impulse.

Parameters

  • self

  • project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})]

  • impulse_id: Annotated[Optional[pydantic.types.StrictInt], FieldInfo(default=PydanticUndefined, description='Impulse ID. If this is unset then the default impulse is used.', extra={})] = None

  • **kwargs

Return

edgeimpulse_api.models.evaluate_job_response.EvaluateJobResponse

get_evaluate_job_result_cache

edgeimpulse_api.api.deployment_api.get_evaluate_job_result_cache(
		self,
		project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})],
		impulse_id: Annotated[Optional[pydantic.types.StrictInt], FieldInfo(default=PydanticUndefined, description='Impulse ID. If this is unset then the default impulse is used.', extra={})] = None,
		**kwargs
)> edgeimpulse_api.models.evaluate_job_response.EvaluateJobResponse

Check evaluate job result (cache)

Get evaluate job result, containing detailed performance statistics for every possible variant of the impulse. This only checks cache, and throws an error if there is no data in cache.

Parameters

  • self

  • project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})]

  • impulse_id: Annotated[Optional[pydantic.types.StrictInt], FieldInfo(default=PydanticUndefined, description='Impulse ID. If this is unset then the default impulse is used.', extra={})] = None

  • **kwargs

Return

edgeimpulse_api.models.evaluate_job_response.EvaluateJobResponse

get_last_deployment_build

edgeimpulse_api.api.deployment_api.get_last_deployment_build(
		self,
		project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})],
		impulse_id: Annotated[Optional[pydantic.types.StrictInt], FieldInfo(default=PydanticUndefined, description='Impulse ID. If this is unset then the default impulse is used.', extra={})] = None,
		**kwargs
)> edgeimpulse_api.models.get_last_deployment_build_response.GetLastDeploymentBuildResponse

Get information on the last deployment build

Get information on the result of the last successful deployment job, including info on the build e.g. whether it is still valid.

Parameters

  • self

  • project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})]

  • impulse_id: Annotated[Optional[pydantic.types.StrictInt], FieldInfo(default=PydanticUndefined, description='Impulse ID. If this is unset then the default impulse is used.', extra={})] = None

  • **kwargs

Return

edgeimpulse_api.models.get_last_deployment_build_response.GetLastDeploymentBuildResponse

get_syntiant_posterior

edgeimpulse_api.api.deployment_api.get_syntiant_posterior(
		self,
		project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})],
		impulse_id: Annotated[Optional[pydantic.types.StrictInt], FieldInfo(default=PydanticUndefined, description='Impulse ID. If this is unset then the default impulse is used.', extra={})] = None,
		**kwargs
)> edgeimpulse_api.models.get_syntiant_posterior_response.GetSyntiantPosteriorResponse

Get Syntiant posterior parameters

Get the current posterior parameters for the Syntiant deployment target

Parameters

  • self

  • project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})]

  • impulse_id: Annotated[Optional[pydantic.types.StrictInt], FieldInfo(default=PydanticUndefined, description='Impulse ID. If this is unset then the default impulse is used.', extra={})] = None

  • **kwargs

Return

edgeimpulse_api.models.get_syntiant_posterior_response.GetSyntiantPosteriorResponse

list_all_deployment_targets

edgeimpulse_api.api.deployment_api.list_all_deployment_targets(
		self,
		**kwargs
)> edgeimpulse_api.models.deployment_targets_response.DeploymentTargetsResponse

Deployment targets

List all deployment targets

Parameters

  • self

  • **kwargs

Return

edgeimpulse_api.models.deployment_targets_response.DeploymentTargetsResponse

list_deployment_targets_for_project

edgeimpulse_api.api.deployment_api.list_deployment_targets_for_project(
		self,
		project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})],
		impulse_id: Annotated[Optional[pydantic.types.StrictInt], FieldInfo(default=PydanticUndefined, description='Impulse ID. If this is unset then the default impulse is used.', extra={})] = None,
		**kwargs
)> edgeimpulse_api.models.project_deployment_targets_response.ProjectDeploymentTargetsResponse

Deployment targets

List deployment targets for a project

Parameters

  • self

  • project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})]

  • impulse_id: Annotated[Optional[pydantic.types.StrictInt], FieldInfo(default=PydanticUndefined, description='Impulse ID. If this is unset then the default impulse is used.', extra={})] = None

  • **kwargs

Return

edgeimpulse_api.models.project_deployment_targets_response.ProjectDeploymentTargetsResponse

list_deployment_targets_for_project_data_sources

edgeimpulse_api.api.deployment_api.list_deployment_targets_for_project_data_sources(
		self,
		project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})],
		impulse_id: Annotated[Optional[pydantic.types.StrictInt], FieldInfo(default=PydanticUndefined, description='Impulse ID. If this is unset then the default impulse is used.', extra={})] = None,
		**kwargs
)> edgeimpulse_api.models.deployment_targets_response.DeploymentTargetsResponse

Deployment targets (data sources)

List deployment targets for a project from data sources page (it shows some things like all Linux deploys, and hides 'fake' deploy targets like mobile phone / computer)

Parameters

  • self

  • project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})]

  • impulse_id: Annotated[Optional[pydantic.types.StrictInt], FieldInfo(default=PydanticUndefined, description='Impulse ID. If this is unset then the default impulse is used.', extra={})] = None

  • **kwargs

Return

edgeimpulse_api.models.deployment_targets_response.DeploymentTargetsResponse

set_syntiant_posterior

edgeimpulse_api.api.deployment_api.set_syntiant_posterior(
		self,
		project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})],
		set_syntiant_posterior_request: edgeimpulse_api.models.set_syntiant_posterior_request.SetSyntiantPosteriorRequest,
		impulse_id: Annotated[Optional[pydantic.types.StrictInt], FieldInfo(default=PydanticUndefined, description='Impulse ID. If this is unset then the default impulse is used.', extra={})] = None,
		**kwargs
)> edgeimpulse_api.models.generic_api_response.GenericApiResponse

Set Syntiant posterior parameters

Set the current posterior parameters for the Syntiant deployment target

Parameters

  • self

  • project_id: Annotated[pydantic.types.StrictInt, FieldInfo(default=Ellipsis, description='Project ID', extra={})]

  • set_syntiant_posterior_request: edgeimpulse_api.models.set_syntiant_posterior_request.SetSyntiantPosteriorRequest

  • impulse_id: Annotated[Optional[pydantic.types.StrictInt], FieldInfo(default=PydanticUndefined, description='Impulse ID. If this is unset then the default impulse is used.', extra={})] = None

  • **kwargs

Return

edgeimpulse_api.models.generic_api_response.GenericApiResponse

Last updated