woob.capabilities.parcel

class woob.capabilities.parcel.CapParcel

Bases: woob.capabilities.base.Capability

get_parcel_tracking(id)

Get information abouut a parcel.

Parameters

id (str) – ID of the parcel

Return type

Parcel

Raises

ParcelNotFound

class woob.capabilities.parcel.Event(id='', url=NotLoaded, backend=None)

Bases: woob.capabilities.base.BaseObject

Variables
  • activity – (str) Activity

  • location – (str) Location

date = <woob.capabilities.date.DateField object>
class woob.capabilities.parcel.Parcel(id='', url=NotLoaded, backend=None)

Bases: woob.capabilities.base.BaseObject

Variables
  • status – (int) Status of parcel (default: 0)

  • info – (str) Information about parcel status

  • history – (list) History

STATUS_ARRIVED = 3
STATUS_IN_TRANSIT = 2
STATUS_PLANNED = 1
STATUS_UNKNOWN = 0
arrival = <woob.capabilities.date.DateField object>
exception woob.capabilities.parcel.ParcelNotFound(msg='Parcel not found')

Bases: woob.capabilities.base.UserError

Raised when a parcell is not found. It can be an user error, or an expired parcel

class woob.capabilities.parcel.ParcelState(*args, **kwargs)

Bases: woob.capabilities.base.Enum

ARRIVED = 3
IN_TRANSIT = 2
PLANNED = 1
UNKNOWN = 0