> For the complete documentation index, see [llms.txt](https://docs.mindkosh.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mindkosh.com/ja/python-sdk/hajimeni.md).

# はじめに

[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)
```
