Skip to main content

saizeriya

PyPI Release Package CI

ghcr latest ghcr size

Unofficial Saizeriya Client, inspired by saizeriya.js

Installation

# from mise
mise use pipx:saizeriya               # CLI only
mise use 'pipx:saizeriya[extras=tui]' # CLI+TUI

# from pipx
pipx install saizeriya        # CLI only
pipx install 'saizeriya[tui]' # CLI+TUI

# from pip
pip install saizeriya        # CLI only
pip install 'saizeriya[tui]' # CLI+TUI

Usage

CLI

saizeriya --help
$ saizeriya --help
usage: saizeriya [-h] <command> ...

Saizeriya order CLI.

positional arguments:
  <command>
    start       Start a new ordering session
    use         Resume a saved session
    list        List saved sessions
    rm          Remove a saved session
    tui         Launch the Textual TUI (requires the 'tui' extra)
    fetch-menu  Crawl menu data for shops

options:
  -h, --help    show this help message and exit

available commands in start/use REPL:
   state
    Show current session state
   people <count>
    Set number of people at the table
   lookup <code>
    Look up an item by code
   add [--mod-id MOD_ID] [--mod-count MOD_COUNT] [--reorder] <code> [<count>]
    Add an item to the cart
   cart
    Show cart contents
   cart-page
    Navigate to the cart page
   remove <index>
    Remove an item from the cart by index
   submit
    Submit the current order
   account
    Show account summary
   receipt
    Show receipt
   call [{staff,dessert}]
    Call staff or dessert service
   menu
    Navigate to the menu page
   history
    Navigate to order history
   reorder <code>
    Reorder a previously ordered item
   alcohol
    Confirm alcohol order
   check {order,last,midnight}
    Check order/last-order/midnight status
   help
    Show this help message
   exit
    Exit the REPL
   quit
    Exit the REPL

To start session named lunch and ener REPL:

saizeriya start lunch "https://ioes03.saizeriya.co.jp/saizeriya3/?..."

TUI

# on the terminal
saizeriya tui

# on the web
saizeriya tui --serve

Docker

docker run --rm -it ghcr.io/eggplants/saizeriya

Library

import saizeriya

# check version
print(saizeriya.__version__)

# create client instance
client = saizeriya.SaizeriyaClient(
  qr_url_source="https://ioes03.saizeriya.co.jp/saizeriya3/?...",
  people_count=2,
)

# add new item to cart
in_cart_items = client.add_item('1202').cart

# check in-cart items
print(in_cart_items)

Mock server (saizeriya._mock)

pip install saizeriya[mock]
saizeriya-mock-server

Then, visit http://localhost:8080/.

License

MIT License

Metadata

Release files for saizeriya 0.3.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 saizeriya 0.3.0
File Size Uploaded Provenance
saizeriya-0.3.0.tar.gz 1.8 MB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for saizeriya 0.3.0
File Interpreter ABI Platform
saizeriya-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 3.5 MB

Release files / saizeriya-0.3.0.tar.gz

Download URL saizeriya-0.3.0.tar.gz
Size 1.8 MB
Tags Source
SHA-256 checksum
How to use checksums
4a83e878c1ba466485701234e7a4a8cde75f8ea863f2aab93bc22a03af9e8fd8
BLAKE2b-256 checksum
How to use checksums
596ba96ffcefbf6d29e586a547832183e39e094032fcd405a210b4d8f8bb5132
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / saizeriya-0.3.0-py3-none-any.whl

Download URL saizeriya-0.3.0-py3-none-any.whl
Size 1.8 MB
Tags Python 3
SHA-256 checksum
How to use checksums
3bdcdf265e6303a03c2b75b33ec0703ae80860b6d51eab6f96845528ddca738d
BLAKE2b-256 checksum
How to use checksums
0ea26caaec20af407707eeb3a771be79bfdc3f7c0d633752e2ef4ba01aeb1e03
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for saizeriya 0.3.0

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.

No provenance found

None of the files in this release were 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.

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