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.4.tar.gz (49.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.4-py3-none-any.whl (68.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: eetlijst_python-0.0.4.tar.gz
  • Upload date:
  • Size: 49.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.4.tar.gz
Algorithm Hash digest
SHA256 925e5d96e75f78cc2d05fe4ff4b39eab2fcb443d87a49ff7f45761828aff66fa
MD5 9b93c81c83f39b0df0aa00379a673f31
BLAKE2b-256 bc348e5fdaa4e08100f19454494eadfae9091d7fabed71e3853616b71e1df1fd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for eetlijst_python-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 952c24b9b56f42ac83dcccf6f776b1820e63689ae411228660ec8f9498e5c665
MD5 f82d59aab4743d360249b1a8aca2d5dc
BLAKE2b-256 3e4174b48fd470c49a29468835c774179582aa425f4e9ea6fb1876fbad400643

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