Skip to main content

Python library for controlling and monitoring InsightScan from external applications

Project description

ikkLink

ikkLink

ikkLink は InsightScan に接続して、外部アプリケーションから制御と状態監視を行うための Python ライブラリです。

基本的な利用では from ikkLink import InsightScanLink を推奨します。

既存コードとの互換のため、insightScanLink も当面は利用できます。

Install

pip install ikkLink

Quick Start

import asyncio

from ikkLink import InsightScanLink


async def main() -> None:
    link = InsightScanLink(reconnect=True)
    connected = await link.Connect(host="127.0.0.1", port=53301)
    if not connected:
        raise RuntimeError("InsightScan に接続できませんでした")

    await link.GetStatus()
    print(f"state={link.State.Code} name={link.State.Name}")

    if not link.IsReadyForRecipe():
        await link.Init()

    await link.close()


asyncio.run(main())

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

ikklink-0.0.3.tar.gz (39.8 kB view details)

Uploaded Source

Built Distribution

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

ikklink-0.0.3-py3-none-any.whl (43.0 kB view details)

Uploaded Python 3

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