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.milops.org

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.milops.org")
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.milops.org 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.7.0.tar.gz (22.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.7.0-py3-none-any.whl (26.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for nemlai-0.7.0.tar.gz
Algorithm Hash digest
SHA256 256574f11fc21985eedb1dea7c086aa6feb734b52643ec1f6f832fe3b3810989
MD5 c7b4e279ab88b4869c8dbf36bcdb8fb0
BLAKE2b-256 cad25474c2350563057495a8b0a1c910060553bedb60ed72c7b6dc6d38bca8a1

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for nemlai-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7095b17ff5c587e9ec9544ed31c83ff01ef860a01a97348ca129099674a10c86
MD5 ace195a1e8c3fc777ff3309c2f5f74bb
BLAKE2b-256 1fdb5c4802298cde5ad476f96825efde9ab89990856c4edfeaef0e223d43d89e

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