Skip to main content

A Python library to access the API of hakuna.ch

Project description

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 🎸!

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

pyhakuna-0.0.3.tar.gz (6.5 kB view hashes)

Uploaded Source

Built Distribution

pyhakuna-0.0.3-py3-none-any.whl (8.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page