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.2.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyhakuna-0.0.2.tar.gz
  • Upload date:
  • Size: 6.4 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.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.9

File hashes

Hashes for pyhakuna-0.0.2.tar.gz
Algorithm Hash digest
SHA256 2e35089c00119ca4974b78132ae8f239a88c451dd0092a1e2f57ca4b56cfffa7
MD5 5eb8b6566b599424938bb3b8951d10e3
BLAKE2b-256 5682dc5307441f8b9e1793591389259521a50a5b4ed56295f696870a1999e2b0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyhakuna-0.0.2-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.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.9

File hashes

Hashes for pyhakuna-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3f8b7f17c7222953f86de4826e5b62d5a1ba6a6a4c10bf36638dc4726be2a38e
MD5 d38384fd8194a9e9f63348385281e596
BLAKE2b-256 32d7e03299a29997bdf15eabac0569460041f8087210566d37681167ac2083d0

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