habitipie¶
A typed Python client for Habitify API v2.
habitipie gives you a resource-oriented client for working with Habitify from Python
scripts, automations, dashboards, and internal tools without hand-rolling raw HTTP calls.
Highlights¶
- Resource-style API such as
HabitipyClient(...).habits.list()andHabitipyClient(...).areas.list() - Typed request and response models powered by Pydantic
- Native
httpxtransport with optional client injection - Explicit pagination objects for list endpoints
- Mapped API errors for common HTTP failure cases
Install¶
habitipie supports Python 3.10 through 3.13.
pip install habitipie
Set your Habitify API key:
export HABITIFY_API_KEY="your-api-key"
Quick Start¶
import os
from habitipie import HabitipyClient
with HabitipyClient(api_key=os.environ["HABITIFY_API_KEY"]) as client:
habits = client.habits.list(limit=10)
for habit in habits.data:
print(habit.name)
areas = client.areas.list()
for area in areas:
print(area.name)
Read Next¶
- Getting Started for client patterns and typed results
- Development for local validation and release workflows