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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file pyhakuna-0.0.3.tar.gz.

File metadata

  • Download URL: pyhakuna-0.0.3.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.8.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for pyhakuna-0.0.3.tar.gz
Algorithm Hash digest
SHA256 54a197cff6d199dc3ed951d8b67f59b966c747cba217137a6a497625dda01c97
MD5 dc88df30652bec458602f5c2a4484a4b
BLAKE2b-256 f36fcd0255dc9e0337336847dd1c3f02876c4e14732d42bfb4224484b257c9a3

See more details on using hashes here.

File details

Details for the file pyhakuna-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: pyhakuna-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.8.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for pyhakuna-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 6ea6f596fef83084291c6280a214b8126943421f5be642ab4b2ab92e9fd0de1f
MD5 d6dd662ccdc104c0ac79506d23a325ec
BLAKE2b-256 41a321c0df87de0d122669cb18afdb96fa212670dbc4b4f5af0ba77b2af061a7

See more details on using hashes here.

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