# はじめに

[Githubリポジトリ](https://github.com/Mindkosh/mindkosh-python-sdk)

[サンプルスクリプト](https://github.com/Mindkosh/mindkosh-python-sdk/tree/develop/examples)

[PyPI](https://pypi.org/project/mindkosh/)

### SDKのセットアップ

SDKをセットアップするために最初に必要なのは、プライベートアクセス・トークンです。<support@mindkosh.com> にメールして入手するか、Slack/電話でご連絡ください。&#x20;

{% hint style="info" %}
SDKへのアクセスは有料ユーザーのみ利用可能であることにご注意ください。
{% endhint %}

次に、SDKをインストールします。Mindkosh SDKはPyPIパッケージとして利用でき、以下のようにpipでインストールできます:

```py
pip install mindkosh
```

このSDKはPython 3.9でテストされています。他のバージョンでも動作する可能性はありますが、テストはされておらず、互換性は保証されません。mindkoshは別のPython環境にインストールすることを推奨します。

### クライアントの初期化

SDKで何かを行うには、まずSDKトークンを使ってクライアントを作成する必要があります。これは次のように行えます:

```py
## クライアントを初期化する
client = mindkosh.Client(
    token = <"Your token here">,
)
```

ワークスペース内のすべてのタスクの一覧を取得して、これが成功したかどうかを確認できます。

```py
tasks = client.task.get()
print(f"{len(tasks)} 件のタスクが見つかりました")
for task in tasks:
    print(task.name)
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.mindkosh.com/ja/python-sdk/hajimeni.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
