Skip to content

cimnine/pyhakuna

Repository files navigation

pyhakuna

PyPI Version PyPI License PyPI Status

pyhakuna is a client to access the API of the time keeping service hakuna.ch. The Hakuna API is – unfortunately – personal and currently does not allow to access company-wide data.

Requirements

This tool requires Python 3.

Installation

pip3 install -U pyhakuna

Use the same command to update to a new version.

Usage

from pyhakuna import Hakuna

h = Hakuna("instance-name", "api-token")
u = h.personal().users().me()

The API tries to follow the structure of the Hakuna API documentation.

Development

python3 -m venv .venv
source .venv/bin/active
python3 -m pip install -U pip setuptools wheel
python3 -m pip install -r requirements.txt
python3 -m pip install -e .

Release

See https://packaging.python.org/tutorials/packaging-projects/.

tl;dr:

rm -rf dist *.egg-info
python3 -m pip install -U build twine
python3 -m build
python3 -m twine upload dist/*
# Username: __token__

Licensing and Copyright

This code is copyrighted. But it can be used under the terms of the MIT license for your own purposes. It builds upon the following third party modules:

Open source software rocks 🎸!