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.2

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.2
File Interpreter ABI Platform Actions
agoralar_source_http-0.2.2-py3-none-any.whl Python 3 none any Details for agoralar_source_http-0.2.2-py3-none-any.whl

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

Download URL agoralar_source_http-0.2.2-py3-none-any.whl
Size 7.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d7b39fff803e39fc6dfdfe7c1b60f1127e41f04456fe158e9930ece7b0de8751
BLAKE2b-256 checksum
How to use checksums
fe758e9e1ac14fe00eb9145d636594938e1987169bacc61a51ae4b63bf279304
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.2

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.2 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