Skip to main content

Woffu API client with access to several endpoints.

Project description

woffu-client

Woffu API client with access to several endpoints.

Installation

Development

pip install -e .

TODO: Instructions for pre-built package

Usage:

$ woffu-cli -h
usage: woffu-cli [-h] [--config CONFIG] [--interactive INTERACTIVE] {download-all-documents,get-status,sign,request-credentials} ...

CLI interface for Woffu API client

options:
  -h, --help            show this help message and exit
  --config CONFIG       Authentication file path (default: /home/${USER}/.config/woffu/woffu_auth.json)
  --interactive INTERACTIVE
                        Set session as interactive or non-interactive (default: True)

actions:
  {download-all-documents,get-status,sign,request-credentials}
    download-all-documents
                        Download all documents from Woffu
    get-status          Get current status and current day's total amount of worked hours
    sign                Send sing in or sign out request based on the '--sign-type' argument
    request-credentials
                        Request credentials from Woffu. For non-interactive sessions, set username and password as environment variables WOFFU_USERNAME and WOFFU_PASSWORD.

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

woffu_client-0.0.1a3.tar.gz (20.4 kB view details)

Uploaded Source

Built Distribution

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

woffu_client-0.0.1a3-py3-none-any.whl (14.7 kB view details)

Uploaded Python 3

File details

Details for the file woffu_client-0.0.1a3.tar.gz.

File metadata

  • Download URL: woffu_client-0.0.1a3.tar.gz
  • Upload date:
  • Size: 20.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.13

File hashes

Hashes for woffu_client-0.0.1a3.tar.gz
Algorithm Hash digest
SHA256 855d886acc7bcaa0ab8454bf0bd944a26f758b9e452e6b8f872f60d66dcc8d34
MD5 3dbcdf9b592c6ccd1b5e841c145e9833
BLAKE2b-256 34bb4710d0dc2eff3cbbd3e548cc7907f358f4dd4be6aa070bb97893c4051a79

See more details on using hashes here.

File details

Details for the file woffu_client-0.0.1a3-py3-none-any.whl.

File metadata

  • Download URL: woffu_client-0.0.1a3-py3-none-any.whl
  • Upload date:
  • Size: 14.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.13

File hashes

Hashes for woffu_client-0.0.1a3-py3-none-any.whl
Algorithm Hash digest
SHA256 dd9092c81b10eb3d5ed64d3bba4488796fe16b71daff9a277d3540445663f690
MD5 107707e665a6bf29304105da69e8ec20
BLAKE2b-256 72cac154eebdf67fe673f8969f15cd738f929483b5864a83c6a7d6d68cb9a26f

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