{"repo":"hedgertronic/whoop","free":true,"listed":false,"github":"https://github.com/hedgertronic/whoop","clone":"git clone https://github.com/hedgertronic/whoop.git","description":"Python client for the WHOOP API v2 with OAuth2 support.","language":"Python","stars":100,"topics":["python","whoop","whoop-api","whoop-strap","api-client","health-data","oauth2","wearable"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"WHOOP for Python Python client for the WHOOP API v2 with OAuth2 support. WHOOP is a wearable strap for monitoring sleep, activity, and workouts. Learn more about WHOOP at https://www.whoop.com. WHOOP API documentation can be found at https://developer.whoop.com/api. Contents - Installation - Getting Started - Migration From Pre-1.0 - API Requests - Get Activity Mapping - Get Profile - Get Body Measurement - Get Cycle By ID - Get Cycle Collection - Get Recovery For Cycle - Get Sleep For Cycle - Get Recovery Collection - Get Sleep By ID - Get Sleep Collection - Get Sleep Stream - Get Workout By ID - Get Workout Collection - Usage With DataFrame Installation The whoop module can be installed via pip: pip install whoop Getting Started This client uses WHOOP's official OAuth2 authorization-code flow against the WHOOP v2 API. Register an app Before you can authenticate, you must register an application in the WHOOP Developer Dashboard. Registration gives you a client id and client secret , and lets you register one or more redirect URIs. The redirect URI must use an https:// or whoop:// scheme — plain http://localhost is not accepted. A value like https://localhost:8080/whoop/callback works for local development. It is best practice to store these values in a .env file: You can use python-dotenv to load the environment variables for use in code: Authorize a new client Constructing a WhoopClient does not make any network requests. To authorize a brand-new client, build the authoriza","default_branch":null,"files":null,"tree":[],"storefront":"/r/hedgertronic","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/hedgertronic/whoop/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}