darbiadev_shipping
#
A package wrapping multiple shipping carrier API wrapping packages, providing a common interface.
Submodules#
Package Contents#
Classes#
An enum of shipping carriers. |
|
A class wrapping multiple shipping carrier API wrapping packages, providing a common interface. |
- class darbiadev_shipping.CarrierEnum(*args, **kwds)[source]#
Bases:
enum.Enum
An enum of shipping carriers.
- class darbiadev_shipping.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.
- _get_carrier_from_registrar(carrier_enum: CarrierEnum | None = None) Carrier [source]#
Get a carrier from the registrar.
- 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
- track(tracking_number: str, carrier_enum: CarrierEnum | None = None) dict [source]#
Get details for tracking number.