Skip to main content

SIGNATE CLI

Project description

PyPI version

SIGNATE CLI

SIGNATE の公式APIコマンドラインインターフェイス(以下:SIGNATE CLI)です。 SIGNATEはData Science Competitionのご提供を始めとした、データサイエンティストの皆様のための統合プラットフォームです。

※SIGNATE CLIの動作にはPython3.8 以降の環境が必要です。 ※当CLIはβ版であり、予告なく変更させていただく可能性がございます。予めご了承ください。 ※SIGNATE CLIはMac OSおよびLinuxをサポートしております。

インストールと事前準備

以下のコマンドでインストールをお願いいたします。

$ pip install signate

インストール後、以下の手順を実施ください。

  1. SIGNATE でアカウント登録 ※メールアドレス/パスワード 認証でのみ SIGNATE CLIをご利用いただけます。
  2. 以下のコマンドで登録したメールアドレス指定して実行
$ signate token -e xxxxx@example.co.jp
  1. パスワードを入力してサインイン(入力値は表示されません)
Password:
  1. 以下のメッセージが表示されたら利用準備完了です。
The API Token has been downloaded successfully.

signate: command not found と表示される場合、環境変数$PATH のディレクトリ内にsignateが存在していることをご確認ください。pip uninstall signateコマンドで

  • signateコマンドがインストールされているディレクトリの確認
  • signateコマンドのアンインストール

が可能です。

利用方法

SIGNATE CLIでは以下の機能が利用できます。

$ signate --help
Usage: signate [OPTIONS] COMMAND [ARGS]...

Options:
  --version  Show the version and exit.
  --help     Show this message and exit.

Commands:
  competition-list
  download
  file-list
  submit
  task-list
  token

① 投稿可能なコンペティション一覧の取得

$ signate competition-list

投稿可能なコンペティション一覧を表示します。

$ signate competition-list

public_key                        title               remaining      reward           entry_count
--------------------------------  ------------------  -------------  -------------  -------------
0001d2723faa40b5a597832319f4722c  コンペティション1       360 seconds        100万円               1
c1001e081ca645dd9eb5c5a027fd8ecd  コンペティション2           26 days                             5

② 投稿可能な課題一覧の取得

$ signate task-list --competition_key=<competition-key>

投稿可能な課題一覧を表示します。

$ signate task-list --competition_key=<competition-key>

public_key                        task_name
--------------------------------  -----------
4d63b1cf2dd3462d902ac805f60d96ca  分類課題 データ1
4d63b1cf2dawega346gg02awe60d96cb  回帰課題 データ2

③ コンペティションが提供するファイル一覧の取得

こちらの機能をご利用の場合、コンペティションへの参加に同意いただく必要がございます(同意前の場合)。 コンペティションへの参加はブラウザから実行してください。

$ signate file-list --task_key=<task-key>

課題のファイル一覧を表示します。

$ signate file-list --task_key=<task-key>

public_key                        file_name              title                  file_size
--------------------------------  ---------------------  ---------------------  -----------
sa9bc5b1f9ef45f6b79bdbeb281895f3  sample1.zip            学習用画像データ               60.65 MB
g5609de723b148fe8635754dcd1706fa  test_images.zip        評価用画像データ               26.49 MB

④ コンペティションが提供するファイルのダウンロード

こちらの機能をご利用の場合、コンペティションへの参加に同意いただく必要がございます(同意前の場合)。 コンペティションへの参加はブラウザから実行してください。

$ signate download --task_key=<task-key> --file_key=<file-key> [--path=<path>]

ファイルをダウンロードします。 デフォルトではカレントディレクトリにファイルがダウンロードされます。 --path=を指定すると、ダウンロード先のパスを指定できます。

$ signate download --task_key=<task-key> --file_key=<file-key> --path=/tmp/test.zip

⑤ 投稿の実施

こちらの機能をご利用の場合、コンペティションへの参加に同意いただく必要がございます(同意前の場合)。 コンペティションへの参加はブラウザから実行してください。

$ signate submit --task_key=<task-key> <結果ファイルのパス> --memo “comment”

コンペティションに投稿を実施します。

$ signate submit --task_key=<task-key> ~/test.zip --memo "xxx"

Submission completed successfully.

補足

コンペティションへの同意

以下のようなメッセージが出力された際は

If you haven’t joined the competition yet, please do so through your browser.

ブラウザにて該当コンペティションに参加をお願いいたします。

ライセンス

SIGNATE CLIはApache 2.0 license. を適用しております。

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

signate-0.10.4.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

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

signate-0.10.4-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file signate-0.10.4.tar.gz.

File metadata

  • Download URL: signate-0.10.4.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for signate-0.10.4.tar.gz
Algorithm Hash digest
SHA256 7768a9d158880ed3b78656d58027d1fed4591041e19d8c33a7123a44b5161906
MD5 ed55b5ebbc0563bb0583baa42a673325
BLAKE2b-256 13c6da439706a02bc916c82edf190904d461349c4f5c31ceb1efc2aaf240e644

See more details on using hashes here.

Provenance

The following attestation bundles were made for signate-0.10.4.tar.gz:

Publisher: production_deploy.yaml on signatelab/competition-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file signate-0.10.4-py3-none-any.whl.

File metadata

  • Download URL: signate-0.10.4-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for signate-0.10.4-py3-none-any.whl
Algorithm Hash digest
SHA256 f0b3c35f96fe1842cf381ce30ef364f1ac0e1afba15fa89c6467d93ab0910793
MD5 ddeeb98eb694952d3194d8eb854c950d
BLAKE2b-256 835a88640db50ce3954b040fd5b33728efb692a02a90aadb0224872bdd520bd1

See more details on using hashes here.

Provenance

The following attestation bundles were made for signate-0.10.4-py3-none-any.whl:

Publisher: production_deploy.yaml on signatelab/competition-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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