Skip to main content

howest-resto 🍽️

CI Python >=3.10 License: MIT Quality Gate

Official, typed Python client library for Howest University of Applied Sciences student restaurant menus.

Designed with zero external dependencies and built-in async support for modern Python applications and Home Assistant integrations.


⚡ Highlights

  • Zero External Dependencies: Pure standard library (urllib & html.parser). No dependency bloat.
  • Async & Sync Support: Use HowestRestoClient for synchronous scripting or AsyncHowestRestoClient / async_get_* for asyncio / Home Assistant event loops.
  • ASP.NET Session Handling: Seamlessly executes the ASP.NET WebForms __VIEWSTATE lifecycle and dynamic campus switching.
  • Bilingual Dish Separation: Automatically separates Dutch lunch menus from English translations.
  • All 6 Howest Campuses: Kortrijk ('t Obeetje, Plaza, The Square) and Brugge (YUM, DAD, BSI).

📦 Installation

pip install howest-resto

🚀 Quickstart

import asyncio
from howest_resto import AsyncHowestRestoClient

async def main():
    client = AsyncHowestRestoClient()

    # Get today's menu for Kortrijk ('t Obeetje)
    today = await client.get_today_menu(campus="GKG")
    if today:
        print(f"Today ({today.date}):")
        for dish in today.dutch_dishes:
            print(f"  • {dish}")

    # Fetch next week's full menu for Brugge (YUM)
    menu = await client.get_menu(campus="RSS", week="next")
    print(f"\nNext week at {menu.campus_name}:")
    for day in menu.days:
        print(f"[{day.day} {day.date}] {', '.join(day.dutch_dishes)}")

asyncio.run(main())

Synchronous

from howest_resto import HowestRestoClient

client = HowestRestoClient()

# List all campuses
for campus in client.get_campuses():
    print(f"{campus.code}: {campus.name} ({campus.city})")

# Get current week's menu
menu = client.get_menu(campus="GKG")
for day in menu.days:
    print(f"{day.day} ({day.date}):")
    print("  NL:", day.dutch_dishes)
    print("  EN:", day.english_dishes)

🏠 Home Assistant Integration Usage

In a Home Assistant custom component coordinator:

from homeassistant.helpers.update_coordinator import DataUpdateCoordinator, UpdateFailed
from howest_resto import AsyncHowestRestoClient, HowestRestoError

class HowestRestoCoordinator(DataUpdateCoordinator):
    def __init__(self, hass, campus_code: str):
        super().__init__(hass, _LOGGER, name="Howest Resto", update_interval=timedelta(hours=2))
        self.client = AsyncHowestRestoClient()
        self.campus_code = campus_code

    async def _async_update_data(self):
        try:
            return await self.client.get_menu(campus=self.campus_code)
        except HowestRestoError as err:
            raise UpdateFailed(f"Error fetching Howest menu: {err}") from err

🏫 Supported Campuses

Code Campus Name City Restaurant Name
GKG Graaf Karel de Goedelaan Kortrijk 't Obeetje
RDR Renaat de Rudderlaan Kortrijk Plaza
BWE Botenkopersstraat Kortrijk The Square
RSS Rijselstraat Brugge YUM
SJS Sint-Jorisstraat Brugge DAD
SBR Spoorwegstraat Brugge BSI

🛠️ Development & Testing

# Clone the repository
git clone https://github.com/MauroDruwel/howest-resto.git
cd howest-resto

# Install in editable mode with dev dependencies
pip install -e ".[dev]"

# Run linter
ruff check .

# Run test suite
pytest -v --cov=howest_resto

📄 License

MIT License. See LICENSE for details.

Metadata

Release files for howest-resto 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for howest-resto 1.0.0
File Size Uploaded Provenance
howest_resto-1.0.0.tar.gz 10.1 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for howest-resto 1.0.0
File Interpreter ABI Platform
howest_resto-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 18.5 kB

Release files / howest_resto-1.0.0.tar.gz

Download URL howest_resto-1.0.0.tar.gz
Size 10.1 kB
Tags Source
SHA-256 checksum
How to use checksums
067fade2d958392c302fc4d818cd993669c6452446d42e6475579691dd10f967
BLAKE2b-256 checksum
How to use checksums
dab9a63220a71c5603c66eb1f17791d88c7c801689e4eb6c20a74a744e7a07f4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.

Transparency log

Release files / howest_resto-1.0.0-py3-none-any.whl

Download URL howest_resto-1.0.0-py3-none-any.whl
Size 8.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
219fe7c54a008db5f2cabae017d25369c85fb2d2a15c7ab4af76bfe1dedf1bde
BLAKE2b-256 checksum
How to use checksums
e1657d75768bbfce267fe2e67f817881f60a2ea77bff63cb9305192b43dcf1e1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.

Transparency log

Security for howest-resto 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for howest_resto-1.0.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page