Use this file to discover all available pages before exploring further.
The TapKitClient is your main entry point for interacting with TapKit. It handles authentication, connection management, and provides access to your phones.
from tapkit import TapKitClient# Initialize with API keyclient = TapKitClient(api_key="your-api-key")# Or use environment variable TAPKIT_API_KEYclient = TapKitClient()
You can execute actions directly on the client when you’ve set a default phone:
client = TapKitClient()# Set a default phoneclient.use_phone("iPhone 15 Pro")# Now call actions directly on clientclient.tap((100, 200))client.home()screenshot = client.screenshot()
This is convenient when working with a single phone throughout your script.