Skip to main content

Tool for fetching University of Oulu restaurant menus from Jamix.

Project description

jmenu

Command line tool for fetching University of Oulu restaurant menus from the Jamix API.

Doubles as a general library for fetching menu info from Jamix.

Installing

Python Package Index

jmenu is available for install on the python package index.

pip install jmenu

Building from source

For testing purposes, the package can be built from the repository source code.

pip install build
python3 -m build
pip install dist/<package_name>.whl

Usage

Command line tool

jmenu can be invoked from the command line as is:

jmenu [-h] [-v] [-e] [-t] [-l {fi,en}] [-a markers [G, VEG ...]]

All flags and parameters described below

Argument Example Description
-a, --allergens g veg Highlights appropriately marked results
Flag Description
-h, --help Display usage information
-v, --version Display version information
-e, --explain Display allergen marker information
-t, --tomorrow Fetch menu results for tomorrow
-l, --language Result language, opts: {fi, en}

Python library

jmenu can also be imported as a library:

from jmenu import main

main.run()

Documentation for the library can be found in the project pages.

Contributing

Pull requests are welcome. We use pre-commit hooks and GitHub actions to ensure code quality.

Development environment setup

Requirements

  • Python 3.10+
  • Virtualenv

Setup the development environment with

python3 -m virtualenv env
source env/bin/activate
pip install -r requirements.txt

Testing

Run the tool

python3 -m src.jmenu.main

Execute unit tests

pytest

Documentation

Documentation for the project is available in the project pages.

Build documentation from source

The documentation for the modules is built with Mkdocs. and the mkdocstrings extension, using google style docstrings.

You can build it from source by installing mkdocs

pip install mkdocs mkdocs-material
mkdocs serve

and navigating to localhost:8000 in your browser.

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

jmenu-1.10.1.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

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

jmenu-1.10.1-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

Details for the file jmenu-1.10.1.tar.gz.

File metadata

  • Download URL: jmenu-1.10.1.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for jmenu-1.10.1.tar.gz
Algorithm Hash digest
SHA256 09774fc1cd04f5c65f90236299bca55920632eefeb40b03da9d0fce04dc0420c
MD5 231e56d71c17f4dfb55eb927caa2542b
BLAKE2b-256 a9bc003972ce201bdc246e902943fcc4e02f41f41bd139e2d2789617b8816fe2

See more details on using hashes here.

Provenance

The following attestation bundles were made for jmenu-1.10.1.tar.gz:

Publisher: build-and-release.yml on jkerola/jmenu

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file jmenu-1.10.1-py3-none-any.whl.

File metadata

  • Download URL: jmenu-1.10.1-py3-none-any.whl
  • Upload date:
  • Size: 9.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for jmenu-1.10.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b0c2ea00fd7360151f03d095600c6dfdbf27537f953c2a39c9ef5bd4f1330e39
MD5 fae4f21723555e859b5e6c083af60acc
BLAKE2b-256 26f3acd44f81a9a3367869277f9825ab946d1228d7c989e31183201cdfccff45

See more details on using hashes here.

Provenance

The following attestation bundles were made for jmenu-1.10.1-py3-none-any.whl:

Publisher: build-and-release.yml on jkerola/jmenu

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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