PyObjC BusinessChat Framework

12.1 · active · verified Tue Apr 14

The `pyobjc-framework-businesschat` library provides Python wrappers for the macOS BusinessChat framework, enabling Python applications to interact with Apple Business Chat services. It is part of the broader PyObjC project, currently at version 12.1, and typically releases new versions in alignment with major macOS SDK updates.

Warnings

Install

Imports

Quickstart

This example demonstrates how to import a key class from the BusinessChat framework and check if the Business Chat service is supported on the current macOS system. It includes a platform check for safe execution.

import objc
import sys

if sys.platform == 'darwin':
    try:
        from BusinessChat import BCAuthenticationManager
        print(f"BusinessChat framework imported successfully. Class: {BCAuthenticationManager}")
        # Check if Business Chat is supported on the current system
        if BCAuthenticationManager.sharedAuthenticationManager().isSupported():
            print("Business Chat is supported on this macOS system.")
        else:
            print("Business Chat is NOT supported on this macOS system.")
    except ImportError:
        print("BusinessChat framework is not available. Ensure you are on a compatible macOS version.")
    except Exception as e:
        print(f"An unexpected error occurred: {e}")
else:
    print("This quickstart requires macOS to run PyObjC BusinessChat framework.")

view raw JSON →