Posts

The Google Health API Got a CLI: ghealth is an Open-Source Tool for Your Fitbit Air Data

The Google Health API is the official successor to the Fitbit Web API. It targets the Google Health API v4 and moves developers onto Google OAuth 2.0. Now an open-source CLI command-line tool called ghealth wraps that API for terminals and AI agents. The tool is a single Go binary under the Apache 2.0 license. It exposes 40 verified data types as structured JSON. That design lets you pipe sleep, heart rate, and step data into an agent’s context. What is ghealth? ghealth is a wrapper over the Google Health API v4. You build it from source with go build -o ghealth . . It ships as one self-contained binary. The tool is explicitly agent-first. Every command returns simplified JSON with a stable shape. It also provides deterministic exit codes, a --dry-run flag, and a --raw flag. The repository ships two Agent Skills as SKILL.md files. One covers auth, setup, and global flags. The other documents all 40 data types, operations, patterns, and gotchas. Agents ins...

CUP (Common Useful Python): Building Reliable Python Workflows with Baidu’s Utility Toolkit

In this tutorial, we explore CUP , Baidu’s Common Useful Python library, as a practical utility toolkit for building stronger Python workflows. We begin by setting up the library in a Colab-friendly environment and then move through its major subsystems step by step, including logging, decorators, nested configuration, caching, ID generation, thread pools, interruptible threads, delayed execution, time utilities, Linux resource monitoring, file locking, networking helpers, object storage interfaces, type maps, and built-in testing assertions. As we progress, we do not just call functions at random; we observe how each module fits into real-world development tasks such as monitoring, automation, concurrency, configuration management, and reliability checks. CUP Setup and Logging Copy Code Copied Use a different Browser import os import sys import time import threading import tempfile import datetime import subprocess def banner(title): line = "=" * 70 print(...

Linq’s iMessage Apps Bring Payments, Tickets, Flights, and Games Into the iMessage Bubble Through the imessage_app Part

Linq developers can now build iMessage Apps . These are interactive mini-apps that run inside a iMessages conversation. A user can shop, play a game, book a flight, or pay. None of it requires leaving the iMessage thread. There is no deep link to an external browser. There is no ‘tap here to finish in the app.’ Previously, an agent’s main API option was to send a link. The user then had to follow it somewhere else. iMessage Apps remove that handoff. TL;DR Linq’s new imessage_app part renders tappable, interactive cards directly inside an iMessage thread. One card handles full workflows: games, payments, tickets, flights, music, and dating. Cards update in place via /messages/{id}/update , so state changes redraw the same bubble. An interactive flag toggles the live experience versus a static caption-only layout card. It’s iMessage-only with no SMS/RCS fallback, and rich rendering needs your app installed. iMessage A...