Skip to main content

Woffu API client with access to several endpoints.

Project description

woffu-client

PyPI - Python version PyPI - Version PyPI - Downloads PyPI - License pre-commit.ci status

Woffu client with access to several endpoints outside their public API, for those users without access to a Woffu API key.

Installation

PyPI

The build package is publicly available on PyPI:

pip install woffu-client

Development

pip install -e .

Usage

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

CLI interface for Woffu API client

options:
  -h, --help            show this help message and exit
  --config CONFIG       Authentication file path (default: /home/mpalacin/.config/woffu/woffu_auth.json)
  --non-interactive     Set session as non-interactive

actions:
  {download-all-documents,get-status,sign,request-credentials,summary-report}
    download-all-documents
                        Download all documents from Woffu
    get-status          Get current status and current day's total amount of worked hours
    sign                Send sign 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.
    summary-report      Summary report of work hours for a given time window

Disclaimer

This project has been partially coded using AI (ChatGPT) for handling HTTP sessions and responses as well as almost all unit tests. Expect either duplicated tests or code that can be improved; I intend to use static code analysis tools later on to achieve a cleaner code.

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.1.4.tar.gz (32.6 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.1.4-py3-none-any.whl (16.8 kB view details)

Uploaded Python 3

File details

Details for the file woffu_client-0.1.4.tar.gz.

File metadata

  • Download URL: woffu_client-0.1.4.tar.gz
  • Upload date:
  • Size: 32.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.2.0 CPython/3.11.13

File hashes

Hashes for woffu_client-0.1.4.tar.gz
Algorithm Hash digest
SHA256 612f91dc0a42925dd47d5a3abe90ec228b5bafcfff176c1a881e21e5c8ed60ef
MD5 99e5e1d9da39591a9082b9201f82d9aa
BLAKE2b-256 2363d29f25b18377c251ea4d5d0381a34e45f9fa085f51350bce5cecaa339bea

See more details on using hashes here.

File details

Details for the file woffu_client-0.1.4-py3-none-any.whl.

File metadata

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

File hashes

Hashes for woffu_client-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c4adb538d5d19ef868fa0ad1e0dba6234a9f260721f31a33999e33dd116c530f
MD5 1da918b969a8f9f85dcdad962b2c6a46
BLAKE2b-256 67efa52a38b86bf79b90ba7ae17318553271fcebc6a3018d3084216c46683eed

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