weboob.capabilities.parcel

class weboob.capabilities.parcel.CapParcel

Bases: weboob.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 weboob.capabilities.parcel.Event(id=u'', url=NotLoaded, backend=None)

Bases: weboob.capabilities.base.BaseObject

Variables:
  • date – (date, datetime) Date
  • activity – (unicode) Activity
  • location – (unicode) Location
class weboob.capabilities.parcel.Parcel(id=u'', url=NotLoaded, backend=None)

Bases: weboob.capabilities.base.BaseObject

Variables:
  • arrival – (date, datetime) Scheduled arrival date
  • status – (int) Status of parcel (default: 0)
  • info – (unicode) Information about parcel status
  • history – (list) History
STATUS_ARRIVED = 3
STATUS_IN_TRANSIT = 2
STATUS_PLANNED = 1
STATUS_UNKNOWN = 0
exception weboob.capabilities.parcel.ParcelNotFound(msg='Account not found')

Bases: weboob.capabilities.base.UserError

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