Project

class pyniryo_nate.models.projects.Project(id: str, name: str, description: str, active: bool, updated_at: datetime, programs: list[Program])[source]

Bases: object

A named group of programs. A program belongs to at most one project, and a program outside any project stays valid. Deleting a project also deletes the programs it contains.

Parameters:
  • id (str) – The unique identifier of the project.

  • name (str) – Unique on the robot. At most 255 bytes, without /, and not . or ...

  • description (str) – Free text shown with the project, empty when none was given.

  • active (bool) – Whether this is the robot’s active project. At most one project is active.

  • updated_at (datetime) – Last change to the project or to a program it contains.

  • programs (list[Program]) – The programs the project contains.

Attributes

Methods

id: str
name: str
description: str
active: bool
updated_at: datetime
programs: list[Program]
classmethod from_transport_model(model: Project) → Project[source]
Parameters:

model (Project)

Return type:

Project