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.
  • A complete GraphQL operation manifest at src/eetlijst/operations.graphql for ariadne-codegen.
  • Example scripts matching the TS examples.

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.1.tar.gz (48.1 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.1-py3-none-any.whl (67.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: eetlijst_python-0.0.1.tar.gz
  • Upload date:
  • Size: 48.1 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.1.tar.gz
Algorithm Hash digest
SHA256 8cf072531fbf4279f8ca030c504d70d4f14c5322040aaae230a8253a5622ebaf
MD5 466f5a78e6d3c6f11ee646245e863641
BLAKE2b-256 ce1ea9e481f34ff33575cd3faefd34185f504627fbc11c290918c91a9b919295

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for eetlijst_python-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 54480a1a7c4a1caab1f45b9ee757f56ceb0e2816714c11950928d41015f20007
MD5 d605c40b89d835648a3936fedcdda1a6
BLAKE2b-256 4367f9d2cdf42426dc892a4b7f86e9380a2fd91dcaff0eb30dc06dae35a54b7c

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