dcclib_rest_api

cache

delete_dcc

delete_dcc(dcc_id)

Delete a DCC from the cache.

Parameters:
  • dcc_id –

    id of the DCC.

Raises:
  • HTTPError –

    if the DCC is not found.

get_dcc

get_dcc(dcc_id, expire_time=False)

Get a DCC from the cache.

Parameters:
  • dcc_id –

    id of the DCC.

  • expire_time –

    whether to return the expiry time.

Returns:
  • –

    the DCC or a tuple of the DCC and the expiry time.

Raises:
  • HTTPError –

    if the DCC is not found.

has_dcc

has_dcc(dcc_id)

Check if a DCC exists in the cache.

Parameters:
  • dcc_id –

    id of the DCC.

Returns:
  • –

    whether the DCC exists.

modules

extract

formulae

DccQuantityField

Bases: Field

Marshmallow field for dcc_quantities types.