Woffu API client with access to several endpoints.
Project description
woffu-client
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file woffu_client-0.1.5.tar.gz.
File metadata
- Download URL: woffu_client-0.1.5.tar.gz
- Upload date:
- Size: 33.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.2.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd6f9ee95c6772d8b1733aa0928927dfaca655603378b1012ca1f9cc8154045d
|
|
| MD5 |
9532a024604940ec01b2804c329ae16d
|
|
| BLAKE2b-256 |
a1882ee6719eccfacf8193fc5ee0ba0076e717691b27ea6f6f722c9b80b8f623
|
File details
Details for the file woffu_client-0.1.5-py3-none-any.whl.
File metadata
- Download URL: woffu_client-0.1.5-py3-none-any.whl
- Upload date:
- Size: 17.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.2.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
962a4ca90799f6783ad5a565949a6e89e04ec458db5119df9287bfc4098ded7e
|
|
| MD5 |
83e16de674b9c9e575eb302036dace82
|
|
| BLAKE2b-256 |
792eab819422cc79c33223659bacb1a90d076d1e2e36c40557680b97095ebb1c
|