Skip to main content

Python-eetlijst

Unofficial Python API for interfacing with Eetlijst.nl, a Dutch website used by students to manage dinner status and expenses.

Linting Testing PyPI version

Current features include:

  • List all residents
  • Get the name of the list
  • Get or set the noticeboard
  • Get or set the dinner status

Installation

To install this module, run pip install python-eetlijst to install from Pip. If you prefer to install the latest version from Github, use pip install git+https://github.com/basilfx/python-eetlijst.

Examples

Three examples are included in the examples/ folder. The purpose is to demonstrate some functionality.

dinner.py

Print or set the current dinner status, in a terminal window. Run it with python dinner.py <username> <password> get|set.

It shall print something similar to this, when getting the current status:

Dinner status for 2014-03-30. The deadline is 16:00:00, and has passed.

In total, 4 people (including guests) will attend diner.

Unknown1 | Unknown2 | Unknown3 | Unknown4 | Unknown5
   C     |  D + 2   |    X     |    X     |    ?

X = No, C = Cook, D = Dinner, ? = Unknown

noticeboard.py

View or change the current noticeboard. Run it with python noticeboard.py <username> <password> get|set.

session.py

Given a session id, print the name of the Eetlijst list. Run it with python session.py <session_id>

Contributing

See the CONTRIBUTING.md file.

Tests

Currently, a minimal set of tests have been written. These tests only verify the 'scraping' functionality and correct sesision handling, by faking responses. However, they do not test any submit functionality, since it would require an active connection with Eetlijst.nl during the tests.

To run the tests, please clone this repository and run poetry run pytest.

Documentation

This is future work :-)

For now, please look at the source code, the tests and the examples.

License

See the LICENSE.md file (GPLv3 license). You may change the code freely, but any change must be made available to the public.

Disclaimer

Use this library at your own risk. I cannot be held responsible for any damages.

This page and its content is not affiliated with Eetlijst.nl.

Metadata

Release files for python-eetlijst 2.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 python-eetlijst 2.0.0
File Size Uploaded
python_eetlijst-2.0.0.tar.gz 20.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for python-eetlijst 2.0.0
File Interpreter ABI Platform
python_eetlijst-2.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 53.1 kB

Release files / python_eetlijst-2.0.0.tar.gz

Download URL python_eetlijst-2.0.0.tar.gz
Size 20.5 kB
Tags Source
SHA-256 checksum
How to use checksums
2bdde14cf0da162a7d2e416d91cf63c3e04ec5680bfc5852165498fe696eff90
BLAKE2b-256 checksum
How to use checksums
7874a04e015cb53514dc69682c55c6c154340f8e3ec7619281043e3f5224b3e4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.2.2 CPython/3.10.8 Darwin/22.1.0

Release files / python_eetlijst-2.0.0-py3-none-any.whl

Download URL python_eetlijst-2.0.0-py3-none-any.whl
Size 32.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4043c528b4fe6e7f9594d2aeae554427bbe5ffe8c12d9785dc2cfe3c6cdabe2b
BLAKE2b-256 checksum
How to use checksums
fdc29f456acccff25dbfb81d6cf3347b2352742c5adcf22dcb2320d7a85418c1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.2.2 CPython/3.10.8 Darwin/22.1.0

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 release files

1.4.0

1 release file

1.0

1 release file

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