pyhakuna
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:
- requests, a simple HTTP client for Python, which is made available under the terms of the Apache Software License.
Open source software rocks 🎸!
Metadata
Release files for pyhakuna 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyhakuna-0.0.3.tar.gz | 6.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyhakuna-0.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.4 kB
Release files / pyhakuna-0.0.3.tar.gz
| Download URL | pyhakuna-0.0.3.tar.gz |
|---|---|
| Size | 6.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
54a197cff6d199dc3ed951d8b67f59b966c747cba217137a6a497625dda01c97
|
|
BLAKE2b-256 checksum How to use checksums |
f36fcd0255dc9e0337336847dd1c3f02876c4e14732d42bfb4224484b257c9a3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / pyhakuna-0.0.3-py3-none-any.whl
| Download URL | pyhakuna-0.0.3-py3-none-any.whl |
|---|---|
| Size | 8.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6ea6f596fef83084291c6280a214b8126943421f5be642ab4b2ab92e9fd0de1f
|
|
BLAKE2b-256 checksum How to use checksums |
41a321c0df87de0d122669cb18afdb96fa212670dbc4b4f5af0ba77b2af061a7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|