Skip to main content

AnnoworkのCLI(Command Line Interface)

Project description

annowork-cli

AnnoworkのCLIです。

Build Status CodeQL PyPI version Python Versions Documentation Status

Requirements

  • Python3.8+

Install

$ pip install annoworkcli

Usage

認証情報の設定

.netrc

$HOME/.netrcファイルに以下を記載する。

machine annowork.com
login annowork_user_id
password annowork_password

環境変数

  • 環境変数ANNOWORK_USER_ID , ANNOWORK_PASSWORD

annoworkcli annofabコマンドを利用する場合

annoworkcli annofabコマンドはannofabのwebapiにアクセスするため、annofabのwebapiの認証情報を指定する必要があります。

  • 環境変数ANNOFAB_USER_ID , ANNOFAB_PASSWORD
  • $HOME/.netrcファイル
machine annofab.com
login annofab_user_id
password annofab_password

コマンドの使い方

# CSV出力
$ annoworkcli actual_working_time list_daily --workspace_id foo \
 --start_date 2022-05-01 --end_date 2022-05-10 --output out.csv

$ cat out.csv
date,job_id,job_name,workspace_member_id,user_id,username,actual_working_hours,notes
2022-05-02,5c39a2e8-90dd-4f20-b0a6-39d7f5129e3d,MOON,52ff73fb-c1d6-4ad6-a185-64386ee7169f,alice,Alice,11.233333333333334,
2022-05-02,5c39a2e8-90dd-4f20-b0a6-39d7f5129e3d,MARS,c66acd58-c893-4908-bdcc-1414978bf06b,bob,Bob,8.0,

開発者向けの情報

https://github.com/kurusugawa-computer/annowork-cli/blob/main/README_for_developer.md

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

annoworkcli-3.7.0.tar.gz (56.1 kB view hashes)

Uploaded Source

Built Distribution

annoworkcli-3.7.0-py3-none-any.whl (105.1 kB view hashes)

Uploaded Python 3

Supported by

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