- Python 3.10 (end of life) is no longer supported:
requires-pythonis now>=3.11.
apis: build an API from a URL (create,resume,get_build,get_draft,create_many), sync and async. Drives the key-authorized builder routes onapp_url: preview, inspection, create, build job, result (source_id,version,schema). Waiting only reads: the create request is sent once anddraft_id/job_idare the resume handles. NewBuildandDraftmodels;BuildFailedError(code,reason,stage),PreviewLimitError(aRateLimitErrorwithcause,limit,retry_after) andScopeRequiredError(aPermissionDeniedErrornamingmissing_scopes).create_manywaits out the hourly preview limit. Needs a personal key with thediscoverandbuildscopes.schedules:create,list,get,pause,resume,deleteagainst/v1/schedules, with the idempotency key handling of the other SDKs (schedule.replayed,schedule.idempotency_key), plusruns.- Only new records, on the client:
SeenStore(JSON or SQLite file, atomic writes),sources.run(..., new_only=)andschedules.new_records(schedule_id, store). Identity is the contract'srecord_identity_path(s), else a hash of the record. Runs are still billed for every record they deliver. catalog.find(site=)matches the site'saliases(new optional field of the catalogsiteobject) on host boundaries and normalizes the input (scheme, path,www., trailing dot, case):seek.com.aufinds an API listed asau.seek.com, andnotseek.com.auis not a match.CatalogApi.site_aliases; responses without aliases work.Runcarriessource_id,definition_version,created_atandfinished_at.
- First version: sync
CleanedWeband asyncAsyncCleanedWebclients for the public catalog (list,get,find,run,result), runs (get,items,result,abort,list) and private sources (run). catalog.rungenerates and returns an idempotency key, follows202+Retry-Afterby reading/resultwith the same key, and never resends the POST while it waits.- Typed exceptions for the documented error codes.