Skip to main content

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

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
  • Trains a local ML model 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nemlai-0.3.1.tar.gz (12.0 kB view details)

Uploaded Source

Built Distribution

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

nemlai-0.3.1-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

Details for the file nemlai-0.3.1.tar.gz.

File metadata

  • Download URL: nemlai-0.3.1.tar.gz
  • Upload date:
  • Size: 12.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for nemlai-0.3.1.tar.gz
Algorithm Hash digest
SHA256 7daee3a65ebb2c2bd13d79b02780bb1d42b06a04c6559bfb52b4ac4a1d13edcf
MD5 1db10cadf9489984c13fe5f8690d4320
BLAKE2b-256 6718e77e64e1e92b86f4a9e7b54cf01d44469b38a30a7e11b6368de3a5829c35

See more details on using hashes here.

File details

Details for the file nemlai-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: nemlai-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 15.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for nemlai-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 aa63b77964010e2a559add4c0a52d5bbdf282fac9363cd752790f3deff879e4e
MD5 9d7fb6d9ff8252afdea2012521718635
BLAKE2b-256 2fb654d8598eaf8068a36bb4d38fccec5b2174720d9a2449a7612d80aefffe2b

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