Skip to main content

Python Clinet Library of Annowork WebAPI

Project description

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 参照

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

annoworkapi-3.3.tar.gz (20.1 kB view details)

Uploaded Source

Built Distribution

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

annoworkapi-3.3-py3-none-any.whl (22.4 kB view details)

Uploaded Python 3

File details

Details for the file annoworkapi-3.3.tar.gz.

File metadata

  • Download URL: annoworkapi-3.3.tar.gz
  • Upload date:
  • Size: 20.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.10.15 Linux/6.8.0-1017-azure

File hashes

Hashes for annoworkapi-3.3.tar.gz
Algorithm Hash digest
SHA256 a1b422e990b7f9d7e0871cfca4c305dabf7d498e43f606f8c42b79f0ddbf9473
MD5 e741237a25e02f6616041e050d98f10c
BLAKE2b-256 decec18a9b33ca717f333b382d3a3a432c2d9242902f0831948f6b0f73035854

See more details on using hashes here.

File details

Details for the file annoworkapi-3.3-py3-none-any.whl.

File metadata

  • Download URL: annoworkapi-3.3-py3-none-any.whl
  • Upload date:
  • Size: 22.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.10.15 Linux/6.8.0-1017-azure

File hashes

Hashes for annoworkapi-3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 34d1549219e16fdc438b45a6063dd1b1e62971bcda90a93af6f7c6d7a4469310
MD5 8898929c1b58427df1ed7c4bd2a3b42b
BLAKE2b-256 d40d4a537edb97ce6ee23c514e08ac6af1d4cde2c4234437713a2ea816ecc928

See more details on using hashes here.

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