relator
______________________
|______________________|
|________________|
.-' '-.
(26)================(05)
| || || || || |
| || || || || | 111111111 1111111111 111 33333333 33333333333 00000000 00000000
| || || || || | 11 11 1 1 1 1 33 3 3 3 00 00 00 00
| || || || || | 11 1111 1 1 1111111 1 1 3 3333 3 3333 3333 0 0000 0 00 0000 0
| || || || || | 11 1 1 1 1 1 1 1 3 3 3 3 3 3 0 0 0 0 00 0 0 0
| || || || || | 11 1111 1 1 11111 1 1 3 3333 3 3 3 0 0 0 0 00 0000 0
| || || || || | 11 11 1 1 1 1 3 3 3 3 0 0 0 0 00 00
| || || || || | 11 111 11 1 11111 1 1 3 3333 3 3 3 0 0 0 0 00 000 00
| || || || || | 11 1 11 1 1 1 1 1 3 3 3 3 3 3 0 0 0 0 00 0 00 0
| || || || || | 11 1 1 1 1 1111111 1 1111111 3 3 3 3 3 3 0 0000 0 00 0 0 0
| || || || || | 11 1 1 1 1 1 1 1 3 3 3 3 3 3 00 00 00 0 0
| || || || || | 1111 1111 1111111111 111111111 3333 3333 33333 00000000 00000 0000
|________________|
|__________________|
|____________________|
|______________________|
| |||||||||||||||||||| | --------------------------------------------------------------------------------------
|______________________|
TEMPLATES ▪ DATA ▪ REPORTS
Шаблоны Markdown/HTML для отчётов: таблицы, списки, циклы %%len=%%, секции %%render%%, дерево [[TREE]], JSON [[JSON]], слоты @@...@@, медиа (Pillow, matplotlib), сохранение контекста при compile и inject, опционально Pydantic и SQLAlchemy.
Установка
pip install relator
pip install "relator[integrations]"
Импорт
from relator import Template
t = Template("template.md", assets_dir="assets")
t.data(["title", "Заголовок"])
t.compile("out.md")
Документация
docs/GUIDE.md — синтаксис, API, пример шаблон + код.
prototyping/example/99_full_reference/ — длинный шаблон и скрипт сборки.
Остальные сценарии: prototyping/example/README.md.
CLI
relator --template template.md --inspect
relator --template template.md --context ctx.json --output report.md
Релиз на PyPI
python -m build
twine check dist/*
twine upload dist/*
Версию меняйте в pyproject.toml. Токен PyPI храните только в переменных окружения или в CI, не в репозитории.
Metadata
Release files for relator 1.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| relator-1.3.0.tar.gz | 19.4 kB | Without provenance | Details for relator-1.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| relator-1.3.0-py3-none-any.whl | Python 3 | none | any | Details for relator-1.3.0-py3-none-any.whl |
Total release size: 39.0 kB
Release files / relator-1.3.0.tar.gz
| Download URL | relator-1.3.0.tar.gz |
|---|---|
| Size | 19.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
175d93b277cadb2dc57c95679bde82c5d8a1a482273eb8a6d0f06bcedb4c3ba0
|
|
BLAKE2b-256 checksum How to use checksums |
0ad2555403c4dfd385df73a08105c72b041e46bc0fe6a1f6457b382f48e153fd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.13
|
Release files / relator-1.3.0-py3-none-any.whl
| Download URL | relator-1.3.0-py3-none-any.whl |
|---|---|
| Size | 19.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
83343c179d34d18e68a98b227b1cfe0199495fc25054763f1da30b7aa2b27e33
|
|
BLAKE2b-256 checksum How to use checksums |
b38403a421ea2c10be1a2e0eaad55d0a010d8597d98ca9d4b78fd54f60d31222
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.13
|
Security for relator 1.3.0
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.