karrio-australiapost 2025.5.6__py3-none-any.whl → 2026.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- karrio/providers/australiapost/tracking.py +17 -0
- karrio/providers/australiapost/units.py +20 -0
- {karrio_australiapost-2025.5.6.dist-info → karrio_australiapost-2026.1.dist-info}/METADATA +1 -1
- {karrio_australiapost-2025.5.6.dist-info → karrio_australiapost-2026.1.dist-info}/RECORD +7 -7
- {karrio_australiapost-2025.5.6.dist-info → karrio_australiapost-2026.1.dist-info}/WHEEL +0 -0
- {karrio_australiapost-2025.5.6.dist-info → karrio_australiapost-2026.1.dist-info}/entry_points.txt +0 -0
- {karrio_australiapost-2025.5.6.dist-info → karrio_australiapost-2026.1.dist-info}/top_level.txt +0 -0
|
@@ -61,6 +61,23 @@ def _extract_details(
|
|
|
61
61
|
description=event.description,
|
|
62
62
|
location=event.location,
|
|
63
63
|
time=lib.flocaltime(event.date, "%Y-%m-%dT%H:%M:%S%z"),
|
|
64
|
+
timestamp=lib.fiso_timestamp(event.date, current_format="%Y-%m-%dT%H:%M:%S%z"),
|
|
65
|
+
status=next(
|
|
66
|
+
(
|
|
67
|
+
s.name
|
|
68
|
+
for s in list(provider_units.TrackingStatus)
|
|
69
|
+
if item.status in s.value
|
|
70
|
+
),
|
|
71
|
+
None,
|
|
72
|
+
),
|
|
73
|
+
reason=next(
|
|
74
|
+
(
|
|
75
|
+
r.name
|
|
76
|
+
for r in list(provider_units.TrackingIncidentReason)
|
|
77
|
+
if item.status in r.value
|
|
78
|
+
),
|
|
79
|
+
None,
|
|
80
|
+
),
|
|
64
81
|
)
|
|
65
82
|
for event in item.events
|
|
66
83
|
],
|
|
@@ -157,3 +157,23 @@ class TrackingStatus(lib.Enum):
|
|
|
157
157
|
delivery_delayed = ["Possible delay", "To be Re-Delivered"]
|
|
158
158
|
out_for_delivery = ["On Board for Delivery"]
|
|
159
159
|
ready_for_pickup = ["Awaiting collection", "Ready for Pickup"]
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
class TrackingIncidentReason(lib.Enum):
|
|
163
|
+
"""Maps Australia Post exception codes to normalized TrackingIncidentReason."""
|
|
164
|
+
|
|
165
|
+
# Carrier-caused issues
|
|
166
|
+
carrier_damaged_parcel = ["Article damaged"] # Article damaged
|
|
167
|
+
carrier_delay = ["Possible delay"] # Possible delay
|
|
168
|
+
|
|
169
|
+
# Consignee-caused issues
|
|
170
|
+
consignee_not_available = ["Unsuccessful Delivery"] # Unsuccessful Delivery
|
|
171
|
+
|
|
172
|
+
# Delivery exceptions
|
|
173
|
+
delivery_exception_hold = ["Held by courier"] # Held by courier
|
|
174
|
+
delivery_exception_undeliverable = ["Cannot be delivered"] # Cannot be delivered
|
|
175
|
+
delivery_exception_cancelled = ["Cancelled"] # Cancelled
|
|
176
|
+
delivery_exception_redelivery = ["To be Re-Delivered"] # To be Re-Delivered
|
|
177
|
+
|
|
178
|
+
# Unknown/Other
|
|
179
|
+
unknown = []
|
|
@@ -7,8 +7,8 @@ karrio/providers/australiapost/__init__.py,sha256=wr8vOf71vV5K-byodxnJN-IGXjoZN0
|
|
|
7
7
|
karrio/providers/australiapost/error.py,sha256=yu_hk3815dVGPGmDyi1VWRTw7CCrWh83jREG2-vnZF8,1356
|
|
8
8
|
karrio/providers/australiapost/manifest.py,sha256=DfA7_UklLpy5ft38RI-pdTI-TcFfC6zEJzuNbaHNCL0,2012
|
|
9
9
|
karrio/providers/australiapost/rate.py,sha256=ZxXo1gvFfPSsMWYO6BJs8bNsJHfeBHUAuOYRWPef_uw,4629
|
|
10
|
-
karrio/providers/australiapost/tracking.py,sha256=
|
|
11
|
-
karrio/providers/australiapost/units.py,sha256=
|
|
10
|
+
karrio/providers/australiapost/tracking.py,sha256=UmlomqDHl0lLDr4wN3UAGnmZ5YgsSrxXQTGRKPanMNA,3403
|
|
11
|
+
karrio/providers/australiapost/units.py,sha256=4DcYxg_Am9Izd35Qk2vW9_-N9WFYD6yNSdCkYKdpRsU,6160
|
|
12
12
|
karrio/providers/australiapost/utils.py,sha256=C4zl1UvvS88klCkHwO3mL3B9PFtjClQfE02NR4uKRZs,811
|
|
13
13
|
karrio/providers/australiapost/shipment/__init__.py,sha256=EUEVig9vqFtga-V6hNRuOAR3IAKko-YjzmOZs5ZK6Es,243
|
|
14
14
|
karrio/providers/australiapost/shipment/cancel.py,sha256=mLr3gLK4bhs8em-4JF4ePPHLT5iXdOdCF4J0_CRnPLc,1123
|
|
@@ -25,8 +25,8 @@ karrio/schemas/australiapost/shipment_request.py,sha256=0N9gGu-yTygUpoAfr_Y7ArOk
|
|
|
25
25
|
karrio/schemas/australiapost/shipment_response.py,sha256=rsf--85LvHgpEFGfmH4H6T9CKeOBAe0alZe2DTjUPgk,2164
|
|
26
26
|
karrio/schemas/australiapost/tracking_request.py,sha256=b0L2oWnZaAk1B1vSxTszgXoAF9w_AAmWHbvmoqEUN2E,143
|
|
27
27
|
karrio/schemas/australiapost/tracking_response.py,sha256=HOfF1WdNDqqvA3uuDyNy6LtRTjIO5zsd0SkziH2Vz5k,1778
|
|
28
|
-
karrio_australiapost-
|
|
29
|
-
karrio_australiapost-
|
|
30
|
-
karrio_australiapost-
|
|
31
|
-
karrio_australiapost-
|
|
32
|
-
karrio_australiapost-
|
|
28
|
+
karrio_australiapost-2026.1.dist-info/METADATA,sha256=pEVq_PHp9lImv3wJ3fpcXDYFQ8GaBpPveJL05S30bJA,1039
|
|
29
|
+
karrio_australiapost-2026.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
30
|
+
karrio_australiapost-2026.1.dist-info/entry_points.txt,sha256=B9zw0Kzq7I5KIPK5WeNs7h6GzvxEIdBVHK-YCMFFhh8,71
|
|
31
|
+
karrio_australiapost-2026.1.dist-info/top_level.txt,sha256=FZCY8Nwft8oEGHdl--xku8P3TrnOxu5dETEU_fWpRSM,20
|
|
32
|
+
karrio_australiapost-2026.1.dist-info/RECORD,,
|
|
File without changes
|
{karrio_australiapost-2025.5.6.dist-info → karrio_australiapost-2026.1.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
{karrio_australiapost-2025.5.6.dist-info → karrio_australiapost-2026.1.dist-info}/top_level.txt
RENAMED
|
File without changes
|