MCPcopy Create free account
hub / github.com/DeepL/deepl-python / DocumentHandle

Class DocumentHandle

deepl/api_data.py:45–65  ·  view source on GitHub ↗

Handle to an in-progress document translation. :param document_id: ID of associated document request. :param document_key: Key of associated document request.

Source from the content-addressed store, hash-verified

43
44
45class DocumentHandle:
46 """Handle to an in-progress document translation.
47
48 :param document_id: ID of associated document request.
49 :param document_key: Key of associated document request.
50 """
51
52 def __init__(self, document_id: str, document_key: str):
53 self._document_id = document_id
54 self._document_key = document_key
55
56 def __str__(self):
57 return f"Document ID: {self.document_id}, key: {self.document_key}"
58
59 @property
60 def document_id(self) -> str:
61 return self._document_id
62
63 @property
64 def document_key(self) -> str:
65 return self._document_key
66
67
68class DocumentStatus:

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected