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

Docker

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

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 = saizeriya.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)

pip install saizeriya[mock]
saizeriya-mock-server

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

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.5.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.5-py3-none-any.whl (1.7 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: saizeriya-0.1.5.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.5.tar.gz
Algorithm Hash digest
SHA256 121e0d976d3d230175aaf6cf0f3fabc060dc5fb36f10c5f82b5689bd6e8291d2
MD5 8db70bf86cb1afae33911b0123e7ac16
BLAKE2b-256 adf6341ce29d5c386afe1d89c8735b8c8cb817f512a4a499bc40eab1e7d0e1df

See more details on using hashes here.

File details

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

File metadata

  • Download URL: saizeriya-0.1.5-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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 17f6d4514ca7ffee9807f554aecd8d2e4accb0d99db6621a831902fd8d0ea38d
MD5 3d3f3240928ab782c35f41e89ac023a2
BLAKE2b-256 c30a734d5b0854133db4d5c25664932596d6ad2069e42f1d779e9615779a0cba

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