crowdflower.unit

class crowdflower.unit.Unit(job, client=None, **data)

CrowdFlower Unit.

Documentation for attributes can be found at http://success.crowdflower.com/customer/portal/articles/1621707 .

Parameters:
cancel()

Cancel unit.

get_aggregate(key, default=None)

Get aggregated result for key, or return default.

Parameters:
  • key (str) – Name of result value.
  • default – Default value in case the given key is not found.
results

Get unit results, if available. RO attribute.

class crowdflower.unit.UnitPromise(job, client=None, **data)

A promise that a Unit will be available for querying attributes when needed.