AnnoworkのCLI(Command Line Interface)
Project description
annowork-cli
AnnoworkのCLIです。
Requirements
- Python 3.11+
Install
$ pip install annoworkcli
Usage
認証情報の設定
.netrc
$HOME/.netrcファイルに以下を記載する。
machine annowork.com
login annowork_user_id
password annowork_password
環境変数
- 環境変数
ANNOWORK_USER_ID,ANNOWORK_PASSWORD - 環境変数
ANNOWORK_WORKSPACE_ID--workspace_idが必須のコマンドで未指定時に使用されます。
annoworkcli annofabコマンドを利用する場合
annoworkcli annofabコマンドはannofabのwebapiにアクセスするため、annofabのwebapiの認証情報を指定する必要があります。
- 環境変数
ANNOFAB_USER_ID,ANNOFAB_PASSWORDまたはANNOFAB_PAT
コマンドの使い方
# 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,
# workspace_idを環境変数で省略する
$ export ANNOWORK_WORKSPACE_ID=foo
$ annoworkcli actual_working_time list_daily \
--start_date 2022-05-01 --end_date 2022-05-10 --output out.csv
開発者向けの情報
https://github.com/kurusugawa-computer/annowork-cli/blob/main/README_for_developer.md
Project details
Release history Release notifications | RSS feed
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.14.1.tar.gz
(214.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
annoworkcli-3.14.1-py3-none-any.whl
(122.7 kB
view details)
File details
Details for the file annoworkcli-3.14.1.tar.gz.
File metadata
- Download URL: annoworkcli-3.14.1.tar.gz
- Upload date:
- Size: 214.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
df1853d5d7d4a1f555683b8aa291b06d54ccf3a08acbc7b2a90632a9e1e1cdfd
|
|
| MD5 |
888bf390deca991617cd878419b28dab
|
|
| BLAKE2b-256 |
5b21eae79deae8d051766b29f8eea5b70de679b88f26b0740afba30ee6964143
|
File details
Details for the file annoworkcli-3.14.1-py3-none-any.whl.
File metadata
- Download URL: annoworkcli-3.14.1-py3-none-any.whl
- Upload date:
- Size: 122.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ccaf49d7d5e4855ccce7cfc94e3240a12f3886b5c544ff51e0a3c632968452a9
|
|
| MD5 |
4e7e743709b635fa5c6fde2a1745a8ac
|
|
| BLAKE2b-256 |
0ba1b7a34d14b6ab0cfec01a52db06dc4f3a46aabb5e7f615139c62c558dd8d5
|