-
Notifications
You must be signed in to change notification settings - Fork 0
Asset Module
Christian KASSE edited this page Apr 2, 2026
·
2 revisions
Fixed asset management: assets, vehicles, depreciation, maintenance schedules, fuel logs, and trip tracking.
Accessor: client.asset
| Resource | Accessor | Description |
|---|---|---|
| Assets | client.asset.assets |
Fixed asset registry |
| Vehicles | client.asset.vehicles |
Vehicle fleet management |
| Depreciations | client.asset.depreciations |
Asset depreciation records |
| Maintenance Logs | client.asset.maintenance_logs |
Maintenance history |
| Maintenance Schedules | client.asset.maintenance_schedules |
Preventive maintenance |
| Fuel Logs | client.asset.fuel_logs |
Fuel consumption tracking |
| Trip Logs | client.asset.trip_logs |
Vehicle trip records |
from essabu import Essabu
client = Essabu(api_key="esa_live_xxx", tenant_id="tenant-id")
asset = client.asset.assets.create(
name="Dell PowerEdge R750",
category="IT Equipment",
purchase_date="2026-01-15",
purchase_price=8500.00,
currency="USD",
useful_life_months=60,
depreciation_method="straight_line",
location="Server Room A",
serial_number="SRV-2026-001",
)
assets = client.asset.assets.list(category="IT Equipment", status="active")
for page in client.asset.assets.list_all():
for a in page.data:
print(f"{a['name']}: {a['current_value']}")
client.asset.assets.update(asset["id"], location="Server Room B")vehicle = client.asset.vehicles.create(
make="Toyota",
model="Hilux",
year=2025,
license_plate="KIN-1234-AB",
vin="JTFSS22P600123456",
purchase_date="2025-06-01",
purchase_price=35000.00,
currency="USD",
assigned_to="driver-uuid",
)
vehicles = client.asset.vehicles.list(status="active")depreciations = client.asset.depreciations.list(asset_id=asset["id"])
record = client.asset.depreciations.create(
asset_id=asset["id"],
period="2026-03",
amount=141.67,
method="straight_line",
)schedule = client.asset.maintenance_schedules.create(
asset_id=vehicle["id"],
type="oil_change",
interval_km=5000,
interval_days=90,
description="Regular oil change and filter replacement",
)
log = client.asset.maintenance_logs.create(
asset_id=vehicle["id"],
schedule_id=schedule["id"],
date="2026-03-15",
description="Oil change completed",
cost=150.00,
odometer=45230,
technician="Mechanic name",
)fuel = client.asset.fuel_logs.create(
vehicle_id=vehicle["id"],
date="2026-03-26",
liters=60.5,
cost_per_liter=1.85,
total_cost=111.93,
odometer=45500,
fuel_type="diesel",
station="Total Gombe",
)trip = client.asset.trip_logs.create(
vehicle_id=vehicle["id"],
driver_id="driver-uuid",
start_date="2026-03-26T08:00:00",
end_date="2026-03-26T17:00:00",
start_odometer=45500,
end_odometer=45680,
origin="Kinshasa",
destination="Matadi",
purpose="Client delivery",
)Getting Started
Core Concepts
Modules
Advanced