Module ImportFrom alias Assign NameStore Str ImportFrom alias alias alias alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias alias alias alias ImportFrom alias ImportFrom alias alias identifier ImportFrom alias Assign NameStore ListLoad Str ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr BoolOpOr NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad NameLoad keyword AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr If UnaryOpNot AttributeLoad AttributeLoad NameLoad attr attr body Raise Call NameLoad Str Assign AttributeStore NameLoad attr AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Call AttributeLoad AttributeLoad NameLoad attr attr attr If AttributeLoad AttributeLoad NameLoad attr attr body AugAssignAdd AttributeStore NameLoad attr AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Call AttributeLoad AttributeLoad NameLoad attr attr attr If AttributeLoad AttributeLoad NameLoad attr attr body AugAssignAdd AttributeStore NameLoad attr AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Call AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareLt AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num body Expr Call AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Call NameLoad keyword NameLoad keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword Num keyword Num keyword SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr attr If CompareNotEq NameLoad AttributeLoad NameLoad attr body Raise Call NameLoad Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad keyword Call NameLoad keyword NameLoad NameLoad If CompareNotEq AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad keyword AttributeLoad NameLoad attr Raise Call NameLoad Call AttributeLoad Str attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Num AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr If AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr If AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore SubscriptLoad NameLoad Index Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad keyword Call NameLoad keyword NameLoad NameLoad Assign NameStore AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad keyword Call NameLoad NameLoad attr Assert Call NameLoad NameLoad NameLoad Assign NameStore Num For NameStore AttributeLoad NameLoad attr body Assert Call NameLoad NameLoad NameLoad If CompareEq AttributeLoad NameLoad attr NameLoad body AugAssignAdd NameStore Num If CompareEq NameLoad AttributeLoad NameLoad attr body Raise Call NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad If AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad If AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad keyword Call NameLoad keyword NameLoad keyword NameLoad NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Dict AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body AugAssignAdd AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list
N/A __future__ absolute_import N/A __author__ katharine blobdb BlobDBClient BlobDatabaseID SyncWrapper BlobStatus putbytes PutBytes PutBytesType libpebble2.events.mixin EventSourceMixin libpebble2.exceptions AppInstallError libpebble2.protocol.apps AppMetadata AppRunState AppRunStateStart AppFetchRequest AppFetchResponse AppFetchStatus libpebble2.protocol.legacy2 * libpebble2.services.appmessage AppMessageService Uint8 AMUint8 libpebble2.util.bundle PebbleBundle N/A __all__ N/A AppInstaller AppInstaller N/A EventSourceMixin N/A N/A 
    Installs an app on the Pebble via Pebble Protocol.

    .. note:
       If you use a :class:`BlobDBClient` in use elsewhere, pass it in here. If none is passed it will create one,
       and they will conflict.

    :param pebble: The :class:`PebbleConnection` over which to install the app.
    :type pebble: .PebbleConnection
    :param pbw_path: The path to the PBW file to be installed on the filesystem.
    :type pbw_path: str
    :param blobdb_client: An optional :class:`BlobDBClient` to use, if one already exists. If omitted, one will be
                          created.
    :type blobdb_client: .BlobDBClient
     __init__ N/A N/A self pebble pbw_path blobdb_client N/A None N/A N/A N/A self _pebble pebble N/A N/A self _blobdb N/A blobdb_client N/A BlobDBClient pebble N/A N/A N/A EventSourceMixin __init__ self N/A N/A self total_sent 0 N/A N/A self total_size None N/A N/A N/A self _prepare pbw_path N/A _prepare N/A N/A self pbw_path N/A N/A N/A N/A self _bundle N/A PebbleBundle pbw_path hardware N/A N/A N/A N/A self _pebble watch_info running hardware_platform N/A N/A N/A N/A self _bundle is_app_bundle N/A N/A N/A AppInstallError This is not an app bundle. N/A N/A self total_size N/A N/A N/A N/A N/A self _bundle zip getinfo N/A N/A N/A self _bundle get_app_path file_size N/A N/A N/A self _bundle has_resources N/A N/A N/A self total_size N/A N/A N/A N/A N/A self _bundle zip getinfo N/A N/A N/A self _bundle get_resource_path file_size N/A N/A N/A self _bundle has_worker N/A N/A N/A self total_size N/A N/A N/A N/A N/A self _bundle zip getinfo N/A N/A N/A self _bundle get_worker_path file_size N/A install N/A N/A self N/A N/A N/A 
        Installs an app. Blocks until the installation is complete, or raises :exc:`AppInstallError` if it fails.

        While this method runs, "progress" events will be emitted regularly with the following signature: ::

           (sent_this_interval, sent_total, total_size)
         N/A N/A N/A N/A N/A self _pebble firmware_version major 3 N/A N/A N/A N/A self _install_legacy2 N/A N/A N/A N/A self _install_modern N/A _install_modern N/A N/A self N/A N/A N/A metadata N/A N/A N/A self _bundle get_app_metadata N/A app_uuid N/A metadata N/A uuid N/A blob_packet N/A AppMetadata uuid app_uuid flags N/A metadata N/A flags icon N/A metadata N/A icon_resource_id app_version_major N/A metadata N/A app_version_major app_version_minor N/A metadata N/A app_version_minor sdk_version_major N/A metadata N/A sdk_version_major sdk_version_minor N/A metadata N/A sdk_version_minor app_face_bg_color 0 app_face_template_id 0 app_name N/A metadata N/A app_name N/A result N/A N/A N/A SyncWrapper N/A N/A self _blobdb insert N/A BlobDatabaseID App app_uuid N/A N/A blob_packet serialise wait N/A N/A result N/A BlobStatus Success N/A N/A N/A AppInstallError N/A N/A BlobDB error: {!s} format result N/A app_fetch N/A N/A N/A self _pebble send_and_read N/A AppRunState data N/A AppRunStateStart uuid app_uuid AppFetchRequest N/A N/A N/A app_fetch uuid app_uuid N/A N/A N/A N/A N/A self _pebble send_packet N/A AppFetchResponse response N/A AppFetchStatus InvalidUUID N/A N/A AppInstallError N/A N/A App requested the wrong UUID! Asked for {}; expected {} format N/A app_fetch uuid app_uuid N/A N/A N/A self _broadcast_event progress 0 N/A self total_sent N/A self total_size N/A binary N/A N/A N/A N/A self _bundle zip read N/A N/A N/A self _bundle get_app_path N/A N/A N/A self _send_part N/A PutBytesType Binary binary N/A app_fetch app_id N/A N/A N/A self _bundle has_resources N/A N/A resources N/A N/A N/A N/A self _bundle zip read N/A N/A N/A self _bundle get_resource_path N/A N/A N/A self _send_part N/A PutBytesType Resources resources N/A app_fetch app_id N/A N/A N/A self _bundle has_worker N/A N/A worker N/A N/A N/A N/A self _bundle zip read N/A N/A N/A self _bundle get_worker_path N/A N/A N/A self _send_part N/A PutBytesType Worker worker N/A app_fetch app_id N/A _send_part N/A N/A self type object install_id N/A N/A N/A pb N/A PutBytes N/A self _pebble type object app_install_id install_id N/A N/A N/A pb register_handler progress N/A self _handle_progress N/A N/A N/A pb send N/A _install_legacy2 N/A N/A self N/A N/A N/A metadata N/A N/A N/A self _bundle get_app_metadata N/A app_uuid N/A metadata N/A uuid N/A N/A N/A N/A self _pebble send_and_read N/A LegacyAppInstallRequest data N/A LegacyUpgradeAppUUID uuid app_uuid LegacyAppInstallResponse N/A result N/A N/A N/A N/A self _pebble send_and_read N/A LegacyAppInstallRequest data N/A LegacyBankInfoRequest LegacyAppInstallResponse data N/A N/A isinstance result LegacyBankInfoResponse N/A first_free 0 N/A app N/A result apps N/A N/A N/A isinstance app LegacyBankEntry N/A N/A N/A app bank_number first_free N/A N/A first_free 1 N/A N/A first_free N/A result bank_count N/A N/A N/A AppInstallError No app banks free. N/A binary N/A N/A N/A N/A self _bundle zip read N/A N/A N/A self _bundle get_app_path N/A N/A N/A self _send_part_legacy2 N/A PutBytesType Binary binary first_free N/A N/A N/A self _bundle has_resources N/A N/A resources N/A N/A N/A N/A self _bundle zip read N/A N/A N/A self _bundle get_resource_path N/A N/A N/A self _send_part_legacy2 N/A PutBytesType Resources resources first_free N/A N/A N/A self _bundle has_worker N/A N/A worker N/A N/A N/A N/A self _bundle zip read N/A N/A N/A self _bundle get_worker_path N/A N/A N/A self _send_part_legacy2 N/A PutBytesType Worker worker first_free N/A N/A N/A N/A self _pebble send_and_read N/A LegacyAppInstallRequest data N/A LegacyAppAvailable bank first_free vibrate True LegacyAppInstallResponse N/A appmessage N/A AppMessageService N/A self _pebble message_type LegacyAppLaunchMessage N/A N/A N/A appmessage send_message app_uuid N/A N/A N/A LegacyAppLaunchMessage Keys RunState N/A AMUint8 N/A N/A LegacyAppLaunchMessage States Running N/A N/A N/A appmessage shutdown N/A _send_part_legacy2 N/A N/A self type object bank N/A N/A N/A pb N/A PutBytes N/A self _pebble type object bank bank N/A N/A N/A pb register_handler progress N/A self _handle_progress N/A N/A N/A pb send N/A _handle_progress N/A N/A self sent total_sent total_length N/A N/A N/A N/A self total_sent sent N/A N/A N/A self _broadcast_event progress sent N/A self total_sent N/A self total_size N/A N/A