Pythonを介してOFX応答ファイルを読み取る
Microsoft Officeやその他のソフトウェアをインストールせずに、OFX応答形式で財務レポートを読み取る。
OFX応答ファイルの読み方
コードスニペットの手順に従うか、拡張可能なビジネスレポート言語OFX応答ファイルを読み取るためのアプリケーションのニーズに応じてコードスニペットを拡張します。アプリケーション内に読み取り要件があることを確認してください。
- OfxResponseDocumentクラスインスタンスを作成します。2.有効なOFX応答ファイルの名前をパラメーターとして渡します。 3.ファイルの内部の詳細を取得するには、SignonResponseなどの関連するクラスを使用します
読書要件
OFX応答ドキュメントの読み取りに進むには、次の前提条件があることを確認してください。
- MicrosoftWindowsまたはLinuxベースのOS。- Python3.5以降。- プロジェクトで参照されているPythonのAspose.Finance。
OFX応答ファイルを読み取るためのPythonコード
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#open the ofx response file | |
document = OfxResponseDocument("ofx-response-file-name.xml") | |
#get the detail information | |
signonResponse = document.SignonResponseMessageSetV1.SignonResponse | |
string statusCode = signonResponse.Status.Code |
その他の読書オプション
iXBRL (インライン拡張可能ビジネスレポート言語)