Async Python client for the Timebutler API
Project description
timebutler_client
Async Python client for the Timebutler API (official docs).
[!IMPORTANT] This is NOT an official client by Timebutler GmbH, just a community project.
Installation
pip install timebutler-client
Usage
from timebutler_client import TimebutlerClient
# Create client with your API key
client = TimebutlerClient(api_key="your-api-key")
# Fetch absences for a specific year
absences = await client.get_absences(year=2026)
for absence in absences:
print(f"{absence.employee_number}: {absence.from_date} - {absence.to_date} ({absence.absence_type})")
Features
[!NOTE]
We only implemented theget_absencesso far, because the API is not very convenient to develop against (no OpenAPI, no sandbox or test system, only admin API keys).
- Async HTTP client using
aiohttp - Typed responses using Pydantic models
- Strict date parsing (European
dd/mm/yyyyformat) - Employee number handling with leading zeros preserved
Development
This project is based on the Hochfrequenz Python Template Repository. Refer to that repository for detailed setup instructions including tox configuration and IDE setup.
Quick Start
# Create dev environment
tox -e dev
# Run tests
tox -e tests
# Run linting
tox -e linting
# Run type checking
tox -e type_check
License
MIT
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file timebutler_client-0.0.2.tar.gz.
File metadata
- Download URL: timebutler_client-0.0.2.tar.gz
- Upload date:
- Size: 12.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
57f70d549b2d782522677ab9001f57b43ebbe2a9c0f87ff78535efe913f055c8
|
|
| MD5 |
a42265c929d13ea70f1bdfa2f89cec9b
|
|
| BLAKE2b-256 |
c6bc3784c68251554f81680febc831418755a22780059f3d0ecc78d60cda9ab5
|
Provenance
The following attestation bundles were made for timebutler_client-0.0.2.tar.gz:
Publisher:
python-publish.yml on Hochfrequenz/timebutler_client.py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
timebutler_client-0.0.2.tar.gz -
Subject digest:
57f70d549b2d782522677ab9001f57b43ebbe2a9c0f87ff78535efe913f055c8 - Sigstore transparency entry: 829411062
- Sigstore integration time:
-
Permalink:
Hochfrequenz/timebutler_client.py@17f349ef9ca04f8521fb8f49b339165a654e2df0 -
Branch / Tag:
refs/tags/v0.0.2 - Owner: https://github.com/Hochfrequenz
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@17f349ef9ca04f8521fb8f49b339165a654e2df0 -
Trigger Event:
release
-
Statement type:
File details
Details for the file timebutler_client-0.0.2-py3-none-any.whl.
File metadata
- Download URL: timebutler_client-0.0.2-py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9f757cedcebfadb84b30da2db94518cb6190698cd2c55cf93769365049f87727
|
|
| MD5 |
a1af7d340ef36cbded22bfbe04f62613
|
|
| BLAKE2b-256 |
c50c83a53256744945f13e9e76a7e21f25a8346f2c1e497057d9b773dcb91494
|
Provenance
The following attestation bundles were made for timebutler_client-0.0.2-py3-none-any.whl:
Publisher:
python-publish.yml on Hochfrequenz/timebutler_client.py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
timebutler_client-0.0.2-py3-none-any.whl -
Subject digest:
9f757cedcebfadb84b30da2db94518cb6190698cd2c55cf93769365049f87727 - Sigstore transparency entry: 829411065
- Sigstore integration time:
-
Permalink:
Hochfrequenz/timebutler_client.py@17f349ef9ca04f8521fb8f49b339165a654e2df0 -
Branch / Tag:
refs/tags/v0.0.2 - Owner: https://github.com/Hochfrequenz
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@17f349ef9ca04f8521fb8f49b339165a654e2df0 -
Trigger Event:
release
-
Statement type: