Install
View on npm
View on PyPI
fetch). Python requires 3.9+ and depends on httpx.
Initialize the client
- JavaScript / TypeScript
- Python
Make a decision
- JavaScript / TypeScript
- Python
Shortcuts
Each shortcut builds the matching question, makes one single decision, and returns just the result payload.- JavaScript / TypeScript
- Python
Batch requests
One document, many questions -> an aligned array/list. See Batch requests for grouped multi-document batching.- JavaScript / TypeScript
- Python
Both SDKs expose the same client surface: one client object, five decision kinds, matching shortcuts, errors, and retry behavior. Python additionally ships an
AsyncLevantoClient with an identical API, used with await:Full reference
Each README is a complete reference: every exported function and type, every default, and every behavior not obvious from the signatures.levanto-js README
Full reference for the TypeScript/JavaScript client: every export, type, and behavior.
levanto-py README
Full reference for the Python client: every export, type, and behavior.