annowork-api-python-client
Annowork WebAPIのPython用クライントライブラリです。
Requirements
- Python 3.12+
Install
$ pip install annoworkapi
Usage
認証情報の設定方法
$HOME/.netrc
machine annowork.com
login ${user_id}
password ${password}
環境変数に設定する場合
環境変数ANNOWORK_USER_IDにユーザID, ANNOWORK_PASSWORD にパスワードを設定する。
基本的な使い方
import annoworkapi
service = annoworkapi.build()
result = service.api.get_my_account()
print(result)
# {'account_id': 'xxx', ... }
応用的な使い方
ログの出力
import logging
logging_formatter = '%(levelname)-8s : %(asctime)s : %(name)s : %(message)s'
logging.basicConfig(format=logging_formatter)
logging.getLogger("annoworkapi").setLevel(level=logging.DEBUG)
In [1]: c = s.api.get_actual_working_times_by_workspacen_member("a9956d30-b201-418a-a03b-b9b8b55b2e3d", "204bf4d9-4569-4b7b-89b9-84f089201247")
DEBUG : 2022-01-11 17:36:04,354 : api.py : annoworkapi.api : _request_wrapper : Sent a request :: {'request': {'http_method': 'get', 'url': 'https://annowork.com/api/v1/workspacens/a9956d30-b201-418a-a03b-b9b8b55b2e3d/members/204bf4d9-4569-4b7b-89b9-84f089201247/actual-working-times', 'query_params': None, 'header_params': None, 'request_body': None}, 'response': {'status_code': 200, 'content_length': 209988}}
開発者用ドキュメント
Metadata
Release files for annoworkapi 3.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| annoworkapi-3.3.1.tar.gz | 112.9 kB | Without provenance | Details for annoworkapi-3.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| annoworkapi-3.3.1-py3-none-any.whl | Python 3 | none | any | Details for annoworkapi-3.3.1-py3-none-any.whl |
Total release size: 135.1 kB
Release files / annoworkapi-3.3.1.tar.gz
| Download URL | annoworkapi-3.3.1.tar.gz |
|---|---|
| Size | 112.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
746ae7d74f884ea67c022d3becb52face9f7365b13afc29dbaa18abee50de8ba
|
|
BLAKE2b-256 checksum How to use checksums |
21663347cc9cacddcb2d5e018612d9fe5921b73cfcdcf40fce507628cc1b2aaf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.21 {"installer":{"name":"uv","version":"0.12.21","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}
|
Release files / annoworkapi-3.3.1-py3-none-any.whl
| Download URL | annoworkapi-3.3.1-py3-none-any.whl |
|---|---|
| Size | 22.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b4e4194a6dfa0187b40c3a3ae474edc5398cd6892a49e19d317761ed5301581b
|
|
BLAKE2b-256 checksum How to use checksums |
c0dfb2fc7ec02b50d9b57de711d20fa868ef45f9b4933b6d1af7211144a47d63
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.21 {"installer":{"name":"uv","version":"0.12.21","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}
|
Security for annoworkapi 3.3.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.