Skip to main content

agoralar-source-http

Источник объектов для AxisLar: JSON-API отдаёт массив записей, плагин раскладывает поля по осям и скалярам.

Плагин продукта AgoraLar. Источник только читает: GET без тела, без ретраев.

[plugins.http]
url = "https://api.example.net/edits"   # источник данных
source_id = "api-edits"                 # стабильный id источника, не URL
kind = "edit"
key = ["id"]                            # естественный ключ → entity_id_for
items = "data.items"                    # путь к массиву в ответе ('' — корень)

axes = ["author", "genre"]              # категориальные оси
multi = { genre = "," }                 # список или строка через запятую
measurable = ["year"]                   # измеримые оси
reference = { editor = "person" }       # ссылочные оси: поле → вид цели
scalars = ["title"]                     # текстовые поля
hash = ["title", "author", "year"]      # по умолчанию — все сопоставленные

headers = { Authorization = "Bearer ..." }
timeout = 10.0

Правила те же, что у agoralar-source-sql (это намеренно: у источников одна семантика, разные транспорты):

  • null и отсутствующее поле — не значение, а отсутствие: фасет не создаётся, объект разреженный (ADR-0010 ядра);
  • multi-поле принимает и JSON-массив, и строку с разделителем;
  • bool в measurable — предупреждение, а не 1/0;
  • запись без значения в ключевом поле пропускается с предупреждением;
  • content_hash — по каноническому JSON сопоставленных полей, поэтому прочие поля ответа не считаются изменением объекта;
  • id = entity_id_for(source_id, key), key — значения ключевых полей через unit separator (\x1f).

Ошибки транспорта — HttpSourceError (подкласс RuntimeError): статус >= 400, недоступный хост, невалидный JSON, ответ не массив объектов. Продукт печатает причину и завершает прогон, не трогая хранилище.

Проверки — run_source_sync_contract из ядра, тот же набор, что у filesystem и sql.

Metadata

Release files for agoralar-source-http 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for agoralar-source-http 0.2.1
File Interpreter ABI Platform Actions
agoralar_source_http-0.2.1-py3-none-any.whl Python 3 none any Details for agoralar_source_http-0.2.1-py3-none-any.whl

Release files / agoralar_source_http-0.2.1-py3-none-any.whl

Download URL agoralar_source_http-0.2.1-py3-none-any.whl
Size 7.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7ef72fe081ee16488ee3606facc8cb0d870e1a70de1366f6a2c84385e8ee1c04
BLAKE2b-256 checksum
How to use checksums
adf4758600b638bdee9e2ea9016281196f6fb93c071a2239059a8559a4c458fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for agoralar-source-http 0.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.1 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page