Label Maker¶
Generate printable QR/barcode labels for items and locations.
LabelMakerClient
¶
Sub-client for printable label generation endpoints.
Accessed via HomeboxClient.labelmaker.
Source code in homebox/client.py
__init__
¶
get_asset_label
¶
Return a printable label for an asset identified by its asset ID.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
id
|
str
|
Asset ID string. |
required |
print
|
bool | None
|
When |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
bytes |
bytes
|
Label content (typically SVG or HTML). |
Source code in homebox/client.py
get_item_label
¶
Return a printable label for an item.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
id
|
str
|
UUID of the item. |
required |
print
|
bool | None
|
When |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
bytes |
bytes
|
Label content (typically SVG or HTML). |
Source code in homebox/client.py
get_location_label
¶
Return a printable label for a location.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
id
|
str
|
UUID of the location. |
required |
print
|
bool | None
|
When |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
str |
bytes
|
Label content (typically SVG or HTML). |