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)

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.2.tar.gz (32.9 kB 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.2-py3-none-any.whl (35.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: saizeriya-0.1.2.tar.gz
  • Upload date:
  • Size: 32.9 kB
  • 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.2.tar.gz
Algorithm Hash digest
SHA256 ab1c3d9a514ef4830a30823ce3e1b8e07ed1698d23a38f579f2ab432dc273c6c
MD5 1c2ea033288e35876aca402cb8108925
BLAKE2b-256 e38d30cfed4810b0d5fc524fc12b770e6af17819a6fd6505f4bb49dda679ce17

See more details on using hashes here.

File details

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

File metadata

  • Download URL: saizeriya-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 35.0 kB
  • 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 58e51d42ac168d3e87b3e2b793f1eedcb62ba91b4a1219e1358374dee1ac359a
MD5 724fa0d2f1a68c83a1974082a22a9caa
BLAKE2b-256 d31baa80dccdcedb5e5fbfd9e0b608b7caa7f520a4cd974136a2aa42ac9f73f1

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