engine
emtellisplit_sdk_python.engine
Module Contents
Classes
Functions
Data
logger
API
emtellisplit_sdk_python.engine.logger
Value: getLogger(...)
emtellisplit_sdk_python.engine.DeferredResult
A class that mimics asyncio.Future but it not awaitable. The caller is responsible for polling until done.
DeferredResult.cancel
Cancel the processing job being represented by this ResultFuture.
DeferredResult.status
Gets the status of the processing job represented by this ResultFuture, updates the status of this ResultFuture.
DeferredResult.done
DeferredResult.result
emtellisplit_sdk_python.engine.ResultFuture
Bases: emtellisplit_sdk_python.engine.DeferredResult
A class that mimics asyncio.Future
ResultFuture.cancel
Cancel the task being represented by this ResultFuture. Cancels the polling thread if it has been started.
ResultFuture.__await__
Allows this object to be awaited. e.g. result = await result_future
ResultFuture.result
Another method that can be used to await for the result. e.g. result = await result_future.result()
emtellisplit_sdk_python.engine.Emtellisplit
This is the primary way of interacting with an emtelliSplit server. It handles all the details for submitting documents, checking on the processing status, waiting for processing to finish.
Emtellisplit.submit
Submits a document for processing. Returns a DeferredResult object which can be interacted with to get the status of processing, or the result after processing has succeeded or failed.
Emtellisplit.process
Submits a document for processing. Returns an awaitable ResultFuture object which can be awaited to get the result after processing has suceeded or failed.
Emtellisplit.status
Gets the status of a submitted job.
Emtellisplit.cancel
Cancels a submitted job.

