Skip to main content

python client for i4s-rcm

Project description

pyrcmclient

pyrcmclientは、I4S RCM-ControllerのPythonクライアントです。PythonからDBリクエストRCMワークフローの実行などを簡単に行うことができます。

概要

Pythonを使用してRCM-Controllerの以下の機能をコールすることができます。

  • ログイン: RCMアカウントにログインします
  • DBRequest: データベースへのリクエストを送信し、データを操作することができます。
  • ファイル登録: ファイルをRCMにアップロードします。
  • ファイル取得: RCMからファイルをダウンロードします
  • RCM WorkFlow実行: ワークフローの実行を簡潔なコードで行うことができます。
  • systemConfig: RCM-Controllerの情報取得と設定変更

インストール方法

以下のコマンドでpyrcmclientをインストールすることができます:

pip install pyrcmclient

使用方法

DBRequestの例

以下に、データベースリクエストの簡単な使用例を示します:

from i4srcm.client import RCMCNT_Client

client:RCMCNT_Client = RCMCNT_Client( "https://rcmfront", username="userName", passwd="passwd" )
if not client.login():
    print("failled to login")
    return
response = client.DBPath("/project[@tagid=1234]/template[name='abc']")
print(response)

ワークフロー実行の例

RCM WorkFlowを実行するための例です:

from i4srcm.client import RCMCNT_Client

client:RCMCNT_Client = RCMCNT_Client( "https://rcmfront", username="userName", passwd="passwd" )
if not client.login():
    print("failled to login")
    return

workflow_id = client.execute_template( "template name" )
workflow_result = client.get_workflow(workflow_id,wait=60)
print(workflow_result)

必要要件

  • Python 3.11以上
  • RCM-1024以降のバージョンのRCM-Controller

ライセンス

このプロジェクトはMITライセンスのもとで公開されています。

本モジュールの利用・運用の結果と起因する損害などについて開発元は一切の責任を負いません。

本モジュールについてのサポートは行いませんが、ご質問やご提案をいただければ開発の参考にさせて頂きます。

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyrcmclient-0.0.3.tar.gz (24.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyrcmclient-0.0.3-py3-none-any.whl (25.2 kB view details)

Uploaded Python 3

File details

Details for the file pyrcmclient-0.0.3.tar.gz.

File metadata

  • Download URL: pyrcmclient-0.0.3.tar.gz
  • Upload date:
  • Size: 24.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for pyrcmclient-0.0.3.tar.gz
Algorithm Hash digest
SHA256 7b3c6d162a894aac8997b6bdb87a5ae6294b477e52f649e75368d41cdf96a36b
MD5 5f635e47fd88827619ecf9a0be623f80
BLAKE2b-256 c3ac5e43e4670df427b969593be8a15169e7d088b945029bbf9a35de2d859544

See more details on using hashes here.

File details

Details for the file pyrcmclient-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: pyrcmclient-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 25.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for pyrcmclient-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 567e7103d4d753f91982d2c49ac52c2e9efa674b4edfd14ab8038161020585c8
MD5 2a7b3a5c5d369299a71ba98ddce2fc97
BLAKE2b-256 860b84cd2f45db5fd0eabff3570ac68304b1ea38c0946c1942200ead17adb055

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page