Skip to main content

agoralar-source-sql

Источник объектов для AxisLar: таблица или SELECT в sqlite раскладывается по осям и скалярам.

Плагин продукта AgoraLar. База открывается только на чтение (mode=ro): источник ничего не пишет.

[plugins.sql]
path = "/data/export.db"           # файл sqlite
table = "edits"                    # или query = "SELECT ... FROM ..."
source_id = "db-edits"             # стабильный id источника, не путь
kind = "edit"
key = ["id"]                       # естественный ключ → entity_id_for

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

Правила:

  • NULL — это отсутствие значения, а не пустое: фасет не создаётся, объект остаётся разреженным (ADR-0010 ядра). Скаляр с NULL тоже не пишется.
  • Колонка не может быть объявлена дважды (ось и скаляр одновременно); multi допустим только для категориальных осей.
  • Строка без значения в ключевой колонке пропускается с предупреждением.
  • Нечисловое значение у measurable даёт предупреждение и пропуск фасета; строка импортируется.
  • content_hash считается по каноническому JSON значений сопоставленных колонок: изменение неиспользуемой колонки не считается изменением объекта.
  • id = entity_id_for(source_id, key), где key — значения ключевых колонок через unit separator (\x1f). Переименование строки = новый id; синхронизация узнаёт переезд по content_hash.

Проверки плагина — run_source_sync_contract из ядра: тот же набор, который обязаны проходить все источники.

Metadata

Release files for agoralar-source-sql 0.2.3

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-sql 0.2.3
File Interpreter ABI Platform Actions
agoralar_source_sql-0.2.3-py3-none-any.whl Python 3 none any Details for agoralar_source_sql-0.2.3-py3-none-any.whl

Release files / agoralar_source_sql-0.2.3-py3-none-any.whl

Download URL agoralar_source_sql-0.2.3-py3-none-any.whl
Size 8.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c4843d21fcb07ac9feaa4bd5d35acbe50bb4d4874b8f14f72fcc96587b1133e4
BLAKE2b-256 checksum
How to use checksums
e680f26ac9152e5b30942405a21354d5dcfe7cb5f2e9a5073644b2f1554c4ac1
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-sql 0.2.3

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