Skip to content

Repository files navigation

OrderFlow

OrderFlow is a small, modular, deterministic order intake + state + fulfillment system with a CLI tool orderflow.

Installation

python -m venv .venv
source .venv/bin/activate
pip install -e .

Basic usage

Place an order:

orderflow place --mobile +447700900123 --message "ORDER COFFEE=2 TEA=1"

List outstanding orders:

orderflow list
orderflow list --format lines

Fulfill an order (default auth code is 123456):

orderflow fulfill --order-id ORD-1A2B3C4D --auth-code 123456

Show a specific order:

orderflow show --order-id ORD-1A2B3C4D

Process a batch file (use - for stdin):

orderflow batch --input orders.txt

View metrics:

orderflow metrics
orderflow metrics --reset

Authentication

The default auth code is 123456. Override it using --auth-code or the ORDERFLOW_AUTH_CODE environment variable.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages