Skip to main content

Python rewrite of the Eetlijst GraphQL client

Project description

eetlijst-python

A simple Python API client for Eetlijst.

[!NOTE] This project is made for use in a student house, and will probably not be maintained. Most of this Python port was converted from the TypeScript version (https://github.com/DJ1TJOO/eetlijst-api-ts) using Google Gemini.

Usage

Create a virtual environment and install the package:

python -m venv .venv
# Activate virtual environment (.venv\Scripts\Activate.ps1 on Windows or source .venv/bin/activate on Linux/macOS)
python -m pip install -e .

The API key can be retrieved from the account page, under Developer API key (BETA), at https://v5.eetlijst.nl/account

import asyncio
from eetlijst import Eetlijst

eetlijst = Eetlijst("<API_KEY>")

async def main():
    app_status = await eetlijst.app.status()
    print(app_status)

if __name__ == "__main__":
    asyncio.run(main())

See Examples (./examples/) for more.

What is Included

  • Service classes for app, events, expenses, groups, users, groups.users, groups.list, events.attendance, and expenses.settlements.

Development & Codegen

This project uses ariadne-codegen (https://github.com/mirumee/ariadne-codegen) for GraphQL code generation.

Run code generation:

ariadne-codegen

The configuration in pyproject.toml points to the GraphQL schema and outputs generated code into src/generated/.

Building

To build the package locally, install the build tool first:

python -m pip install build

Build the package:

python -m build

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

eetlijst_python-0.0.2.tar.gz (48.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

eetlijst_python-0.0.2-py3-none-any.whl (67.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: eetlijst_python-0.0.2.tar.gz
  • Upload date:
  • Size: 48.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for eetlijst_python-0.0.2.tar.gz
Algorithm Hash digest
SHA256 e8f60c543807836c4c5f0f258b619e7abcab986a7bea81ebff445a73cd43c4c2
MD5 cc14ae6b89652063460a6df7b6b69755
BLAKE2b-256 1672f0b8ea2102470c059aaddb9a4c04425fde4e1394a65d15f918172489c96d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for eetlijst_python-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3001f6d8de31a5f2a8ecc17f39961baf6f7fc4c394b1cddb6715da7791677649
MD5 a81de444f9bcae14e6db256780481c06
BLAKE2b-256 6e614b228fe72a850bf0874f86a705582cf713ea1d4ef1a01aca3486095e1105

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page