class documentation

class App:

Constructor: App(manifest)

View In Hierarchy

Class for a Picoware application.

Method __del__ Cleanup resources when the App instance is deleted.
Method __init__ Initialize the App from its manifest dictionary.
Method __str__ Return a string representation of the application.
Property authors Return the authors of the application.
Property description Return the description of the application.
Property download_url Return the download URL of the application.
Property file_downloads Return the list of file downloads for the application.
Property file_structure Return the file structure of the application.
Property github_url Return the GitHub URL of the application.
Property icon_url Return the icon URL of the application.
Property id Return the ID of the application.
Property json Return a dictionary/JSON representation of the application.
Property title Return the title of the application.
Property version Return the version of the application.
Instance Variable _authors List of authors of the application.
Instance Variable _description Description of the application.
Instance Variable _download_url URL to download the application.
Instance Variable _file_downloads List of file downloads for the application.
Instance Variable _file_structure List of file paths in the application.
Instance Variable _github_url GitHub URL of the application.
Instance Variable _icon_url URL of the application's icon.
Instance Variable _id Unique identifier of the application.
Instance Variable _title Title of the application.
Instance Variable _version Version of the application.
def __del__(self):

Cleanup resources when the App instance is deleted.

def __init__(self, manifest: dict):

Initialize the App from its manifest dictionary.

Parameters
manifest:dictApp metadata including id, title, version, and authors.
def __str__(self) -> str:

Return a string representation of the application.

Returns
strThe application as "App(id=..., title='...', version='...')".
@property
authors: list[str] =

Return the authors of the application.

@property
description: str =

Return the description of the application.

@property
download_url: str =

Return the download URL of the application.

@property
file_downloads: list[dict] =

Return the list of file downloads for the application.

Each file download is represented as a dictionary with keys:
  • "path": The path of the file within the application. (str)
  • "download_url": The URL to download the file. (str)
  • "file_id": The unique ID of the file. (int)
  • "file_size": The size of the file in bytes. (int)
@property
file_structure: list[str] =

Return the file structure of the application.

@property
github_url: str =

Return the GitHub URL of the application.

@property
icon_url: str =

Return the icon URL of the application.

@property
id: int =

Return the ID of the application.

@property
json: dict =

Return a dictionary/JSON representation of the application.

@property
title: str =

Return the title of the application.

@property
version: str =

Return the version of the application.

_authors: list[str] =

List of authors of the application.

_description: str =

Description of the application.

_download_url: str =

URL to download the application.

_file_downloads: list[dict] =

List of file downloads for the application.

_file_structure: list[str] =

List of file paths in the application.

_github_url: str =

GitHub URL of the application.

_icon_url: str =

URL of the application's icon.

_id: int =

Unique identifier of the application.

_title: str =

Title of the application.

_version: str =

Version of the application.