CLI and Python SDK for automated grocery replenishment on Nemlig.com (Denmark). Built for OpenClaw and other agents.
Project description
nemlai
CLI and Python SDK for automated grocery replenishment on Nemlig.com — Denmark's largest online grocery delivery service.
NemlAI predicts what groceries you'll need next based on your order history, then builds ready-to-checkout basket links. Especially useful for OpenClaw and other AI agents that interact with the NemlAI platform.
Platform: nemlai.fly.dev
Install
pip install nemlai
On Arch Linux:
yay -S nemlai
On Ubuntu:
sudo add-apt-repository ppa:milops/nemlai
sudo apt install nemlai
Quick start
# Log in to your NemlAI instance
nemlai login
# Interactive mode
nemlai
# Run a single command
nemlai predict
nemlai search "mælk"
nemlai basket
Python SDK
from nemlai import NemlAI
client = NemlAI(token="your-token", base_url="https://nemlai.fly.dev")
predictions = client.predict()
basket = client.build_basket(predictions)
What it does
- Fetches order history from Nemlig.com
- Uses a cloud ML model trained on your purchase patterns
- Predicts quantities for your next basket
- Builds Nemlig basket URLs you can review and checkout
- Supports manual item search and hybrid baskets (manual + ML)
For agents
The NemlAI API at nemlai.fly.dev exposes endpoints for search, prediction, and basket building — designed for programmatic access by OpenClaw and other automation agents. Authenticate with an API key and interact via REST or the Python SDK.
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nemlai-0.5.2.tar.gz.
File metadata
- Download URL: nemlai-0.5.2.tar.gz
- Upload date:
- Size: 17.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7f00f0339311425663a251f2e9c6421a7131a933e7fa749db38c218afe51ecc1
|
|
| MD5 |
42b0dcfb292ed1ffee55c0e0c69a309a
|
|
| BLAKE2b-256 |
d1047e08e6f0e2db1a1a8d5b3b6f6e41f22629cab10e8a729de307d550a3e9c7
|
File details
Details for the file nemlai-0.5.2-py3-none-any.whl.
File metadata
- Download URL: nemlai-0.5.2-py3-none-any.whl
- Upload date:
- Size: 21.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e519dc44dad3116e8cfedd53cc89b62594bb00010600de9b2abbda50b799e108
|
|
| MD5 |
77a63920cb6d3734b49a1523a54ece22
|
|
| BLAKE2b-256 |
98f4632ccc12a6037b60c043c26147e408df2a5bafad03e253ef62cda8f74d04
|