Metadata-Version: 2.4
Name: truckaurbus
Version: 0.1.0
Summary: Python client for the Truckaurbus API v1: Indian commercial vehicle specs, prices, ratings, dealers and leads
Requires-Python: >=3.10
Description-Content-Type: text/markdown
Requires-Dist: httpx>=0.27

# truckaurbus (Python)

```
pip install truckaurbus
```

```python
from truckaurbus import Truckaurbus

tab = Truckaurbus("tab_live_...")            # or TRUCKAURBUS_API_KEY in the environment
hits = tab.variants.search(q="12 tyre tipper", price_max=4_000_000, sort="price_asc")["hits"]
sheet = tab.variants.get(hits[0]["slug"])
dealers = tab.dealers.near("442001", km=50, brand="tata-motors")
tab.leads.create(kind="quote", buyer_name="A Buyer", buyer_phone="9876543210", buyer_pin="442001", vehicle_ref=sheet["slug"], consent=True)
print(tab.rate_limit)                         # {'limit': '1000', 'used': '4'}
```

Prices carry a `price_kind`: `maker` and `dealer` figures are stated; `reported` is a public band; `estimate` comes from siblings. Say so when you show them. Free-tier keys must attribute the data ("Data by Truckaurbus"). Docs: https://docs.truckaurbus.com/developers/
