shipping_services
#
shipping_services.
- class darbiadev_shipping.shipping_services.Carrier(name: str, client_package: str, client_class: str, auth_dict: dict[str, str])[source]#
A shipping carrier.
- class darbiadev_shipping.shipping_services.CarrierEnum(value, names=None, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]#
An enum of shipping carriers.
- class darbiadev_shipping.shipping_services.ShippingServices(ups_auth: dict[str, str] | None = None, fedex_auth: dict[str, str] | None = None, usps_auth: dict[str, str] | None = None)[source]#
A class wrapping multiple shipping carrier API wrapping packages, providing a common interface.
- guess_carrier(tracking_number: str) CarrierEnum | None [source]#
Guess which carrier a tracking number belongs to.
- Parameters:
tracking_number – The tracking number to guess a carrier for.
- Returns:
The carrier the tracking number belongs to.
- Return type:
CarrierEnum|None
- time_in_transit(from_state: str, from_postal_code: str, from_country: str, to_state: str, to_postal_code: str, to_country: str, weight: str, carrier_enum: CarrierEnum | None = None) dict [source]#
Get estimated time in transit information.