Self-contained ingestion module (mirrors fleettickets) for the WhatsApp fuel-record feed in the rustfs `fuel` bucket: - import_fuel.py — snapshot/changes/file modes, raw-jsonb upsert on id - migrations/01_fuel_schema.sql — fuel schema, plate/fuel-type/department normalizers, trigger-derived columns, reporting.v_fuel_fills + v_fuel_efficiency, grafana_ro grants - s3util.py / shared.py / run_migrations.py — rustfs client + DB helpers - docs/plan.html — implementation plan Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
22 lines
505 B
TOML
22 lines
505 B
TOML
[project]
|
|
name = "fleetfuel"
|
|
version = "0.1.0"
|
|
description = "WhatsApp fuel-record ingestion (rustfs `fuel` bucket) + read-schema for the FleetOps Fuel Log tab"
|
|
requires-python = ">=3.12"
|
|
dependencies = [
|
|
"psycopg2-binary>=2.9.9", # DB driver
|
|
"boto3>=1.34", # S3 client for the rustfs `fuel` bucket
|
|
]
|
|
|
|
[project.optional-dependencies]
|
|
dev = [
|
|
"ruff>=0.4",
|
|
]
|
|
|
|
[tool.uv]
|
|
managed = true
|
|
|
|
[tool.ruff]
|
|
target-version = "py312"
|
|
line-length = 100
|
|
lint.select = ["E", "W", "F", "B", "UP"]
|