Skip to main content

annowork-api-python-client

Annowork WebAPIのPython用クライントライブラリです。

Build Status PyPI version Python Versions Documentation Status

Requirements

  • Python 3.9+

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}}

開発者用ドキュメント

README_for_developer.md 参照

Metadata

Release files for annoworkapi 3.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for annoworkapi 3.3
File Size Uploaded
annoworkapi-3.3.tar.gz 20.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for annoworkapi 3.3
File Interpreter ABI Platform
annoworkapi-3.3-py3-none-any.whl Python 3 none any Details

Total release size: 42.5 kB

Release files / annoworkapi-3.3.tar.gz

Download URL annoworkapi-3.3.tar.gz
Size 20.1 kB
Tags Source
SHA-256 checksum
How to use checksums
a1b422e990b7f9d7e0871cfca4c305dabf7d498e43f606f8c42b79f0ddbf9473
BLAKE2b-256 checksum
How to use checksums
decec18a9b33ca717f333b382d3a3a432c2d9242902f0831948f6b0f73035854
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.10.15 Linux/6.8.0-1017-azure

Release files / annoworkapi-3.3-py3-none-any.whl

Download URL annoworkapi-3.3-py3-none-any.whl
Size 22.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
34d1549219e16fdc438b45a6063dd1b1e62971bcda90a93af6f7c6d7a4469310
BLAKE2b-256 checksum
How to use checksums
d40d4a537edb97ce6ee23c514e08ac6af1d4cde2c4234437713a2ea816ecc928
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.10.15 Linux/6.8.0-1017-azure

Release history Release notifications | RSS feed

This release

3.3 This release

2 release files

3.2.1

2 release files

3.2.0

2 release files

3.1.0

2 release files

3.0.4

2 release files

3.0.3

2 release files

3.0.2

2 release files

3.0.1

2 release files

2.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page