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.
Metadata
Release files for jmenu 1.10.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| jmenu-1.10.1.tar.gz | 9.9 kB | With provenance | Details for jmenu-1.10.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| jmenu-1.10.1-py3-none-any.whl | Python 3 | none | any | Details for jmenu-1.10.1-py3-none-any.whl |
Total release size: 19.7 kB
Security for jmenu 1.10.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.