Skip to main content

Unofficial Saizeriya Client

Project description

saizeriya

PyPI Release Package CI

ghcr latest ghcr size

Unofficial Saizeriya Client, inspired by saizeriya.js

Installation

pip install saizeriya
# or, (CLI only)
pipx install saizeriya

Usage

CLI

$ saizeriya
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
    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/?..."

Library

import saizeriya

# check version
print(saizeriya.__version__)

# create client instance
client = new SaizeriyaClient(
  qr_url_source="https://example.com/saizeriya3/qr",
  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)

Run mise run mock, then visit http://localhost:8080/.

Docker

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

License

MIT License

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

saizeriya-0.1.3.tar.gz (1.7 MB view details)

Uploaded Source

Built Distribution

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

saizeriya-0.1.3-py3-none-any.whl (1.7 MB view details)

Uploaded Python 3

File details

Details for the file saizeriya-0.1.3.tar.gz.

File metadata

  • Download URL: saizeriya-0.1.3.tar.gz
  • Upload date:
  • Size: 1.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","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}

File hashes

Hashes for saizeriya-0.1.3.tar.gz
Algorithm Hash digest
SHA256 46359fab6ce4229c1ded35c7d2a9831bfd26c24e979a39379f2216929e2a1359
MD5 aa7930dbcfeb753f4dc6aafaad6488a3
BLAKE2b-256 8fe8dfcee1d57a40d5c3f4d91f7c943568fcfa7e3d3f081f5395ddd65cd07079

See more details on using hashes here.

File details

Details for the file saizeriya-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: saizeriya-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 1.7 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","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}

File hashes

Hashes for saizeriya-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7c0759db50032c936317d07135758742a7ffc44419d79d5ac5c0b781d8e41a6f
MD5 b8506bc5a2f8c2da48e90e6605db5b00
BLAKE2b-256 6f750423da8fd15290a4b73f08100fe534be4079eb59b4505b1a395d44b57ad5

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