Skip to main content

strands-lexio

Strands Agents tools for the Lexio Rent API. Give an agent read access to a rental company's fleet, availability and prices, rentals and customers, and optionally let it create priced quotes.

Lexio Rent is rental management software for professional car, van and two-wheeler rental companies: bookings, digital rental agreements, condition reports, deposits, maintenance and invoicing. This package turns its public REST API into Strands tools, built on the official Python client lexio-rent.

Install

pip install strands-lexio

You need a Lexio Rent organization on a plan that includes the API, and an API key (lck_...) from Settings → Developer → API tokens in Lexio. For an agent that only answers questions, give the key read scopes: vehicles.read, offers.read (availability), rentals.read, customers.read, catalog.read. Add quotes.write only if you enable quotes. See Authentication.

Quick start

from strands import Agent
from strands_lexio import LexioTools

# The key defaults to the LEXIO_API_KEY environment variable.
agent = Agent(
    system_prompt="You are the booking assistant of a van rental agency. Answer from the tools only.",
    tools=LexioTools().tools(),
)
agent("Which vans are free from 14 to 16 December, and at what price?")

The agent uses your configured Strands model provider (Amazon Bedrock by default); any provider works.

Tools

Tool What it does Writes
lexio_search_vehicles Active fleet with plate, model, category, status, odometer no
lexio_check_availability Bookable vehicles for a period, with the indicative total price no
lexio_list_rentals Rentals by status, date window, vehicle or customer no
lexio_get_rental One rental with pick-up/return, options, price lines, balance no
lexio_find_customer Customers by exact email or company registration number no
lexio_list_categories Vehicle categories (pricing classes) no
lexio_create_quote Fixes the price of a vehicle for a period; books nothing yes, opt-in

lexio_create_quote is only returned with LexioTools(allow_quotes=True). Results are compact JSON strings, capped at max_results items (20 by default) to keep the context small.

tools = LexioTools(
    api_key="lck_...",          # or LEXIO_API_KEY
    allow_quotes=True,          # adds lexio_create_quote
    max_results=10,
).tools()

You can also call a tool directly, without a model, which is handy in tests:

agent = Agent(tools=LexioTools().tools())
agent.tool.lexio_search_vehicles(vehicle_type="VAN", limit=5)

Dates for availability and quotes are local to the rental company, without offset (2026-12-14T09:00:00). Lexio applies a per-key rate limit; the client retries on 429 and 5xx. See Rate limits.

Development

pip install -e ".[test]"
pytest tests            # no network, no API key needed

About

strands-lexio is maintained by the team behind Lexio Rent, car rental management software. An agent that tracks rentals can also help with fleet upkeep: Lexio publishes a free vehicle maintenance log template (in French) for agencies that are not on the software yet.

License: MIT.

Metadata

Release files for strands-lexio 0.1.0

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

Source distribution (sdist)

Source distribution for strands-lexio 0.1.0
File Size Uploaded Provenance Actions
strands_lexio-0.1.0.tar.gz 7.9 kB Without provenance Details for strands_lexio-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for strands-lexio 0.1.0
File Interpreter ABI Platform Actions
strands_lexio-0.1.0-py3-none-any.whl Python 3 none any Details for strands_lexio-0.1.0-py3-none-any.whl

Total release size: 15.5 kB

Release files / strands_lexio-0.1.0.tar.gz

Download URL strands_lexio-0.1.0.tar.gz
Size 7.9 kB
Tags Source
SHA-256 checksum
How to use checksums
2e7da738523cad3a69b5ec5ac73a40ef8dfd950dd0ffd3888b1a0a1b0be370db
BLAKE2b-256 checksum
How to use checksums
0c74debf916ae44b87ecef8e01dc4cc4c27b610fa64ccfe45747f18eb67da0c0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.0

Release files / strands_lexio-0.1.0-py3-none-any.whl

Download URL strands_lexio-0.1.0-py3-none-any.whl
Size 7.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f01dbd90e29250808529836d6f3eaccbf2e20820aceed2f77ccb6769091e5373
BLAKE2b-256 checksum
How to use checksums
2f75c16fd9dc359e93c7eda81fc1903bde803f1e073f25145e539dec691972f9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.0

Security for strands-lexio 0.1.0

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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