karrio-easypost 2025.5.6__py3-none-any.whl → 2025.5.7__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/easypost/tracking.py +17 -0
- karrio/providers/easypost/units.py +18 -0
- {karrio_easypost-2025.5.6.dist-info → karrio_easypost-2025.5.7.dist-info}/METADATA +1 -1
- {karrio_easypost-2025.5.6.dist-info → karrio_easypost-2025.5.7.dist-info}/RECORD +8 -8
- {karrio_easypost-2025.5.6.dist-info → karrio_easypost-2025.5.7.dist-info}/WHEEL +0 -0
- {karrio_easypost-2025.5.6.dist-info → karrio_easypost-2025.5.7.dist-info}/entry_points.txt +0 -0
- {karrio_easypost-2025.5.6.dist-info → karrio_easypost-2025.5.7.dist-info}/licenses/LICENSE +0 -0
- {karrio_easypost-2025.5.6.dist-info → karrio_easypost-2025.5.7.dist-info}/top_level.txt +0 -0
|
@@ -55,6 +55,23 @@ def _extract_details(
|
|
|
55
55
|
join=True,
|
|
56
56
|
separator=", ",
|
|
57
57
|
),
|
|
58
|
+
timestamp=lib.fiso_timestamp(event.get("datetime"), current_format="%Y-%m-%dT%H:%M:%SZ"),
|
|
59
|
+
status=next(
|
|
60
|
+
(
|
|
61
|
+
s.name
|
|
62
|
+
for s in list(provider_units.TrackingStatus)
|
|
63
|
+
if event.get("status") in s.value
|
|
64
|
+
),
|
|
65
|
+
None,
|
|
66
|
+
),
|
|
67
|
+
reason=next(
|
|
68
|
+
(
|
|
69
|
+
r.name
|
|
70
|
+
for r in list(provider_units.TrackingIncidentReason)
|
|
71
|
+
if event.get("status") in r.value
|
|
72
|
+
),
|
|
73
|
+
None,
|
|
74
|
+
),
|
|
58
75
|
)
|
|
59
76
|
for event in events
|
|
60
77
|
if event.get("datetime") is not None
|
|
@@ -941,6 +941,24 @@ class CarrierId(lib.StrEnum):
|
|
|
941
941
|
return {key: enum.value for key, enum in CarrierId.__members__.items()}
|
|
942
942
|
|
|
943
943
|
|
|
944
|
+
class TrackingStatus(lib.Enum):
|
|
945
|
+
on_hold = ["pre_transit", "unknown"]
|
|
946
|
+
delivered = ["delivered"]
|
|
947
|
+
in_transit = ["in_transit"]
|
|
948
|
+
out_for_delivery = ["out_for_delivery"]
|
|
949
|
+
ready_for_pickup = ["available_for_pickup"]
|
|
950
|
+
delivery_failed = ["failure", "error", "return_to_sender"]
|
|
951
|
+
cancelled = ["cancelled"]
|
|
952
|
+
|
|
953
|
+
|
|
954
|
+
class TrackingIncidentReason(lib.Enum):
|
|
955
|
+
"""Maps EasyPost exception codes to normalized TrackingIncidentReason."""
|
|
956
|
+
carrier_damaged_parcel = ["damaged"]
|
|
957
|
+
consignee_refused = ["refused"]
|
|
958
|
+
consignee_not_home = ["not_home"]
|
|
959
|
+
unknown = []
|
|
960
|
+
|
|
961
|
+
|
|
944
962
|
class ShippingOption(lib.Enum):
|
|
945
963
|
easypost_additional_handling = lib.OptionEnum("additional_handling", bool)
|
|
946
964
|
easypost_address_validation_level = lib.OptionEnum("address_validation_level")
|
|
@@ -6,8 +6,8 @@ karrio/plugins/easypost/__init__.py,sha256=UwD6JC4LkF47ZodzuHvaq8l__713e_aCLTej3
|
|
|
6
6
|
karrio/providers/easypost/__init__.py,sha256=v89eaMBV-Kn7Za7WzrXpSkKfFG2HSRB0SXByoI2hOec,333
|
|
7
7
|
karrio/providers/easypost/error.py,sha256=GrONkEpEi8ujKNvd4I9Z9xGfqFrc4QE2wOkoMJOFEjk,953
|
|
8
8
|
karrio/providers/easypost/rate.py,sha256=_uJ_9PgB5AM_oMDjAsY_wFd_DUz-zm_zu4qPkSyZHTY,7710
|
|
9
|
-
karrio/providers/easypost/tracking.py,sha256=
|
|
10
|
-
karrio/providers/easypost/units.py,sha256=
|
|
9
|
+
karrio/providers/easypost/tracking.py,sha256=DvjNyjLDFHDZ9Iu9zJjZwxOBCb8rXz3uBtwu8dlAmxg,4913
|
|
10
|
+
karrio/providers/easypost/units.py,sha256=JCJBcJXV017JChD7DCj-YbMs_c-DhhxttyG25NhFS00,53298
|
|
11
11
|
karrio/providers/easypost/utils.py,sha256=rJ1uxvaOXcwCAbPmiklk0UoJwhbix0sjVc6jV1BWbtQ,774
|
|
12
12
|
karrio/providers/easypost/shipment/__init__.py,sha256=oEO3ToyRIVyE5mcc_exdZRpM6WMu6PMD2UpdkUJrKqI,232
|
|
13
13
|
karrio/providers/easypost/shipment/cancel.py,sha256=QEIkm4aPwzOyFMV4fvx_7b8VErwIhcBGl9ZszQM5nsM,1010
|
|
@@ -18,9 +18,9 @@ karrio/schemas/easypost/shipment_purchase.py,sha256=xNQWUKV6aYFFdTn7xLCjjtya0h-o
|
|
|
18
18
|
karrio/schemas/easypost/shipment_request.py,sha256=7HirvgDktcppvHlEeMz49ryK6sPWIBP-c1_1xE3y8ow,2858
|
|
19
19
|
karrio/schemas/easypost/shipments_response.py,sha256=KgWbIoPvI1NoQOGoV30-K3Dl6JFkKdAS3B3yHQfb6R4,8957
|
|
20
20
|
karrio/schemas/easypost/trackers_response.py,sha256=Q0Z74hKZYLDmfKh7lzxM7cfe3x-z-LXve94d7s3r9Kw,2915
|
|
21
|
-
karrio_easypost-2025.5.
|
|
22
|
-
karrio_easypost-2025.5.
|
|
23
|
-
karrio_easypost-2025.5.
|
|
24
|
-
karrio_easypost-2025.5.
|
|
25
|
-
karrio_easypost-2025.5.
|
|
26
|
-
karrio_easypost-2025.5.
|
|
21
|
+
karrio_easypost-2025.5.7.dist-info/licenses/LICENSE,sha256=qvVLDB3Y1leH0p_1m30RxZrOGOx8F9O5eZIwdyVzcuQ,7651
|
|
22
|
+
karrio_easypost-2025.5.7.dist-info/METADATA,sha256=vkvKW878hnvvHaHVnBtQj9yrQht3PAhImJTFYtYK0qg,1040
|
|
23
|
+
karrio_easypost-2025.5.7.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
24
|
+
karrio_easypost-2025.5.7.dist-info/entry_points.txt,sha256=mArG7sxxZUl07ycYJn7BGzz1uv-hZPVROniK64EbUz4,61
|
|
25
|
+
karrio_easypost-2025.5.7.dist-info/top_level.txt,sha256=FZCY8Nwft8oEGHdl--xku8P3TrnOxu5dETEU_fWpRSM,20
|
|
26
|
+
karrio_easypost-2025.5.7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|