scripts.auctions.airtable

The auctions Airtable base (AUCTIONS_AIRTABLE_BASE_ID), by hand.

uv run python -m scripts.auctions.airtable setup # creates the tables and fields it lacks (idempotent) uv run python -m scripts.auctions.airtable sync # one sync run now (the worker does one a minute) uv run python -m scripts.auctions.airtable retry-photos # queues again the photos of lots that have none in the base uv run python -m scripts.auctions.airtable resend # the next run re-reads every followed lot (after a new field), photos kept uv run python -m scripts.auctions.airtable reset # forgets what was sent: the next run sends everything again

Settings in .env: AUCTIONS_AIRTABLE_BASE_ID, AUCTIONS_AIRTABLE_TOKEN (data.records:read/write and schema.bases:read/write on that base), AUCTIONS_API_URL, AUCTIONS_API_TOKEN. Airtable’s API can’t delete a table: remove a new base’s default “Table 1” by hand.

Functions

main(command) → None

Module Contents

scripts.auctions.airtable.main(command: str) → None