Skip to main content

Loyverse SDK

Asynchronous Python SDK, CLI, and MCP server for the Loyverse API — a point-of-sale (POS) platform for managing sales, inventory, and customers.

Features

  • Async/await client built on httpx for non-blocking API calls
  • Type-safe request/response models powered by Pydantic
  • Automatic pagination with cursor-based iter_all() iteration
  • Full CRUD across 16 endpoints
  • loyverse CLI — list, create, update, delete, export, and analyze from the terminal
  • loyverse-mcp server — 18 read-only tools exposing your POS data to LLM clients (Claude Desktop, etc.)
  • DuckDB export — a local relational warehouse for SQL analytics
  • Flat-file export — write any query straight to CSV or Parquet
  • Analytics engine — revenue, products, customers, profitability, inventory, and more

Install

uv add loyverse_sdk          # core SDK
uv add "loyverse_sdk[mcp]"   # with the MCP server

See Installation for pip, GitHub, and extras.

Quickstart

import asyncio
from loyverse_sdk import LoyverseClient

async def main():
    client = LoyverseClient()                 # reads your token from ~/.loyverse
    response = await client.customers.list()
    print(f"Found {len(response.items)} customers")
    await client.close()

asyncio.run(main())

Run loyverse init once to store your API token. See Configuration and Quickstart to get going.

Documentation

Full documentation lives in the docs/ wiki — start at Home. Highlights:

The pages under docs/ use [[wikilink]] syntax so they render as a connected GitHub Wiki. When browsing them in the repo, use the relative links above.

License

MIT — see LICENSE.

Metadata

Release files for loyverse-sdk 0.4.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for loyverse-sdk 0.4.3
File Size Uploaded Provenance Actions
loyverse_sdk-0.4.3.tar.gz 203.7 kB Without provenance Details for loyverse_sdk-0.4.3.tar.gz

Release files / loyverse_sdk-0.4.3.tar.gz

Download URL loyverse_sdk-0.4.3.tar.gz
Size 203.7 kB
Tags Source
SHA-256 checksum
How to use checksums
5877589bf36913c1884871d8280111eeecbc840f56d85058c60a6d707316d61b
BLAKE2b-256 checksum
How to use checksums
8d4ce33a89e728a3cf972ed1e500e5c88ba5df96ee85ee82aa666bfb6ba72a54
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Linux Mint","version":"21.3","id":"virginia","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for loyverse-sdk 0.4.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page