Releases: Woyken/py-huckleberry-api
Releases · Woyken/py-huckleberry-api
v0.4.0
What's New
Features
- Backfill historical entries — New explicit-timestamp APIs let you log completed past events for sleep, nursing, bottle, solids, diaper, potty, and growth tracking. (#11)
- Activity tracking — Added
log_activity(),list_activity_intervals(), and realtime activity listeners. (#12)
Breaking Changes
- Interval range query APIs (
list_*_intervals) now acceptdatetimeobjects instead of raw Unix-timestamp integers.
v0.3.0
v0.2.3
v0.2.2
v0.2.1
Patch release focused on Firebase summary-map cleanup handling.
Bugfixes
- Allow empty Firebase
prefs.last*summary maps to validate after a child's sleep, feeding, or diaper history has been cleared.
Packaging
- Bump the published package version to
0.2.1. - Regenerate
CHANGELOG.mdfrom the Towncrier fragment for this release.
v0.2.0
This release introduces a stricter and cleaner API surface for Huckleberry data access.
Breaking changes:
- The client now requires an injected aiohttp web session.
- The separate solids interval API path has been removed.
- Firebase models are now strict, which may reject payload shapes that were previously accepted.
Highlights:
- Added HuckleberryAPI.log_potty() for potty events stored in the shared diaper tracker.
- Migrated the client to strict Firebase schema models.
- Potty changes continue to be observed through the existing diaper listener.
v0.1.19
Added
- NEW API METHOD:
log_bottle_feeding()for logging bottle feedings as instant events. - Supports bottle types: "Breast Milk", "Formula", and "Mixed".
- Records amount and units (
mloroz). - Creates interval documents in
feed/{child_uid}/intervalswithmode="bottle". - Updates
prefs.lastBottleand document-level bottle preferences. - Added bottle-specific type definitions:
BottleType,VolumeUnits,LastBottleData,FirebaseBottleInterval. - Refactored feed interval typing into union types for breast/bottle/solids entries.
- Added bottle feeding integration tests and updated data structure docs.
Fixed
- Calendar compatibility:
get_feed_intervals()now preserves bottle metadata fields. - Passes through
mode,type,bottleType,amount,units,bottleAmount, andbottleUnits. - Prevents bottle entries from being misclassified downstream as zero-duration breastfeeding events.
v0.1.18
Added
- TIMEZONE SUPPORT: Custom timezone support for API operations
- HuckleberryAPI now accepts \ imezone\ parameter (e.g., \Europe/London)
- Added \ zdata>=2024.1\ dependency for cross-platform timezone support
Fixed
- MULTIPLE CHILDREN: Use \childList\ instead of \lastChild\ for retrieving children
- Fixes issue where only the last active child was returned
- Now properly returns all children associated with the account
v0.1.17 - Metadata Fix (Complete)
Fixed
Metadata
- CORRECTED: PyPI project URLs now point to correct repository
- Homepage, Repository, and Issues URLs fixed from \huckleberry-homeassistant\ to \py-huckleberry-api\
- Package metadata on PyPI will now show correct links to source code and issue tracker
Note
This is a re-release of v0.1.16 with all commits properly included in the release tag.
v0.1.16 - Metadata Fix
Fixed
Metadata
- CORRECTED: PyPI project URLs now point to correct repository
- Homepage, Repository, and Issues URLs fixed from \huckleberry-homeassistant\ to \py-huckleberry-api\
- Package metadata on PyPI will now show correct links to source code and issue tracker