REST Python Module

Class for the cart interface.

Allows API to file interactions.

exception pacifica.cartd.rest.CartInterfaceError[source]

CartInterfaceError.

Basic exception class for this module. Will be used to throw exceptions up to the top level of the application.

class pacifica.cartd.rest.CartRoot[source]

Define the methods that can be used for cart request types.

Doctest for the cart generator class HPSS Doc Tests

static DELETE(uid)[source]

Delete a cart that has been created.

static GET(uid=None, **kwargs)[source]

Download the tar file created by the cart.

static HEAD(uid)[source]

Get the status of a carts tar file.

classmethod POST(uid)[source]

Get all the files locally and bundled.

exposed = True
json_schema = {'properties': {'fileids': {'items': {'properties': {'hashsum': {'type': 'string'}, 'hashtype': {'type': 'string'}, 'id': {'type': ['integer', 'string']}, 'path': {'type': 'string'}}, 'required': ['id', 'path', 'hashtype', 'hashsum'], 'type': 'object'}, 'type': 'array'}}, 'required': ['fileids'], 'type': 'object'}
pacifica.cartd.rest.bytes_type(unicode_obj)[source]

Convert the unicode object into bytes.

pacifica.cartd.rest.error_page_default(**kwargs)[source]

The default error page should always enforce json.