tap-getting-started
/tap-getting-started
First skill for any Tap app. The connect order is await connect(), then register_* callbacks, then await sdk.start(), then enable input. connect() alone delivers no taps. Use for install, pairing, "connect to my Tap", setup, or no tap events.
- Author
- tapwithus ↗
- Repository
- tap-python-sdk ↗
- Licence
- MIT
- Last repository change
- 20.10.2026
Assessment and security
- Files in this package
- 2
- Scripts
- 1
- HTML comments
- 0
- URLs in SKILL.md
- 2
No signals detected. Repository changed on 20.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
- 1 scripts in this package. Review them before installing, as Claude may execute them.
Scripts: scripts/quickstart.py
What it does and when to use it
First skill for any Tap app. The connect order is await connect(), then register_* callbacks, then await sdk.start(), then enable input. connect() alone delivers no taps. Use for install, pairing, "connect to my Tap", setup, or no tap events.
Triggers from the description
Original author description
First skill for any Tap app. The connect order is await connect(), then register_* callbacks, then await sdk.start(), then enable input. connect() alone delivers no taps. Use for install, pairing, "connect to my Tap", setup, or no tap events.
How it works
- 1. Ask the user (once)
- 2. Install
- 3. Connect and listen
- 4. Callback shapes differ by class
- 5. Callback rules
- Troubleshooting
- More
SKILL.md preview
---
name: tap-getting-started
description: First skill for any Tap app. The connect order is await connect(), then register_* callbacks, then await sdk.start(), then enable input. connect() alone delivers no taps. Use for install, pairing, "connect to my Tap", setup, or no tap events.
---
# Tap getting started
`connect()` returns `TapSDK` or `TapSDK2` from the firmware. Do not call these "SDK v1" / "SDK v2". Write one path that handles both unless the user names the device.
TapBand uses the same BLE API as TapXR and is coming soon (not for sale yet): https://www.tapwithus.com/tapband-waitlist/
## 1. Ask the user (once)
- Which device: Tap Strap, Tap Strap 2, or TapXR? (TapBand: same API as TapXR, coming soon.)
- Which OS: macOS, Windows, or Linux?
- Is the Tap turned on, charged, and paired in the OS Bluetooth settings?
- Is the firmware up to date (update it in the Tap Manager app)? For TapXR, use the TapXR developer firmware.
## 2. Install
Use a project virtual environment. Python 3.10 or newer.
The PyPI name is `tap-python-sdk`. The import name is `tapsdk`. Do not run `pip install tapsdk`.
```bash
python3 -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install tap-python-sdk
python -c "from tapsdk import connect; print('ok')"
```
Platform notes:
- macOS: the terminal or IDE asks for Bluetooth permission on the first run. Accept it (System Settings > Privacy & Security > Bluetooth).
- Windows 10+: no extra steps.
- Linux: `sudo apt-get install bluez-tools libbluetooth-dev`, then `sudo usermod -G bluetooth -a $USER` and log in again. The device name must start with `Tap`.
## 3. Connect and listen
Copy [scripts/quickstart.py](scripts/quickstart.py) into the project and run it. The required order is:
1. `sdk = await connect()`: attach. Notifications are not running yet.
2. `sdk.register_*(callback)`: register every callback before `start()`.
3. `await sdk.start()`: start notifications.
4. Enable input (after `start()`):
- If `hasattr(sdk, "set_input_mode")`: `await sdk.set_input_mode(InputModeController())`. `TapSDK` boots in Text mode, which types on the OS keyboard and sends **no** tap events to the SDK.
- Otherwise: `set_feature(DeviceFeatures.MODEL_DETECTION, True)`, then `set_vision_sensor_model(ModelTypes.TAPPING)` and `set_vision_sensor_op_mode(VisionSensorOpModes.TRIGGER)` (see the `tap-vision-models` skill).
5. Keep the loop alive: `await asyncio.Event().wait()`.
## 4. Callback shapes differ by class
| Callback | `TapSDK` | `TapSDK2` |
|----------|----------|-----------|
| `register_tap_events` | `cb(identifier, tapcode: int)` | `cb(identifier, [tapcode])` |
| `register_air_gesture_events` | `cb(identifier, gesture: int)` (`AirGestures`) | `cb(identifier, [code])` (`UnifiedAirGestures`) |
| `register_connection_events` | `cb(sdk)` | `cb(serial: bytes)` |
| `register_disconnection_events` | `cb(client)` | `cb(client)` |
| mouse / motion | `register_mouse_events`: `cb(id, vx, vy, proximity)` | `register_imu_motion_data_events`: `cb(id, (dx, dy, is_mouse, [roll, pitch, yaw]))` |
Normalize with:
```python
def first(value):
return value[0] if isinstance(value, (list, tuple)) else value
```
Enable input with `hasattr(sdk, "set_input_mode")`, not a product version name.
## 5. Callback rules
- Callbacks run on the Bluetooth notification path. Keep them short. Do not `await` or block in them.
- To run async work from a callback, use `asyncio.get_running_loop().create_task(...)`, or put the event on an `asyncio.Queue` (see `tap-build-an-app`).
- `send_vibration_sequence([on_ms, off_ms, on_ms, ...])` gives haptic feedback (10-2550 ms per value, up to 18 values).
- `await sdk.get_device_info()` reads the name, firmware, and battery.
## Troubleshooting
| Problem | Fix |
|---------|-----|
| No device found / scan timeout | Turn the Tap on, pair it in OS Bluetooth settings, close Tap Manager and other apps that hold the connection, then retry. |
| Connected but no tap events (`TapSDK`) | Set `InputModeController()` after `start()`. |
| Connected but no tap events (`TapSDK2`) | Enable `MODEL_DETECTION` and set the `TAPPING` model with `TRIGGER` op mode. |
| Letters appear in the editor when tapping | Device is in Text mode. Set Controller mode. |
| `ConnectionError: GATT services not available` | Turn Bluetooth off and on, unpair and pair again. |
| macOS: nothing happens, no error | Grant Bluetooth permission to the terminal / IDE, then restart it. |
| Linux: permission denied | Add the user to the `bluetooth` group and log in again. |
| Events stop after some seconds | Keep the process alive (`asyncio.Event().wait()`); do not exit `main()`. |
Debug logging: `logging.basicConfig(level=logging.INFO); logging.getLogger("tapsdk").setLevel(logging.DEBUG)`.
## More
- Docs: https://tapwithus.github.io/tap-python-sdk/
- Next skills: `tap-tapping`, `tap-vision-models`, `tap-imu-motion`, `tap-raw-sensors`, `tap-knob`, `tap-dpad`, `tap-build-an-app`
Files in this package (2)
- SKILL.md 5 KB
- scripts/quickstart.py 2 KB
Versions
The database has no other skills named tap-getting-started.
Database snapshot: 13.11.2026 · package version 9cdc7ad0afeb (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100tap-android-getting-started
First skill for any Tap Android app. The order is TapSdkFactory.getDefault(context), then registerTapListener, then resume() in onResume and pause() in onPause. getDefault() alone delivers no taps. There is no connect() or start() method. Use for the Gradle dependency, Bluetooth… - 100tapkit-getting-started
First skill for any TAP iOS app. The order is add TAPKit and NSBluetoothAlwaysUsageDescription, pair the Tap in Settings, addDelegate, setDefaultTAPInputMode (and setDefaultTAPXRState for TapXR), then start(). start() alone delivers no taps. Use for adding the SDK, pairing,… - 100tap-android-sdk
API reference for the TAP Android SDK (com.tapwithus.sdk): TapSdk, TapListener, modes, framed-protocol features, haptics. Use when you need a method, callback, or data-type detail. For a new app, use tap-android-getting-started first. Order: TapSdkFactory.getDefault(context),… - 100tap-build-an-app
Build a complete app or interactive experience controlled by a Tap - games, browser pages, presentations, media control, keyboard shortcuts, or creative tools. Use when the user asks to "build", "make", or "create" something with their Tap, especially if they are not a developer. - 100tapkit-build-an-app
Build a complete iOS app or interactive experience controlled by a TAP device. Use when the user asks to build, make, or create something with their Tap, including games, presentations, media control, or creative tools. - 100input
Taps, drags, pinch-zoom, keyboard and camera control in an isometric game. Use for tap to place or select, drag to pan, pinch or wheel to zoom, a placement ghost that follows the pointer, key bindings, "nothing happens when I tap", a tap that hits the wrong thing or the building…