616b221c92
Add a new "webhook" provider type that accepts arbitrary HTTP POST payloads, extracts template variables via user-defined JSONPath mappings, and dispatches notifications through the existing pipeline. Supports three auth modes (HMAC-SHA256, Bearer token, none), bounded JSONPath cache, and 1MB payload limit. Full stack: core provider + event parser, API endpoint, DB migration, capabilities, seeds, default templates (EN/RU), frontend descriptor, i18n.
30 lines
640 B
TOML
30 lines
640 B
TOML
[build-system]
|
|
requires = ["hatchling"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[project]
|
|
name = "notify-bridge-core"
|
|
version = "0.1.0"
|
|
description = "Core library for Notify Bridge — service provider abstractions, models, notifications, and templates"
|
|
requires-python = ">=3.12"
|
|
dependencies = [
|
|
"aiohttp>=3.9",
|
|
"jinja2>=3.1",
|
|
"aiosmtplib>=3.0",
|
|
"jsonpath-ng>=1.6",
|
|
]
|
|
|
|
[project.optional-dependencies]
|
|
dev = [
|
|
"pytest>=8.0",
|
|
"pytest-asyncio>=0.23",
|
|
"aioresponses>=0.7",
|
|
]
|
|
|
|
[tool.hatch.build.targets.wheel]
|
|
packages = ["src/notify_bridge_core"]
|
|
|
|
[tool.pytest.ini_options]
|
|
asyncio_mode = "auto"
|
|
testpaths = ["tests"]
|