Ingest Python Module

Ingest valication module.

The CherryPy rest object for the structure.

Below is an example post body:

[
    {"destinationTable": "Transactions._id", "value": 1234},
    {"destinationTable": "Transactions.submitter", "value": 34002},
    {"destinationTable": "Transactions.project", "value": "34002"},
    {"destinationTable": "Transactions.instrument", "value": 34002},
    {"destinationTable": "TransactionKeyValue", "key": "Tag", "value": "Blah"},
    {"destinationTable": "TransactionKeyValue", "key": "Taggy", "value": "Blah"},
    {"destinationTable": "TransactionKeyValue", "key": "Taggier", "value": "Blah"}
    {
        "destinationTable": "Files",
        "_id": 34, "name": "foo.txt", "subdir": "a/b/",
        "ctime": "Tue Nov 29 14:09:05 PST 2016",
        "mtime": "Tue Nov 29 14:09:05 PST 2016",
        "size": 128, "mimetype": "text/plain"
    },
    {
        "destinationTable": "Files",
        "_id": 35, "name": "bar.txt", "subdir": "a/b/",
        "ctime": "Tue Nov 29 14:09:05 PST 2016",
        "mtime": "Tue Nov 29 14:09:05 PST 2016",
        "size": 47, "mimetype": "text/plain"
    },
]
class pacifica.policy.ingest.rest.IngestPolicy[source]

CherryPy Ingest Policy Class.

POST()[source]

Read in the json query and return results.

static _pull_data_by_rec(query, table)[source]

Pull the value for the table.

_valid_query(query)[source]

Validate the metadata format.