core
    Core Client
  
IIIFClient
IIIFClient (cred_file_path:str, id_prefix:str=None)
Initialize self. See help(type(self)) for accurate signature.
TEIClient
TEIClient ()
Initialize self. See help(type(self)) for accurate signature.
CoreClient
CoreClient ()
Initialize self. See help(type(self)) for accurate signature.
CoreClient.load_env
CoreClient.load_env ()
環境変数を読み込む。
IIIFClient.create_manifest3_by_gocr
IIIFClient.create_manifest3_by_gocr (url:str, output_iiif_manifest_file_path:str, tmp_dir:str='./tmp', debug=False, title=None)
URLから画像をダウンロードし、GOCR APIを使用してManifest3ファイルを作成する。
| Type | Default | Details | |
|---|---|---|---|
| url | str | 画像のURL | |
| output_iiif_manifest_file_path | str | 出力するIIIFマニフェストファイルのパス | |
| tmp_dir | str | ./tmp | 一時ディレクトリのパス | 
| debug | bool | False | デバッグモードの有無 | 
| title | NoneType | None | マニフェストのタイトル | 
| Returns | None | 
TEIClient.convert_manifest3_annotations_to_zones
TEIClient.convert_manifest3_annotations_to_zones (input_iiif_manifest_fi le_path:str, output_tei _xml_file_path:str)
*ManifestファイルをTEIのXML形式に変換するメソッド
Args: input_iiif_manifest_file_path (str): 入力となるManifestファイルのパス output_tei_xml_file_path (str): 出力となるTEIのXMLファイルのパス
Returns: None*
CoreClient.create_tei_xml_with_gocr
CoreClient.create_tei_xml_with_gocr (url:str, output_tei_xml_file_path:str, cred_file_path:str, tmp_dir:str='./tmp', debug=False, title:str=None)
URLから画像をダウンロードし、GOCR APIを使用してTEIのXMLファイルを作成する。
| Type | Default | Details | |
|---|---|---|---|
| url | str | 画像のURL | |
| output_tei_xml_file_path | str | 出力するTEIのXMLファイルのパス | |
| cred_file_path | str | GOCR APIの認証情報ファイルのパス | |
| tmp_dir | str | ./tmp | 一時ディレクトリのパス | 
| debug | bool | False | デバッグモードの有無 | 
| title | str | None | マニフェストのタイトル | 
| Returns | None |