Groups & Statistics¶
Group management, invitations, and aggregate statistics (totals, value over time, per-label and per-location breakdowns).
GroupsClient
¶
Sub-client for group management and statistics endpoints.
Accessed via HomeboxClient.groups.
Source code in homebox/client.py
382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 | |
__init__
¶
get_group
¶
Return the current user's group details.
Returns:
| Name | Type | Description |
|---|---|---|
Group |
Group
|
Group information including name, currency, and timestamps. |
update_group
¶
Update the current group's settings.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
GroupUpdate
|
Fields to update (name and/or currency). |
required |
Returns:
| Name | Type | Description |
|---|---|---|
Group |
Group
|
Updated group information. |
Source code in homebox/client.py
create_group
¶
delete_group
¶
get_all_groups
¶
Return all groups available to the authenticated user.
create_group_invitation
¶
Create an invitation token that allows new users to join the group.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
GroupInvitationCreate
|
Invitation settings including expiry date and maximum number of uses (1–100). |
required |
Returns:
| Name | Type | Description |
|---|---|---|
GroupInvitation |
GroupInvitation
|
The generated invitation token and its metadata. |
Source code in homebox/client.py
get_group_invitations
¶
Return all invitation tokens for the current group.
accept_group_invitation
¶
Accept a group invitation token and join that group.
delete_group_invitation
¶
get_group_members
¶
Return all users in the current group.
add_group_member
¶
remove_group_member
¶
get_group_statistics
¶
Return aggregate statistics for the current group.
Returns:
| Name | Type | Description |
|---|---|---|
GroupStatistics |
GroupStatistics
|
Totals for items, labels, locations, users, warranted items, and total item value. |
Source code in homebox/client.py
get_tag_statistics
¶
Return the total item value grouped by tag.
Source code in homebox/client.py
get_label_statistics
¶
get_location_statistics
¶
Return the total item value grouped by location.
Returns:
| Type | Description |
|---|---|
list[TotalsByOrganizer]
|
list[TotalsByOrganizer]: One entry per location with the location's ID, name, and aggregated total value. |
Source code in homebox/client.py
get_purchase_price_statistics
¶
Return the cumulative purchase price of items over a date range.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
start
|
str | None
|
Start date in |
None
|
end
|
str | None
|
End date in |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
ValueOverTime |
ValueOverTime
|
Time-series data with individual entries and summary values at the start and end of the range. |