limitr-py

Installation
SKILL.md

Limitr for Python

limitr embeds the Limitr engine (the Stof spec compiled to BSTF) in a Stof document (pystof, from the stof package) and wraps the policy's functions (at root.policy) as methods. It runs in-process; no network calls happen in any hot path, and Cloud mode syncs over a background WebSocket.

This skill covers the Python API. What a policy means and how a call is decided is in the limitr skill; read it before designing a policy or explaining a result. The API is the TypeScript SDK's (the limitr-ts skill) in snake_case, with options as keyword arguments and no await.

Install

pip install limitr

Python 3.8+. It depends on stof (0.11.6 or later) and websockets (for Cloud). A tutorial with runnable programs is in the repo's python/tutorial (and python/tutorial/network).

Installs
3
GitHub Stars
10
First Seen
2 days ago