Compare commits
10 Commits
| Author | SHA1 | Date |
|---|---|---|
|
|
85a76a4226 | |
|
|
61ec05cb33 | |
|
|
a2b3ff9ccd | |
|
|
8e91d2179d | |
|
|
ff66bbde52 | |
|
|
6e2f2f29b9 | |
|
|
95b231ae0a | |
|
|
fad699d40b | |
|
|
4fa62cbb8f | |
|
|
aa37af1138 |
345
Readme.md
345
Readme.md
|
|
@ -39,7 +39,7 @@ from django.core.files.base import ContentFile
|
|||
from notify.services import create_notification
|
||||
|
||||
create_notification(
|
||||
verb="Заявка одобрена",
|
||||
title="Заявка одобрена",
|
||||
attachments=[ContentFile(b"...", name="report.pdf")],
|
||||
recipients=[
|
||||
{
|
||||
|
|
@ -55,35 +55,212 @@ create_notification(
|
|||
|
||||
`create_notification` выбрасывает `ValueError`, если тип выключен, канал не входит в тип, канал неизвестен или получатель продублирован. Неактивный тип и пропущенный канал не оставляют пустое уведомление в базе.
|
||||
|
||||
Получатель канала задаётся словарём `target`, который проверяется pydantic-схемой провайдера: `email` — `{"email": ...}`, `telegram` — `{"chat_id": ...}`, `max` — `{"chat_id": ..., "user_id": ...}` (`user_id` необязателен). У `browser` `target` нет. В базе он хранится в `NotificationRecipient.delivery_target`. Если у типа `configurable=True`, канал с `NotificationChannelPreference.enabled=False` не создаётся. Строки предпочтения нет — канал берёт `NotificationType.enabled_by_default` (по умолчанию включён). `configurable=False` не смотрит ни на предпочтения, ни на этот флаг. Если после фильтра не осталось получателей, уведомление откатывается.
|
||||
`user` в получателе необязателен для `email`, `sms`, `max` и `telegram`. Без пользователя адрес берётся только из `target`. Рядом можно передать `content_object` — сохранённый экземпляр любой модели, например пациента или клиента. Это кто получает сообщение, и это не то же поле, что `content_object` у самого уведомления. Несохранённый экземпляр даёт `ValueError`. `browser` без `user` даёт `ValueError`: входящие читает только авторизованный пользователь. Предпочтения канала и `group=True` применяются только к получателю с `user`. Дубль — тот же `user` и тот же канал внутри одного уведомления. Получатель без `user` повтором не считается.
|
||||
|
||||
Повтор с тем же `idempotency_key` возвращает уже созданную строку и не добавляет новые файлы. `group=True` при непустом `object_id` увеличивает `data["count"]` у непрочитанного browser-уведомления того же типа и объекта и не создаёт новую строку. Файлы такого вызова копируются и на схлопнутое уведомление, и на новое, если часть получателей не схлопнулась.
|
||||
|
||||
`attachments` — список Django-файлов (`UploadedFile`, `File`, `ContentFile` с именем). Пустое имя, больше 10 файлов или файл больше 10 МБ дают `ValueError`, уведомление не сохраняется. Лимиты переопределяются настройками `NOTIFY_MAX_ATTACHMENTS` и `NOTIFY_MAX_ATTACHMENT_BYTES`. Файлы лежат в default storage по пути `notify/attachments/` и не раздаются через `MEDIA_URL`. Удаление уведомления удаляет файлы из хранилища. В письмо они попадают вложением. Telegram и MAX остаются текстом.
|
||||
|
||||
## Доставка
|
||||
|
||||
Каналы `email`, `max` и `telegram` ставятся в Celery-задачу `notify.tasks.deliver_notification` после коммита транзакции. Канал `browser` помечается отправленным сразу и попадает в API.
|
||||
|
||||
Воркер берёт строку получателя с блокировкой. Ошибка SMTP или временная ошибка HTTP повторяется до 5 раз с паузами 1, 2, 4, 8 и 16 минут (плюс до 10% случайной добавки). Таймаут SMTP и HTTP — 10 секунд. Каждая попытка увеличивает `attempts` и пишет `last_error`. Постоянная ошибка и исчерпание попыток ставят статус `FAILED`. Успех ставит `SENT` и `sent_at`.
|
||||
|
||||
Нужен брокер Celery и автообнаружение задач установленного приложения `notify`. Расписание удаления просроченных уведомлений (раз в час):
|
||||
`group` в получателе — это группа пользователей Django (`django.contrib.auth.models.Group` или её `name`). Это не категория `NotificationGroup` и не аргумент `group=True`, который схлопывает повторные browser-уведомления. В момент создания активные участники становятся обычными получателями: каждому копируются те же `channels`, тот же `target` и `content_object` получателя, если он передан. Неактивный пользователь пропускается. Пустая группа, неизвестное имя, а также `user` и `group` в одном получателе дают ошибку, уведомление не сохраняется. Один общий `target` уходит отдельной доставкой каждому участнику.
|
||||
|
||||
```python
|
||||
create_notification(
|
||||
notification_type="appointment.online",
|
||||
description="Иванов, 12:00",
|
||||
recipients=[
|
||||
{"group": "registrars", "channels": [{"channel": "browser"}]},
|
||||
],
|
||||
)
|
||||
```
|
||||
|
||||
Если `recipients` не переданы, а у типа есть привязки к группам пользователей, получатели берутся оттуда, каналы — с типа. Канал, которому нужен `target`, так не отправляется: его задают явно в `recipients`.
|
||||
|
||||
```python
|
||||
create_notification(
|
||||
title="Запись подтверждена",
|
||||
recipients=[
|
||||
{
|
||||
"content_object": patient,
|
||||
"channels": [
|
||||
{"channel": "sms", "target": {"phone": patient.phone}},
|
||||
{"channel": "email", "target": {"email": patient.email}},
|
||||
],
|
||||
},
|
||||
{"channels": [{"channel": "sms", "target": {"phone": "79991234567"}}]},
|
||||
],
|
||||
)
|
||||
```
|
||||
|
||||
Получатель канала задаётся словарём `target`, который проверяется pydantic-схемой провайдера: `email` — `{"email": ...}`, `telegram` — `{"chat_id": ...}`, `max` — `{"chat_id": ..., "user_id": ...}` (`user_id` необязателен), `sms` — `{"phone": ...}`. У `browser` `target` нет. В базе он хранится в `NotificationRecipient.target`. Если у типа `is_configurable=True` и у получателя есть `user`, канал с `NotificationChannelPreference.is_enabled=False` не создаётся. Строки предпочтения нет — канал берёт `NotificationType.is_enabled_by_default` (по умолчанию включён). `is_configurable=False` не смотрит ни на предпочтения, ни на этот флаг. Без `user` предпочтения не фильтруют каналы. Если после фильтра не осталось получателей, уведомление откатывается.
|
||||
|
||||
Участник группы из `RecipientGroupSpec` с `is_configurable=False` не может выключить этот тип: предпочтение не смотрится ни при отправке на группу, ни при явной отправке ему. `channel_preferences` такой тип ему не отдаёт, `save_channel_preferences` отвечает `ValueError`. Если пользователь входит в несколько привязок одного типа, неотключаемая побеждает. Когда все привязки отключаемые и своей строки предпочтения нет, канал включён, если хотя бы одна из них включена по умолчанию. Пользователь вне этих групп живёт по флагам типа.
|
||||
|
||||
Повтор с тем же `idempotency_key` возвращает уже созданную строку и не добавляет новые файлы. `content_object` — сохранённый экземпляр любой модели; в базе это пара `content_type` и `object_id`. Несохранённый экземпляр даёт `ValueError`. `group=True` при заданном `content_object` увеличивает `data["count"]` у непрочитанного browser-уведомления того же типа, того же `content_type` и того же `object_id` и не создаёт новую строку. Две разные модели с одинаковым pk не схлопываются. Пустая ссылка всегда создаёт новую строку. Файлы такого вызова копируются и на схлопнутое уведомление, и на новое, если часть получателей не схлопнулась. Удаление объекта, на который указывает ссылка, уведомление не удаляет.
|
||||
|
||||
`show_popup=True` помечает уведомление для всплывающего показа в интерфейсе. По умолчанию флаг выключен. Библиотека только сохраняет и отдаёт его через browser API: отрисовка toast и учёт уже показанных уведомлений остаются на стороне клиента хост-приложения.
|
||||
|
||||
```python
|
||||
create_notification(
|
||||
notification_type="appointment.patient_arrived",
|
||||
show_popup=True,
|
||||
content_object=visit,
|
||||
idempotency_key=f"visit:{visit.pk}:arrived",
|
||||
recipients=[
|
||||
{
|
||||
"user": visit.doctor.user,
|
||||
"channels": [{"channel": "browser"}],
|
||||
}
|
||||
],
|
||||
)
|
||||
```
|
||||
|
||||
`attachments` — список Django-файлов (`UploadedFile`, `File`, `ContentFile` с именем). Пустое имя, больше 10 файлов или файл больше 10 МБ дают `ValueError`, уведомление не сохраняется. Лимиты переопределяются настройками `NOTIFY_MAX_ATTACHMENTS` и `NOTIFY_MAX_ATTACHMENT_BYTES`. Файлы лежат в default storage по пути `notify/attachments/` и не раздаются через `MEDIA_URL`. Удаление уведомления удаляет файлы из хранилища. В письмо они попадают вложением. Telegram, MAX и SMS остаются текстом.
|
||||
|
||||
## Реестр типов
|
||||
|
||||
Группы, типы и шаблоны можно описать в коде приложения. Модуль нужно импортировать из `AppConfig.ready`, иначе регистрация произойдёт слишком поздно. `migrate` записывает реестр в базу и делает это даже без новых миграций.
|
||||
|
||||
```python
|
||||
# appointment/notifications.py
|
||||
from notify.registry import GroupSpec, TemplateSpec, TypeSpec, register
|
||||
|
||||
register(
|
||||
GroupSpec("appointment", "Записи"),
|
||||
TypeSpec(
|
||||
code="appointment.created",
|
||||
name="Запись создана",
|
||||
group="appointment",
|
||||
channels=("browser", "email"),
|
||||
title="Запись создана",
|
||||
templates=(
|
||||
TemplateSpec(
|
||||
"email",
|
||||
subject="Запись создана",
|
||||
body="{{ notification.description }}",
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
```
|
||||
|
||||
```python
|
||||
# appointment/apps.py
|
||||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class AppointmentConfig(AppConfig):
|
||||
name = "appointment"
|
||||
|
||||
def ready(self):
|
||||
from appointment import notifications # noqa: F401
|
||||
```
|
||||
|
||||
Повторная регистрация тех же данных ничего не меняет. Другие данные для того же кода дают `ValueError` при старте. Группа типа должна быть зарегистрирована раньше, в том же вызове `register` или в предыдущем.
|
||||
|
||||
Отправка по-прежнему идёт через `create_notification`. Заголовок можно не передавать: его возьмёт тип.
|
||||
|
||||
```python
|
||||
create_notification(
|
||||
notification_type="appointment.created",
|
||||
description="12 октября, 10:00",
|
||||
recipients=[
|
||||
{
|
||||
"user": user,
|
||||
"channels": [
|
||||
{"channel": "browser"},
|
||||
{"channel": "email", "target": {"email": user.email}},
|
||||
],
|
||||
}
|
||||
],
|
||||
)
|
||||
```
|
||||
|
||||
Канал `browser` шаблона не требует: API отдаёт `title` и `description`. Для `email`, `telegram`, `max` и `sms` шаблон из реестра пишется в `NotificationTemplate` и используется при доставке. Имя новой строки — `{код}.{канал}`. Канал шаблона, которого больше нет в спеке, удаляется у этого типа.
|
||||
|
||||
Код перезаписывает имя, каналы, группу, заголовок, флаги и текст шаблонов зарегистрированного типа. Правка этих полей в админке пропадёт на следующем `migrate`. Типы и шаблоны, которых нет в реестре, не меняются. Удаление кода из реестра строку не удаляет и не выключает: чтобы тип перестал отправляться, оставьте его в реестре с `is_active=False`.
|
||||
|
||||
Группу пользователей к типу привязывает `RecipientGroupSpec`. Имя — `name` группы Django. Реестр эту группу не создаёт: состав по-прежнему задаёт хост. `migrate` пишет `NotificationTypeRecipientGroup` и удаляет у этого типа привязки, которых в спеке больше нет. Повторная синхронизация обновляет флаги. Правка привязки в админке пропадёт на следующем `migrate`. Дубль имени в одном типе и пустое имя дают `ValueError` при регистрации.
|
||||
|
||||
`GroupSpec` остаётся категорией типов. `group` у получателя и `RecipientGroupSpec` — группа пользователей. Аргумент `group=True` схлопывает повторные browser-уведомления.
|
||||
|
||||
```python
|
||||
from notify.registry import GroupSpec, RecipientGroupSpec, TypeSpec, register
|
||||
|
||||
register(
|
||||
GroupSpec("appointment", "Записи на приём"),
|
||||
TypeSpec(
|
||||
code="appointment.online",
|
||||
name="Онлайн запись на приём",
|
||||
group="appointment",
|
||||
channels=("browser",),
|
||||
title="Онлайн-запись на приём",
|
||||
is_configurable=True,
|
||||
is_enabled_by_default=False,
|
||||
recipient_groups=(
|
||||
RecipientGroupSpec("registrars", is_configurable=False),
|
||||
),
|
||||
),
|
||||
)
|
||||
```
|
||||
|
||||
`is_configurable=False` у привязки значит, что участникам `registrars` этот тип нельзя выключить. Для остальных пользователей тип остаётся отключаемым. `is_enabled_by_default` привязки заменяет флаг типа, пока у пользователя нет своей строки предпочтения. Без `recipients` такое уведомление уходит активным участникам привязанных групп по каналам типа. Канал с обязательным `target` нужно передать явно.
|
||||
|
||||
## Celery
|
||||
|
||||
`notify` не поднимает свой процесс Celery. Хост заводит одно приложение, брокер и воркер. Задачи пакета — `shared_task`, их подхватывает `autodiscover_tasks`, если `notify` есть в `INSTALLED_APPS`.
|
||||
|
||||
Каналы `email`, `max`, `telegram` и `sms` после коммита попадают в `notify.tasks.deliver_notification`. Без воркера строка получателя остаётся `unsent`. Канал `browser` в очередь не ставится. Коды подтверждения уходят в том же запросе, без Celery.
|
||||
|
||||
```python
|
||||
# project/celery.py
|
||||
import os
|
||||
|
||||
from celery import Celery
|
||||
|
||||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "project.settings")
|
||||
|
||||
app = Celery("project")
|
||||
app.config_from_object("django.conf:settings", namespace="CELERY")
|
||||
app.autodiscover_tasks()
|
||||
|
||||
from notify.tasks import BEAT_SCHEDULE
|
||||
|
||||
app.conf.beat_schedule.update(BEAT_SCHEDULE)
|
||||
```
|
||||
|
||||
Туда же входит удаление просроченных кодов подтверждения (раз в час, в :30). Без этой записи строки с истёкшим `expires_at` не удаляются. API их всё равно не показывает.
|
||||
`BEAT_SCHEDULE` импортируется после `config_from_object`: модуль задач тянет модели Django, а настройки к этому моменту уже прочитаны. Если приложение Celery в проекте уже есть, второй `Celery(...)` не нужен — добавьте только `update(BEAT_SCHEDULE)`.
|
||||
|
||||
```python
|
||||
# project/__init__.py
|
||||
from .celery import app as celery_app
|
||||
|
||||
__all__ = ("celery_app",)
|
||||
```
|
||||
|
||||
```python
|
||||
CELERY_BROKER_URL = "redis://127.0.0.1:6379/0"
|
||||
```
|
||||
|
||||
Задачи кладутся в очередь по умолчанию и не ждут результата. Свой backend результатов не требуется; если он не нужен и остальным задачам, поставьте `CELERY_TASK_IGNORE_RESULT = True`. Воркер должен читать ту же очередь, куда смотрит `CELERY_TASK_DEFAULT_QUEUE`.
|
||||
|
||||
```bash
|
||||
celery -A project worker -l info
|
||||
celery -A project beat -l info
|
||||
```
|
||||
|
||||
`BEAT_SCHEDULE` раз в час удаляет просроченные уведомления (в :00) и коды подтверждения (в :30). Час считается по `CELERY_TIMEZONE`, иначе по UTC. Без beat строки с истёкшим `expires_at` остаются в базе. API их всё равно не показывает.
|
||||
|
||||
## Доставка
|
||||
|
||||
Каналы `email`, `max`, `telegram` и `sms` ставятся в Celery-задачу `notify.tasks.deliver_notification` после коммита транзакции. Канал `browser` помечается отправленным сразу и попадает в API.
|
||||
|
||||
Воркер берёт строку получателя с блокировкой. Ошибка SMTP или временная ошибка HTTP повторяется до 5 раз с паузами 1, 2, 4, 8 и 16 минут (плюс до 10% случайной добавки). Таймаут SMTP и HTTP — 10 секунд. Каждая попытка увеличивает `attempts` и пишет `last_error`. Постоянная ошибка и исчерпание попыток ставят статус `failed`. Успех ставит `sent` и `sent_at`. Подключение воркера и beat описано выше.
|
||||
|
||||
Почтовый конфиг по умолчанию: порт `587`, `use_tls=True`, `use_ssl=False`. Одновременно включить SSL и TLS нельзя. Для каждого канала хранится один конфиг и один шаблон с `is_default=True` и пустым типом. Шаблон с указанным типом используется только для этой пары тип+канал, иначе берётся дефолт канала.
|
||||
|
||||
Пароль SMTP и токены MAX и Telegram хранятся в базе зашифрованными. В форме админки значение не подставляется обратно в HTML; пустое поле при сохранении оставляет прежний секрет. Проверка SMTP в админке — только POST.
|
||||
Пароль SMTP и токены MAX, Telegram и SMS хранятся в базе зашифрованными. В форме админки значение не подставляется обратно в HTML; пустое поле при сохранении оставляет прежний секрет. Проверка SMTP в админке — только POST.
|
||||
|
||||
SMS уходит через МТС Exolve: `POST https://api.exolve.ru/messaging/v1/SendSMS` с заголовком `Authorization: Bearer <токен>`. В конфиге токена с каналом `sms` и `is_default=True` поле `sender` обязательно: это номер или альфа-имя отправителя (`number` в запросе). Номер получателя нормализуется: убираются пробелы, скобки, дефисы и ведущий `+`, российский `8XXXXXXXXXX` становится `7XXXXXXXXXX`. В текст попадают заголовок и описание без HTML. Вложения не отправляются.
|
||||
|
||||
## Коды подтверждения
|
||||
|
||||
Одноразовые коды отправляются в `email`, `telegram` и `max` синхронно, без Celery и без создания `Notification`:
|
||||
Одноразовые коды отправляются в `email`, `telegram`, `max` и `sms` синхронно, без Celery и без создания `Notification`:
|
||||
|
||||
```python
|
||||
from notify.codes import CodeThrottled, send_code, verify_code
|
||||
|
|
@ -94,17 +271,18 @@ except CodeThrottled as exc:
|
|||
... # exc.retry_after — сколько секунд ждать
|
||||
|
||||
send_code(purpose="login", channel="telegram", target={"chat_id": 42})
|
||||
send_code(purpose="login", channel="sms", target={"phone": "79991234567"})
|
||||
|
||||
verify_code(purpose="login", channel="email", target={"email": user.email}, code="123456") # True / False
|
||||
```
|
||||
|
||||
`target` проверяется так же, как в `create_notification`. Неизвестный канал, `browser` или некорректный получатель дают `ValueError`. Ошибка провайдера пробрасывается как `DeliveryError` или `PermanentDeliveryError`. В этом случае новый код не сохраняется, а предыдущий остаётся действующим.
|
||||
|
||||
Код ищется по ключу `purpose` + канал + получатель. Email сравнивается без учёта регистра, для MAX ключом служит `user_id`, если он передан, иначе `chat_id`. Новый код гасит предыдущий. Повторная отправка раньше `NOTIFY_CODE_RESEND_INTERVAL` даёт `CodeThrottled`. `verify_code` возвращает `False`, если кода нет, он истёк, уже использован или попытки исчерпаны. Каждая проверка увеличивает `attempts`, успешная помечает код использованным.
|
||||
Код ищется по ключу `purpose` + канал + получатель. Email сравнивается без учёта регистра, для MAX ключом служит `user_id`, если он передан, иначе `chat_id`. Для SMS ключ — нормализованный номер, поэтому `+7` и `8` совпадают. Новый код гасит предыдущий. Повторная отправка раньше `NOTIFY_CODE_RESEND_INTERVAL` даёт `CodeThrottled`. `verify_code` возвращает `False`, если кода нет, он истёк, уже использован или попытки исчерпаны. Каждая проверка увеличивает `attempts`, успешная помечает код использованным.
|
||||
|
||||
В базе лежит только HMAC от `SECRET_KEY` и id строки. Смена `SECRET_KEY` делает выданные коды недействительными. Сам код не пишется в базу, логи и тексты исключений.
|
||||
|
||||
Текст по умолчанию: «Код подтверждения: 123456. Действует 5 мин.». Чтобы задать свой, передайте `type=` (код или объект `NotificationType`) и создайте `NotificationTemplate` с этим типом и каналом. Контекст шаблона: `code`, `ttl_minutes`, `purpose`, `user.id`, `user.username` (`user` равен `None`, если пользователь не передан). Шаблон канала по умолчанию для кодов не используется.
|
||||
Текст по умолчанию: «Код подтверждения: 123456. Действует 5 мин.». Чтобы задать свой, передайте `notification_type=` (код или объект `NotificationType`) и создайте `NotificationTemplate` с этим типом и каналом. Контекст шаблона: `code`, `ttl_minutes`, `purpose`, `user.id`, `user.username` (`user` равен `None`, если пользователь не передан). Шаблон канала по умолчанию для кодов не используется.
|
||||
|
||||
Настройки:
|
||||
|
||||
|
|
@ -131,18 +309,143 @@ NOTIFY_CODE_RESEND_INTERVAL = 60 # секунд, 0 — без ограниче
|
|||
- `POST make-all-read/`
|
||||
- `POST preferences/`
|
||||
|
||||
Когда у пользователя меняются непрочитанные browser-уведомления, после коммита уходит сигнал `unread_count_changed` с аргументом `user`. Число для этого пользователя возвращает `unread_count(user)` — то же, что `GET unread-count/`.
|
||||
|
||||
```python
|
||||
from django.dispatch import receiver
|
||||
|
||||
from notify.services import unread_count
|
||||
from notify.signals import unread_count_changed
|
||||
|
||||
@receiver(unread_count_changed)
|
||||
def on_unread_changed(sender, user, **kwargs):
|
||||
unread_count(user)
|
||||
```
|
||||
|
||||
Новый browser-получатель после коммита шлёт `browser_notification_created` с аргументами `user` и `notification`. Прочтение, удаление и остальные каналы этот сигнал не вызывают.
|
||||
|
||||
```python
|
||||
from django.dispatch import receiver
|
||||
|
||||
from notify.signals import browser_notification_created
|
||||
|
||||
@receiver(browser_notification_created)
|
||||
def on_browser_notification(sender, user, notification, **kwargs):
|
||||
...
|
||||
```
|
||||
|
||||
Просроченные уведомления в эти выборки не входят. Некорректный id возвращает 404.
|
||||
|
||||
`GET list/` отдаёт `attachments`: `id`, `name`, `size`, `content_type`, `url`. `GET attachments/{id}/` скачивает файл, если у текущего пользователя есть получатель этого уведомления и срок не истёк. Чужой и просроченный файл возвращают 404.
|
||||
`GET list/` отдаёт `content_type` (`app_label.model` или `null`), `object_id`, `show_popup` и `attachments`: `id`, `name`, `size`, `content_type`, `url`. Тот же `show_popup` входит в ответы `POST make-read/{id}/` и `POST make-unread/{id}/`. Фильтры списка: `content_type`, `object_id`, `object_id__ne`, `object_id__ne__in`. `GET attachments/{id}/` скачивает файл, если у текущего пользователя есть получатель этого уведомления и срок не истёк. Чужой и просроченный файл возвращают 404.
|
||||
|
||||
`GET preferences/` отдаёт список активных типов с `configurable=True`: `code`, `name`, `group_name` и `channels` (`channel`, `enabled`). Нет сохранённого предпочтения — `enabled` равен `enabled_by_default` типа. Сохранённое предпочтение перекрывает флаг. `POST preferences/` принимает `{"items": [{"code", "channels": [{"channel", "enabled"}]}]}` и возвращает `{"ok": true}`. Неизвестный канал и тип с `configurable=False` дают 400 с `detail`. Пустой `items` ничего не меняет.
|
||||
`GET preferences/` отдаёт список активных типов с `is_configurable=True`: `code`, `name`, `group_name` и `channels` (`channel`, `is_enabled`). Нет сохранённого предпочтения — `is_enabled` равен `is_enabled_by_default` типа. Сохранённое предпочтение перекрывает флаг. `POST preferences/` принимает `{"items": [{"code", "channels": [{"channel", "is_enabled"}]}]}` и возвращает `{"ok": true}`. Неизвестный канал и тип с `is_configurable=False` дают 400 с `detail`. Пустой `items` ничего не меняет.
|
||||
|
||||
API не кэширует ответы и не требует кэша или Redis.
|
||||
|
||||
Шаблоны subject и body пишутся на Jinja2 и экранируют HTML. Фильтр `markdown` рендерит текст в HTML, предварительно экранируя сырой HTML: `{{ notification.description | markdown }}`. Пропущенное поле остаётся пустой строкой. Контекст — обычные словари, не модели: `notification.verb`, `notification.description`, `notification.url`, `notification.level`, `notification.data`, `notification.object_id`, `recipient.delivery_target` (например, `recipient.delivery_target.email`), `recipient.delivery_channel`, `user.username`.
|
||||
Шаблоны subject и body пишутся на Jinja2 и экранируют HTML. Фильтр `markdown` рендерит текст в HTML, предварительно экранируя сырой HTML: `{{ notification.description | markdown }}`. Пропущенное поле остаётся пустой строкой. Контекст — обычные словари, не модели: `notification.title`, `notification.description`, `notification.url`, `notification.level`, `notification.data`, `notification.content_type` (`app_label.model` или пусто), `notification.object_id`, `recipient.target` (например, `recipient.target.email`), `recipient.channel`, `recipient.content_type`, `recipient.object_id`. `user` равен `None`, если у получателя нет пользователя; иначе это `user.id` и `user.username`.
|
||||
|
||||
## WebSocket через Channels (опционально)
|
||||
|
||||
Пакет содержит готовые обработчики сигналов в `notify.realtime` и общий
|
||||
`notify.consumers.UserEventsConsumer`. Интеграция выключена по умолчанию;
|
||||
без неё Channels и Redis для browser-уведомлений не требуются.
|
||||
|
||||
Установите extra и выбранные сервер/backend, например Daphne и Redis:
|
||||
|
||||
```bash
|
||||
uv add "notify[channels] @ git+https://git.med-logic.ru/medlogic/notify.git" \
|
||||
"channels[daphne]>=4.2.2,<5" channels-redis
|
||||
```
|
||||
|
||||
В настройках проекта:
|
||||
|
||||
```python
|
||||
# Для ASGI runserver поместите "daphne" перед django.contrib.staticfiles.
|
||||
# "notify" уже должен быть в INSTALLED_APPS.
|
||||
ASGI_APPLICATION = "project.asgi.application"
|
||||
ALLOWED_HOSTS = ["localhost", "127.0.0.1"] # Добавьте домены вашего проекта.
|
||||
|
||||
NOTIFY_REALTIME_ENABLED = True
|
||||
CHANNEL_LAYERS = {
|
||||
"default": {
|
||||
"BACKEND": "channels_redis.core.RedisChannelLayer",
|
||||
"CONFIG": {"hosts": ["redis://127.0.0.1:6379/2"]},
|
||||
},
|
||||
}
|
||||
```
|
||||
|
||||
`project/asgi.py` (замените `project` на имя своего Django-проекта):
|
||||
|
||||
```python
|
||||
import os
|
||||
|
||||
from django.core.asgi import get_asgi_application
|
||||
|
||||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "project.settings")
|
||||
django_application = get_asgi_application()
|
||||
|
||||
from channels.auth import AuthMiddlewareStack
|
||||
from channels.routing import ProtocolTypeRouter, URLRouter
|
||||
from channels.security.websocket import AllowedHostsOriginValidator
|
||||
from django.urls import path
|
||||
from notify.consumers import UserEventsConsumer
|
||||
|
||||
application = ProtocolTypeRouter({
|
||||
"http": django_application,
|
||||
"websocket": AllowedHostsOriginValidator(
|
||||
AuthMiddlewareStack(URLRouter([
|
||||
path("ws/events/", UserEventsConsumer.as_asgi()),
|
||||
]))
|
||||
),
|
||||
})
|
||||
```
|
||||
|
||||
Маршрут выбирает хост. `AuthMiddlewareStack` использует Django-сессию;
|
||||
проверка Origin и допустимых хостов остаётся в ASGI проекта. Consumer
|
||||
отклоняет анонимных и неактивных пользователей с кодом `4401` и подключает
|
||||
пользователя только к его собственной группе. Сообщения клиента игнорируются:
|
||||
выбрать чужую группу через WebSocket нельзя.
|
||||
|
||||
| Настройка | По умолчанию | Назначение |
|
||||
| --- | --- | --- |
|
||||
| `NOTIFY_REALTIME_ENABLED` | `False` | Автоматическая подписка на сигналы notify в `AppConfig.ready()` |
|
||||
| `NOTIFY_REALTIME_CHANNEL_LAYER` | `"default"` | Alias из `CHANNEL_LAYERS`, общий для publisher и consumer |
|
||||
| `NOTIFY_REALTIME_GROUP_PREFIX` | `"notify.user"` | Префикс групп: 1–34 ASCII-буквы, цифры, `.`, `_`, `-` |
|
||||
|
||||
Имя группы состоит из префикса и SHA-256 строкового PK пользователя;
|
||||
поддерживаются числовые, UUID и строковые PK. Для независимых приложений,
|
||||
использующих один Redis, задавайте разные namespace/prefix channel layer.
|
||||
Ошибки настройки обнаруживаются при включении интеграции во время старта.
|
||||
|
||||
Сначала клиент получает `{"type": "connected"}`, затем события:
|
||||
|
||||
| `type` | Дополнительные поля | Когда отправляется |
|
||||
| --- | --- | --- |
|
||||
| `notification.created` | `notification_id` | Создан browser-получатель |
|
||||
| `notification.unread` | — | Изменились непрочитанные browser-уведомления |
|
||||
|
||||
События отправляются после коммита, без текста и файлов уведомления. Клиент
|
||||
перечитывает данные через авторизованный HTTP API. Доставка выполняется без
|
||||
гарантии повтора: при переподключении нужно обновлять данные; polling может
|
||||
служить резервным механизмом. Ошибки транспорта логируются в `notify.realtime`
|
||||
и не прерывают бизнес-операцию. Сбой отправки одному пользователю не мешает
|
||||
остальным. Регистрация обработчиков идемпотентна.
|
||||
|
||||
Consumer также принимает события опциональной интеграции `messenger.realtime`:
|
||||
для неё включите `MESSENGER_REALTIME_ENABLED = True` в проекте с messenger.
|
||||
Флаги двух пакетов независимы, WebSocket-маршрут у них общий.
|
||||
|
||||
Для собственных событий можно вызвать
|
||||
`notify.realtime.publish(user_ids, "myapp.changed", object_id=42)`
|
||||
из синхронного обработчика после коммита, например через `transaction.on_commit`.
|
||||
Payload должен быть JSON-совместимым. Из async-кода вызывайте через
|
||||
`sync_to_async(publish)`.
|
||||
|
||||
## Тесты
|
||||
|
||||
```bash
|
||||
uv sync
|
||||
DJANGO_SETTINGS_MODULE=tests.settings python -m django test tests
|
||||
```
|
||||
|
||||
Dev-зависимости включают Channels и Daphne для тестирования опциональной интеграции.
|
||||
|
|
|
|||
|
|
@ -40,12 +40,12 @@
|
|||
|
||||
function renderItem(item) {
|
||||
const card = document.createElement("article");
|
||||
card.className = "item " + (item.level || "INFO") + (item.unread ? " unread" : "");
|
||||
card.className = "item " + (item.level || "info") + (item.unread ? " unread" : "");
|
||||
|
||||
const verb = document.createElement("div");
|
||||
verb.className = "verb";
|
||||
verb.textContent = item.verb || "";
|
||||
card.appendChild(verb);
|
||||
const title = document.createElement("div");
|
||||
title.className = "title";
|
||||
title.textContent = item.title || "";
|
||||
card.appendChild(title);
|
||||
|
||||
if (item.description) {
|
||||
const description = document.createElement("div");
|
||||
|
|
|
|||
|
|
@ -111,9 +111,9 @@
|
|||
background: #fff;
|
||||
}
|
||||
.item.unread { background: #f7f9ff; }
|
||||
.item.SUCCESS { border-left-color: var(--success); }
|
||||
.item.WARNING { border-left-color: var(--warning); }
|
||||
.item.ERROR { border-left-color: var(--error); }
|
||||
.item.success { border-left-color: var(--success); }
|
||||
.item.warning { border-left-color: var(--warning); }
|
||||
.item.error { border-left-color: var(--error); }
|
||||
.item button { justify-self: start; }
|
||||
.meta {
|
||||
display: flex;
|
||||
|
|
@ -121,7 +121,7 @@
|
|||
color: var(--muted);
|
||||
font-size: 12px;
|
||||
}
|
||||
.verb { font-weight: 650; }
|
||||
.title { font-weight: 650; }
|
||||
.files {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
|
|
@ -151,7 +151,7 @@
|
|||
{% csrf_token %}
|
||||
<label>
|
||||
Текст
|
||||
<input name="verb" required maxlength="255" autocomplete="off">
|
||||
<input name="title" required maxlength="255" autocomplete="off">
|
||||
</label>
|
||||
<label>
|
||||
Описание
|
||||
|
|
@ -161,10 +161,10 @@
|
|||
<label>
|
||||
Уровень
|
||||
<select name="level">
|
||||
<option value="INFO">INFO</option>
|
||||
<option value="SUCCESS">SUCCESS</option>
|
||||
<option value="WARNING">WARNING</option>
|
||||
<option value="ERROR">ERROR</option>
|
||||
<option value="info">info</option>
|
||||
<option value="success">success</option>
|
||||
<option value="warning">warning</option>
|
||||
<option value="error">error</option>
|
||||
</select>
|
||||
</label>
|
||||
<label>
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ def inbox(request):
|
|||
@login_required
|
||||
@require_POST
|
||||
def create_notification_view(request):
|
||||
verb = (request.POST.get("verb") or "").strip()
|
||||
title = (request.POST.get("title") or "").strip()
|
||||
description = (request.POST.get("description") or "").strip() or None
|
||||
level = (request.POST.get("level") or NotificationLevel.INFO).strip()
|
||||
url = (request.POST.get("url") or "").strip() or None
|
||||
|
|
@ -31,7 +31,7 @@ def create_notification_view(request):
|
|||
]
|
||||
try:
|
||||
create_notification(
|
||||
verb=verb,
|
||||
title=title,
|
||||
description=description,
|
||||
level=level,
|
||||
url=url,
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@ from .models import (
|
|||
NotificationGroup,
|
||||
NotificationTemplate,
|
||||
NotificationType,
|
||||
NotificationTypeRecipientGroup,
|
||||
Notification,
|
||||
NotificationRecipient,
|
||||
VerificationCode,
|
||||
|
|
@ -31,6 +32,7 @@ __all__ = [
|
|||
"DeliveryTokenConfigAdmin",
|
||||
"NotificationTemplateAdmin",
|
||||
"NotificationGroupAdmin",
|
||||
"NotificationTypeRecipientGroupInline",
|
||||
"NotificationTypeAdmin",
|
||||
"NotificationAttachmentInline",
|
||||
"NotificationRecipientInline",
|
||||
|
|
@ -65,7 +67,7 @@ class DeliveryTokenConfigForm(forms.ModelForm):
|
|||
|
||||
def __init__(self, *args, **kwargs):
|
||||
super().__init__(*args, **kwargs)
|
||||
allowed = {DeliveryChannel.MAX, DeliveryChannel.TELEGRAM}
|
||||
allowed = {DeliveryChannel.MAX, DeliveryChannel.TELEGRAM, DeliveryChannel.SMS}
|
||||
self.fields["channel"].choices = [
|
||||
choice for choice in DeliveryChannel.choices if choice[0] in allowed
|
||||
]
|
||||
|
|
@ -76,6 +78,12 @@ class DeliveryTokenConfigForm(forms.ModelForm):
|
|||
return self.instance.token
|
||||
return token
|
||||
|
||||
def clean(self):
|
||||
cleaned = super().clean()
|
||||
if cleaned.get("channel") == DeliveryChannel.SMS and not (cleaned.get("sender") or "").strip():
|
||||
self.add_error("sender", "Sender is required for SMS")
|
||||
return cleaned
|
||||
|
||||
|
||||
@admin.register(DeliveryEmailConfig)
|
||||
class DeliveryEmailConfigAdmin(admin.ModelAdmin):
|
||||
|
|
@ -143,13 +151,13 @@ class NotificationTemplateAdmin(admin.ModelAdmin):
|
|||
'id',
|
||||
'name',
|
||||
'channel',
|
||||
'type',
|
||||
'notification_type',
|
||||
'is_default',
|
||||
)
|
||||
readonly_fields = ['id']
|
||||
form = forms.modelform_factory(NotificationTemplate, fields='__all__', widgets={
|
||||
'subject_template': AceEditorWidget(mode='django', hide_label=False),
|
||||
'body_template': AceEditorWidget(mode='django', hide_label=False),
|
||||
'subject': AceEditorWidget(mode='django', hide_label=False),
|
||||
'body': AceEditorWidget(mode='django', hide_label=False),
|
||||
})
|
||||
save_on_top = True
|
||||
|
||||
|
|
@ -178,19 +186,25 @@ class NotificationTypeForm(forms.ModelForm):
|
|||
fields = "__all__"
|
||||
|
||||
|
||||
class NotificationTypeRecipientGroupInline(admin.TabularInline):
|
||||
model = NotificationTypeRecipientGroup
|
||||
extra = 0
|
||||
|
||||
|
||||
@admin.register(NotificationType)
|
||||
class NotificationTypeAdmin(admin.ModelAdmin):
|
||||
form = NotificationTypeForm
|
||||
inlines = [NotificationTypeRecipientGroupInline]
|
||||
list_display = (
|
||||
'code',
|
||||
'name',
|
||||
'group',
|
||||
'is_active',
|
||||
'enabled_by_default',
|
||||
'is_enabled_by_default',
|
||||
)
|
||||
list_filter = (
|
||||
'is_active',
|
||||
'enabled_by_default',
|
||||
'is_enabled_by_default',
|
||||
'group',
|
||||
)
|
||||
search_fields = (
|
||||
|
|
@ -203,13 +217,13 @@ class NotificationTypeAdmin(admin.ModelAdmin):
|
|||
class NotificationChannelPreferenceAdmin(admin.ModelAdmin):
|
||||
list_display = (
|
||||
'user',
|
||||
'type',
|
||||
'notification_type',
|
||||
'channel',
|
||||
'enabled',
|
||||
'is_enabled',
|
||||
)
|
||||
list_filter = (
|
||||
'channel',
|
||||
'enabled',
|
||||
'is_enabled',
|
||||
)
|
||||
|
||||
|
||||
|
|
@ -232,15 +246,15 @@ class NotificationRecipientInline(admin.TabularInline):
|
|||
@admin.register(Notification)
|
||||
class NotificationAdmin(admin.ModelAdmin):
|
||||
list_display = (
|
||||
'verb',
|
||||
'title',
|
||||
'description',
|
||||
'expires_at',
|
||||
'created_at'
|
||||
)
|
||||
search_fields = (
|
||||
'id',
|
||||
'type__code',
|
||||
'verb'
|
||||
'notification_type__code',
|
||||
'title'
|
||||
)
|
||||
inlines = [NotificationAttachmentInline, NotificationRecipientInline]
|
||||
|
||||
|
|
@ -254,13 +268,13 @@ class NotificationRecipientAdmin(admin.ModelAdmin):
|
|||
'user',
|
||||
'notification',
|
||||
'unread',
|
||||
'delivery_channel',
|
||||
'delivery_status',
|
||||
'channel',
|
||||
'status',
|
||||
'attempts',
|
||||
)
|
||||
list_filter = (
|
||||
'delivery_channel',
|
||||
'delivery_status',
|
||||
'channel',
|
||||
'status',
|
||||
'unread'
|
||||
)
|
||||
ordering = (
|
||||
|
|
@ -272,7 +286,7 @@ class NotificationRecipientAdmin(admin.ModelAdmin):
|
|||
return (
|
||||
'id',
|
||||
f'user__{username_field}',
|
||||
'notification__verb',
|
||||
'notification__title',
|
||||
)
|
||||
|
||||
def has_change_permission(self, request, obj = ...):
|
||||
|
|
|
|||
|
|
@ -24,7 +24,8 @@ from .models import (
|
|||
NotificationRecipient,
|
||||
NotificationType,
|
||||
)
|
||||
from .services import channel_preferences, save_channel_preferences
|
||||
from .services import channel_preferences, save_channel_preferences, unread_count as user_unread_count
|
||||
from .signals import schedule_unread_count_changed
|
||||
|
||||
__all__ = [
|
||||
"api",
|
||||
|
|
@ -71,9 +72,13 @@ class DetailPath(Schema):
|
|||
def _base_user_queryset(user):
|
||||
return NotificationRecipient.objects.filter(
|
||||
user=user,
|
||||
delivery_channel=DeliveryChannel.BROWSER,
|
||||
channel=DeliveryChannel.BROWSER,
|
||||
notification__expires_at__gte=timezone.now(),
|
||||
).select_related("notification", "notification__type").prefetch_related("notification__attachments")
|
||||
).select_related(
|
||||
"notification",
|
||||
"notification__notification_type",
|
||||
"notification__content_type",
|
||||
).prefetch_related("notification__attachments")
|
||||
|
||||
|
||||
def _parse_pk(raw_id: str) -> int:
|
||||
|
|
@ -108,10 +113,7 @@ def _get_user_recipient(user, raw_id: str) -> NotificationRecipient:
|
|||
|
||||
@api.get("unread-count/")
|
||||
def unread_count(request):
|
||||
count = _base_user_queryset(request.user).filter(unread=True).count()
|
||||
return {
|
||||
"result": count,
|
||||
}
|
||||
return {"result": user_unread_count(request.user)}
|
||||
|
||||
|
||||
@api.post("make-read/{id}/", response=NotificationResponseSchema)
|
||||
|
|
@ -131,7 +133,9 @@ def make_unread(request, path: Path[DetailPath]):
|
|||
@api.post("make-all-read/")
|
||||
def make_all_read(request, filters: NotificationFilterSchema = Query(...)):
|
||||
qs = filters.filter(_base_user_queryset(request.user))
|
||||
qs.filter(unread=True).update(unread=False)
|
||||
updated = qs.filter(unread=True).update(unread=False)
|
||||
if updated:
|
||||
schedule_unread_count_changed(request.user.pk)
|
||||
return {}
|
||||
|
||||
|
||||
|
|
@ -169,14 +173,15 @@ def preferences(request):
|
|||
}
|
||||
types = NotificationType.objects.filter(
|
||||
is_active=True,
|
||||
configurable=True,
|
||||
is_configurable=True,
|
||||
code__in=saved,
|
||||
).select_related("group")
|
||||
return [
|
||||
{
|
||||
"code": notification_type.code,
|
||||
"name": notification_type.name,
|
||||
"group_name": notification_type.group.name,
|
||||
"channels": saved.get(notification_type.code, []),
|
||||
"channels": saved[notification_type.code],
|
||||
}
|
||||
for notification_type in types
|
||||
]
|
||||
|
|
|
|||
|
|
@ -13,19 +13,31 @@ __all__ = [
|
|||
|
||||
class NotificationFilterSchema(FilterSchema):
|
||||
unread: Optional[bool] = None
|
||||
type: Annotated[Optional[str], FilterLookup("notification__type__code")] = None
|
||||
type__startswith: Annotated[Optional[str], FilterLookup("notification__type__code__startswith")] = None
|
||||
type: Annotated[Optional[str], FilterLookup("notification__notification_type__code")] = None
|
||||
type__startswith: Annotated[Optional[str], FilterLookup("notification__notification_type__code__startswith")] = None
|
||||
content_type: Optional[str] = None
|
||||
object_id: Annotated[Optional[str], FilterLookup("notification__object_id")] = None
|
||||
search: Annotated[
|
||||
Optional[str],
|
||||
FilterLookup(
|
||||
["notification__verb__icontains", "notification__description__icontains"],
|
||||
["notification__title__icontains", "notification__description__icontains"],
|
||||
expression_connector="OR"
|
||||
)
|
||||
] = None
|
||||
object_id__ne: Optional[List[str]] = None
|
||||
object_id__ne__in: Optional[str] = None
|
||||
|
||||
def filter_content_type(self, value: str) -> Q:
|
||||
if not value:
|
||||
return Q()
|
||||
app_label, separator, model = value.partition(".")
|
||||
if not separator or not app_label or not model:
|
||||
return Q(pk__in=[])
|
||||
return Q(
|
||||
notification__content_type__app_label=app_label,
|
||||
notification__content_type__model=model,
|
||||
)
|
||||
|
||||
def filter_object_id__ne(self, value: List[str]) -> Q:
|
||||
return ~Q(notification__object_id__in=value)
|
||||
|
||||
|
|
|
|||
|
|
@ -29,10 +29,12 @@ class NotificationResponseSchema(ModelSchema):
|
|||
url: Optional[str] = Field(alias="notification.url")
|
||||
type: Optional[str] = None
|
||||
level: Optional[str] = Field(alias="notification.level")
|
||||
verb: Optional[str] = Field(alias="notification.verb")
|
||||
object_id: Optional[str] = Field(alias="notification.object_id")
|
||||
title: Optional[str] = Field(alias="notification.title")
|
||||
content_type: Optional[str] = None
|
||||
object_id: str = Field("", alias="notification.object_id")
|
||||
description: Optional[str] = Field(alias="notification.description")
|
||||
data: dict = Field(alias="notification.data")
|
||||
show_popup: bool = Field(alias="notification.show_popup")
|
||||
attachments: list[AttachmentSchema]
|
||||
|
||||
class Meta:
|
||||
|
|
@ -45,11 +47,18 @@ class NotificationResponseSchema(ModelSchema):
|
|||
|
||||
@staticmethod
|
||||
def resolve_type(obj):
|
||||
notification_type = obj.notification.type
|
||||
notification_type = obj.notification.notification_type
|
||||
if notification_type is None:
|
||||
return None
|
||||
return notification_type.code
|
||||
|
||||
@staticmethod
|
||||
def resolve_content_type(obj):
|
||||
content_type = obj.notification.content_type
|
||||
if content_type is None:
|
||||
return None
|
||||
return f"{content_type.app_label}.{content_type.model}"
|
||||
|
||||
@staticmethod
|
||||
def resolve_attachments(obj):
|
||||
return [
|
||||
|
|
@ -66,7 +75,7 @@ class NotificationResponseSchema(ModelSchema):
|
|||
|
||||
class ChannelPreferenceChannelSchema(Schema):
|
||||
channel: str
|
||||
enabled: bool
|
||||
is_enabled: bool
|
||||
|
||||
|
||||
class Preference(Schema):
|
||||
|
|
|
|||
|
|
@ -11,7 +11,24 @@ class NotifyConfig(AppConfig):
|
|||
verbose_name = "Notifications"
|
||||
|
||||
def ready(self):
|
||||
from django.db.models.signals import post_migrate
|
||||
|
||||
from notify.delivery.providers import register_builtin_providers
|
||||
from notify.registry import sync_on_migrate
|
||||
|
||||
register_builtin_providers()
|
||||
import notify.receivers # noqa: F401
|
||||
|
||||
post_migrate.connect(
|
||||
sync_on_migrate,
|
||||
sender=self,
|
||||
weak=False,
|
||||
dispatch_uid="notify.sync_registered",
|
||||
)
|
||||
|
||||
from django.conf import settings
|
||||
|
||||
if getattr(settings, "NOTIFY_REALTIME_ENABLED", False):
|
||||
from notify.realtime import register_handlers
|
||||
|
||||
register_handlers()
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ def _render(channel, notification_type, code, ttl, purpose, user):
|
|||
template = None
|
||||
if notification_type is not None:
|
||||
template = (
|
||||
NotificationTemplate.objects.filter(channel=channel, type=notification_type)
|
||||
NotificationTemplate.objects.filter(channel=channel, notification_type=notification_type)
|
||||
.order_by("id")
|
||||
.first()
|
||||
)
|
||||
|
|
@ -107,12 +107,12 @@ def send_code(
|
|||
channel: str,
|
||||
target: dict | None = None,
|
||||
user=None,
|
||||
type: NotificationType | str | None = None,
|
||||
notification_type: NotificationType | str | None = None,
|
||||
) -> VerificationCode:
|
||||
if not purpose:
|
||||
raise ValueError("purpose is required")
|
||||
provider, target, target_key = _resolve_target(channel, target)
|
||||
notification_type = _resolve_type(type)
|
||||
notification_type = _resolve_type(notification_type)
|
||||
now = timezone.now()
|
||||
ttl = _code_ttl()
|
||||
resend_interval = _code_resend_interval()
|
||||
|
|
@ -137,7 +137,7 @@ def send_code(
|
|||
purpose=purpose,
|
||||
channel=channel,
|
||||
target_key=target_key,
|
||||
delivery_target=target.model_dump(),
|
||||
target=target.model_dump(),
|
||||
expires_at=now + timedelta(seconds=ttl),
|
||||
max_attempts=_code_max_attempts(),
|
||||
)
|
||||
|
|
|
|||
|
|
@ -0,0 +1,32 @@
|
|||
"""Optional, receive-only WebSocket endpoint for the authenticated user's events."""
|
||||
|
||||
from channels.generic.websocket import AsyncJsonWebsocketConsumer
|
||||
|
||||
from notify.realtime import channel_layer_alias, user_group_name
|
||||
|
||||
|
||||
class UserEventsConsumer(AsyncJsonWebsocketConsumer):
|
||||
def __init__(self, *args, **kwargs):
|
||||
super().__init__(*args, **kwargs)
|
||||
self.channel_layer_alias = channel_layer_alias()
|
||||
|
||||
async def connect(self):
|
||||
user = self.scope.get("user")
|
||||
if user is None or not user.is_authenticated or not user.is_active:
|
||||
await self.close(code=4401)
|
||||
return
|
||||
self.group_name = user_group_name(user.pk)
|
||||
await self.channel_layer.group_add(self.group_name, self.channel_name)
|
||||
await self.accept()
|
||||
await self.send_json({"type": "connected"})
|
||||
|
||||
async def disconnect(self, close_code):
|
||||
if hasattr(self, "group_name"):
|
||||
await self.channel_layer.group_discard(self.group_name, self.channel_name)
|
||||
|
||||
async def receive_json(self, content, **kwargs):
|
||||
# Clients cannot select users or subscribe to arbitrary groups.
|
||||
pass
|
||||
|
||||
async def notify_event(self, event):
|
||||
await self.send_json(event["payload"])
|
||||
|
|
@ -28,41 +28,56 @@ def _single_line(value: str | None) -> str:
|
|||
def template_context(notification_recipient: NotificationRecipient) -> dict:
|
||||
notification = notification_recipient.notification
|
||||
user = notification_recipient.user
|
||||
if user is None:
|
||||
user_context = None
|
||||
else:
|
||||
username_field = user.__class__.USERNAME_FIELD
|
||||
user_context = {
|
||||
"id": user.pk,
|
||||
"username": getattr(user, username_field, ""),
|
||||
}
|
||||
return {
|
||||
"recipient": {
|
||||
"id": str(notification_recipient.id),
|
||||
"delivery_channel": notification_recipient.delivery_channel,
|
||||
"delivery_target": notification_recipient.delivery_target,
|
||||
"channel": notification_recipient.channel,
|
||||
"target": notification_recipient.target,
|
||||
"content_type": (
|
||||
f"{notification_recipient.content_type.app_label}.{notification_recipient.content_type.model}"
|
||||
if notification_recipient.content_type_id
|
||||
else None
|
||||
),
|
||||
"object_id": notification_recipient.object_id,
|
||||
},
|
||||
"notification": {
|
||||
"id": str(notification.id),
|
||||
"url": notification.url,
|
||||
"level": notification.level,
|
||||
"verb": notification.verb,
|
||||
"title": notification.title,
|
||||
"content_type": (
|
||||
f"{notification.content_type.app_label}.{notification.content_type.model}"
|
||||
if notification.content_type_id
|
||||
else None
|
||||
),
|
||||
"object_id": notification.object_id,
|
||||
"description": notification.description,
|
||||
"data": notification.data,
|
||||
},
|
||||
"user": {
|
||||
"id": user.pk,
|
||||
"username": getattr(user, username_field, ""),
|
||||
},
|
||||
"user": user_context,
|
||||
}
|
||||
|
||||
|
||||
def render_notification_template(
|
||||
delivery_channel: DeliveryChannel,
|
||||
channel: DeliveryChannel,
|
||||
notification_recipient: NotificationRecipient,
|
||||
) -> tuple[str, str | None]:
|
||||
notification = notification_recipient.notification
|
||||
template = NotificationTemplate.for_delivery(delivery_channel, notification.type)
|
||||
template = NotificationTemplate.for_delivery(channel, notification.notification_type)
|
||||
if template:
|
||||
context = template_context(notification_recipient)
|
||||
subject = _single_line(template.render_subject(context))
|
||||
body = template.render_body(context)
|
||||
else:
|
||||
subject = _single_line(notification.verb)
|
||||
subject = _single_line(notification.title)
|
||||
body = linebreaks(notification.description or "", autoescape=True)
|
||||
return subject, body
|
||||
|
||||
|
|
@ -110,10 +125,10 @@ class DeliveryProvider(ABC):
|
|||
raise NotImplementedError(f"{type(self).__name__} does not support codes")
|
||||
|
||||
def mark_sent(self, recipient: NotificationRecipient) -> None:
|
||||
recipient.delivery_status = DeliveryStatus.SENT
|
||||
recipient.status = DeliveryStatus.SENT
|
||||
recipient.sent_at = timezone.now()
|
||||
recipient.last_error = ""
|
||||
recipient.save(update_fields=["delivery_status", "sent_at", "last_error"])
|
||||
recipient.save(update_fields=["status", "sent_at", "last_error"])
|
||||
|
||||
def enqueue(self, recipient_id) -> None:
|
||||
from notify.tasks import deliver_notification
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
from notify.delivery.registry import register
|
||||
from .browser import BrowserDeliveryProvider
|
||||
from .email import EmailDeliveryProvider
|
||||
from .exolve import ExolveDeliveryProvider
|
||||
from .max import MaxDeliveryProvider
|
||||
from .telegram import TelegramDeliveryProvider
|
||||
|
||||
|
|
@ -8,6 +9,7 @@ __all__ = [
|
|||
'register_builtin_providers',
|
||||
'BrowserDeliveryProvider',
|
||||
'EmailDeliveryProvider',
|
||||
'ExolveDeliveryProvider',
|
||||
'MaxDeliveryProvider',
|
||||
'TelegramDeliveryProvider',
|
||||
]
|
||||
|
|
@ -17,6 +19,7 @@ def register_builtin_providers() -> None:
|
|||
for provider in (
|
||||
BrowserDeliveryProvider(),
|
||||
EmailDeliveryProvider(),
|
||||
ExolveDeliveryProvider(),
|
||||
MaxDeliveryProvider(),
|
||||
TelegramDeliveryProvider(),
|
||||
):
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ class EmailDeliveryProvider(DeliveryProvider):
|
|||
def send(self, recipient: NotificationRecipient) -> None:
|
||||
subject, body = render_notification_template(DeliveryChannel.EMAIL, recipient)
|
||||
self.send_message(
|
||||
self.parse_target(recipient.delivery_target),
|
||||
self.parse_target(recipient.target),
|
||||
subject,
|
||||
body,
|
||||
attachments=recipient.notification.attachments.all(),
|
||||
|
|
|
|||
|
|
@ -0,0 +1,102 @@
|
|||
import re
|
||||
from html import unescape
|
||||
from typing import Optional
|
||||
|
||||
import requests
|
||||
from django.utils.html import strip_tags
|
||||
from pydantic import BaseModel, field_validator
|
||||
|
||||
from notify.delivery.base import DeliveryProvider, render_notification_template
|
||||
from notify.delivery.exceptions import DeliveryError, PermanentDeliveryError
|
||||
from notify.models import DeliveryChannel, DeliveryTokenConfig, NotificationRecipient
|
||||
|
||||
__all__ = [
|
||||
"EXOLVE_API_TIMEOUT",
|
||||
"EXOLVE_SMS_URL",
|
||||
"ExolveTargetSchema",
|
||||
"ExolveDeliveryProvider",
|
||||
]
|
||||
|
||||
EXOLVE_API_TIMEOUT = 10
|
||||
EXOLVE_SMS_URL = "https://api.exolve.ru/messaging/v1/SendSMS"
|
||||
|
||||
|
||||
def _plain_text(value: str | None) -> str:
|
||||
return unescape(strip_tags(value or "")).strip()
|
||||
|
||||
|
||||
def normalize_phone(value: str) -> str:
|
||||
digits = re.sub(r"\D", "", value or "")
|
||||
if len(digits) == 11 and digits.startswith("8"):
|
||||
digits = "7" + digits[1:]
|
||||
if not digits.isdigit() or not 10 <= len(digits) <= 15:
|
||||
raise ValueError("phone must contain 10 to 15 digits")
|
||||
return digits
|
||||
|
||||
|
||||
class ExolveTargetSchema(BaseModel):
|
||||
phone: str
|
||||
|
||||
@field_validator("phone")
|
||||
@classmethod
|
||||
def validate_phone(cls, value: str) -> str:
|
||||
return normalize_phone(value)
|
||||
|
||||
|
||||
class ExolveDeliveryProvider(DeliveryProvider):
|
||||
channel = DeliveryChannel.SMS
|
||||
target_schema = ExolveTargetSchema
|
||||
supports_codes = True
|
||||
|
||||
def target_key(self, target: ExolveTargetSchema) -> str:
|
||||
return target.phone
|
||||
|
||||
def send(self, recipient: NotificationRecipient) -> None:
|
||||
subject, body = render_notification_template(DeliveryChannel.SMS, recipient)
|
||||
text = _plain_text(body)
|
||||
subject = _plain_text(subject)
|
||||
if subject and subject not in text:
|
||||
text = f"{subject}\n{text}".strip()
|
||||
self.send_message(self.parse_target(recipient.target), "", text)
|
||||
self.mark_sent(recipient)
|
||||
|
||||
def send_message(
|
||||
self,
|
||||
target: Optional[ExolveTargetSchema],
|
||||
subject: str,
|
||||
body: str,
|
||||
attachments=(),
|
||||
) -> None:
|
||||
delivery_config = DeliveryTokenConfig.get_default(DeliveryChannel.SMS)
|
||||
if delivery_config is None:
|
||||
raise DeliveryError("No default SMS delivery config")
|
||||
if not delivery_config.sender:
|
||||
raise DeliveryError("SMS delivery config has no sender")
|
||||
if target is None:
|
||||
raise PermanentDeliveryError("SMS recipient has no phone")
|
||||
|
||||
text = _plain_text(body) or _plain_text(subject)
|
||||
if not text:
|
||||
raise PermanentDeliveryError("SMS message is empty")
|
||||
|
||||
try:
|
||||
response = requests.post(
|
||||
EXOLVE_SMS_URL,
|
||||
headers={"Authorization": f"Bearer {delivery_config.token}"},
|
||||
json={
|
||||
"number": delivery_config.sender,
|
||||
"destination": target.phone,
|
||||
"text": text,
|
||||
},
|
||||
timeout=EXOLVE_API_TIMEOUT,
|
||||
)
|
||||
response.raise_for_status()
|
||||
except requests.Timeout as exc:
|
||||
raise DeliveryError("Exolve request timed out") from exc
|
||||
except requests.HTTPError as exc:
|
||||
status = exc.response.status_code if exc.response is not None else 0
|
||||
if status == 429 or status >= 500:
|
||||
raise DeliveryError(f"Exolve API temporary error: {status}") from exc
|
||||
raise PermanentDeliveryError(f"Exolve API rejected the message: {status}") from exc
|
||||
except requests.RequestException as exc:
|
||||
raise DeliveryError("Exolve request failed") from exc
|
||||
|
|
@ -42,7 +42,7 @@ class MaxDeliveryProvider(DeliveryProvider):
|
|||
|
||||
def send(self, recipient: NotificationRecipient) -> None:
|
||||
_, body = render_notification_template(DeliveryChannel.MAX, recipient)
|
||||
self.send_message(self.parse_target(recipient.delivery_target), "", body)
|
||||
self.send_message(self.parse_target(recipient.target), "", body)
|
||||
self.mark_sent(recipient)
|
||||
|
||||
def send_message(
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ class TelegramDeliveryProvider(DeliveryProvider):
|
|||
|
||||
def send(self, recipient: NotificationRecipient) -> None:
|
||||
_, body = render_notification_template(DeliveryChannel.TELEGRAM, recipient)
|
||||
self.send_message(self.parse_target(recipient.delivery_target), "", body)
|
||||
self.send_message(self.parse_target(recipient.target), "", body)
|
||||
self.mark_sent(recipient)
|
||||
|
||||
def send_message(
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
# Generated by Django 5.0.6 on 2026-10-11 11:02
|
||||
# Generated by Django 5.0.6 on 2026-10-12 00:51
|
||||
|
||||
import django.db.models.deletion
|
||||
import notify.fields
|
||||
|
|
@ -13,6 +13,7 @@ class Migration(migrations.Migration):
|
|||
initial = True
|
||||
|
||||
dependencies = [
|
||||
('contenttypes', '0002_remove_content_type_name'),
|
||||
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
||||
]
|
||||
|
||||
|
|
@ -22,7 +23,7 @@ class Migration(migrations.Migration):
|
|||
fields=[
|
||||
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
|
||||
('name', models.CharField(max_length=255, unique=True)),
|
||||
('channel', models.CharField(choices=[('email', 'Email'), ('telegram', 'Telegram'), ('browser', 'Browser'), ('max', 'Max')], max_length=20)),
|
||||
('channel', models.CharField(choices=[('email', 'Email'), ('telegram', 'Telegram'), ('browser', 'Browser'), ('max', 'Max'), ('sms', 'SMS')], max_length=20)),
|
||||
('is_default', models.BooleanField(default=False)),
|
||||
],
|
||||
),
|
||||
|
|
@ -31,9 +32,9 @@ class Migration(migrations.Migration):
|
|||
fields=[
|
||||
('id', models.BigAutoField(primary_key=True, serialize=False)),
|
||||
('url', models.TextField(null=True)),
|
||||
('level', models.CharField(choices=[('SUCCESS', 'Success'), ('INFO', 'Info'), ('WARNING', 'Warning'), ('ERROR', 'Error')], default='INFO', max_length=20)),
|
||||
('verb', models.CharField(max_length=255)),
|
||||
('object_id', models.CharField(default='', max_length=255)),
|
||||
('level', models.CharField(choices=[('success', 'Success'), ('info', 'Info'), ('warning', 'Warning'), ('error', 'Error')], default='info', max_length=20)),
|
||||
('title', models.CharField(max_length=255)),
|
||||
('object_id', models.CharField(blank=True, default='', max_length=255)),
|
||||
('description', models.TextField(blank=True, null=True)),
|
||||
('data', models.JSONField(blank=True, default=dict)),
|
||||
('idempotency_key', models.CharField(blank=True, max_length=255, null=True, unique=True)),
|
||||
|
|
@ -62,8 +63,8 @@ class Migration(migrations.Migration):
|
|||
name='NotificationChannelPreference',
|
||||
fields=[
|
||||
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
|
||||
('channel', models.CharField(choices=[('email', 'Email'), ('telegram', 'Telegram'), ('browser', 'Browser'), ('max', 'Max')], max_length=20)),
|
||||
('enabled', models.BooleanField(default=True)),
|
||||
('channel', models.CharField(choices=[('email', 'Email'), ('telegram', 'Telegram'), ('browser', 'Browser'), ('max', 'Max'), ('sms', 'SMS')], max_length=20)),
|
||||
('is_enabled', models.BooleanField(default=True)),
|
||||
],
|
||||
),
|
||||
migrations.CreateModel(
|
||||
|
|
@ -81,9 +82,10 @@ class Migration(migrations.Migration):
|
|||
name='NotificationRecipient',
|
||||
fields=[
|
||||
('id', models.BigAutoField(primary_key=True, serialize=False)),
|
||||
('delivery_channel', models.CharField(choices=[('email', 'Email'), ('telegram', 'Telegram'), ('browser', 'Browser'), ('max', 'Max')], max_length=20)),
|
||||
('delivery_target', models.JSONField(blank=True, default=None, null=True)),
|
||||
('delivery_status', models.CharField(choices=[('UNSENT', 'Unsent'), ('SENT', 'Sent'), ('FAILED', 'Failed')], default='UNSENT', max_length=10)),
|
||||
('object_id', models.CharField(blank=True, default='', max_length=255)),
|
||||
('channel', models.CharField(choices=[('email', 'Email'), ('telegram', 'Telegram'), ('browser', 'Browser'), ('max', 'Max'), ('sms', 'SMS')], max_length=20)),
|
||||
('target', models.JSONField(blank=True, default=None, null=True)),
|
||||
('status', models.CharField(choices=[('unsent', 'Unsent'), ('sent', 'Sent'), ('failed', 'Failed')], default='unsent', max_length=10)),
|
||||
('sent_at', models.DateTimeField(blank=True, null=True)),
|
||||
('attempts', models.PositiveSmallIntegerField(default=0)),
|
||||
('last_error', models.TextField(blank=True, default='')),
|
||||
|
|
@ -95,11 +97,11 @@ class Migration(migrations.Migration):
|
|||
name='NotificationTemplate',
|
||||
fields=[
|
||||
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
|
||||
('channel', models.CharField(choices=[('email', 'Email'), ('telegram', 'Telegram'), ('browser', 'Browser'), ('max', 'Max')], max_length=20)),
|
||||
('channel', models.CharField(choices=[('email', 'Email'), ('telegram', 'Telegram'), ('browser', 'Browser'), ('max', 'Max'), ('sms', 'SMS')], max_length=20)),
|
||||
('name', models.CharField(max_length=255, unique=True)),
|
||||
('is_default', models.BooleanField(default=False)),
|
||||
('subject_template', models.TextField(blank=True, default='')),
|
||||
('body_template', models.TextField()),
|
||||
('subject', models.TextField(blank=True, default='')),
|
||||
('body', models.TextField()),
|
||||
],
|
||||
),
|
||||
migrations.CreateModel(
|
||||
|
|
@ -109,11 +111,11 @@ class Migration(migrations.Migration):
|
|||
('code', models.CharField(max_length=100, unique=True)),
|
||||
('name', models.CharField(max_length=100)),
|
||||
('channels', models.JSONField(blank=True, default=list, validators=[notify.models.validate_delivery_channels])),
|
||||
('verb', models.CharField(blank=True, max_length=255, null=True)),
|
||||
('title', models.CharField(blank=True, max_length=255, null=True)),
|
||||
('position', models.IntegerField(default=0)),
|
||||
('is_active', models.BooleanField(default=True)),
|
||||
('configurable', models.BooleanField(default=True)),
|
||||
('enabled_by_default', models.BooleanField(default=True)),
|
||||
('is_configurable', models.BooleanField(default=True)),
|
||||
('is_enabled_by_default', models.BooleanField(default=True)),
|
||||
],
|
||||
options={
|
||||
'ordering': ('position', 'code'),
|
||||
|
|
@ -124,9 +126,9 @@ class Migration(migrations.Migration):
|
|||
fields=[
|
||||
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
|
||||
('purpose', models.CharField(max_length=100)),
|
||||
('channel', models.CharField(choices=[('email', 'Email'), ('telegram', 'Telegram'), ('browser', 'Browser'), ('max', 'Max')], max_length=20)),
|
||||
('channel', models.CharField(choices=[('email', 'Email'), ('telegram', 'Telegram'), ('browser', 'Browser'), ('max', 'Max'), ('sms', 'SMS')], max_length=20)),
|
||||
('target_key', models.CharField(max_length=255)),
|
||||
('delivery_target', models.JSONField(blank=True, default=None, null=True)),
|
||||
('target', models.JSONField(blank=True, default=None, null=True)),
|
||||
('code_hash', models.CharField(max_length=128)),
|
||||
('expires_at', models.DateTimeField(db_index=True)),
|
||||
('attempts', models.PositiveSmallIntegerField(default=0)),
|
||||
|
|
@ -158,6 +160,7 @@ class Migration(migrations.Migration):
|
|||
fields=[
|
||||
('deliveryconfig_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='notify.deliveryconfig')),
|
||||
('token', notify.fields.EncryptedSecretField(blank=True, max_length=500)),
|
||||
('sender', models.CharField(blank=True, default='', max_length=32)),
|
||||
],
|
||||
bases=('notify.deliveryconfig',),
|
||||
),
|
||||
|
|
@ -165,6 +168,11 @@ class Migration(migrations.Migration):
|
|||
model_name='deliveryconfig',
|
||||
constraint=models.UniqueConstraint(condition=models.Q(('is_default', True)), fields=('channel',), name='uniq_default_delivery_cfg'),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='notification',
|
||||
name='content_type',
|
||||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='contenttypes.contenttype'),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='notificationattachment',
|
||||
name='notification',
|
||||
|
|
@ -175,6 +183,11 @@ class Migration(migrations.Migration):
|
|||
name='user',
|
||||
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='notification_channel_preferences', to=settings.AUTH_USER_MODEL),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='notificationrecipient',
|
||||
name='content_type',
|
||||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='contenttypes.contenttype'),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='notificationrecipient',
|
||||
name='notification',
|
||||
|
|
@ -183,7 +196,7 @@ class Migration(migrations.Migration):
|
|||
migrations.AddField(
|
||||
model_name='notificationrecipient',
|
||||
name='user',
|
||||
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='notification_recipients', to=settings.AUTH_USER_MODEL),
|
||||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='notification_recipients', to=settings.AUTH_USER_MODEL),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='notificationtype',
|
||||
|
|
@ -192,17 +205,17 @@ class Migration(migrations.Migration):
|
|||
),
|
||||
migrations.AddField(
|
||||
model_name='notificationtemplate',
|
||||
name='type',
|
||||
name='notification_type',
|
||||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='templates', to='notify.notificationtype'),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='notificationchannelpreference',
|
||||
name='type',
|
||||
name='notification_type',
|
||||
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='channel_preferences', to='notify.notificationtype'),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='notification',
|
||||
name='type',
|
||||
name='notification_type',
|
||||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='notifications', to='notify.notificationtype'),
|
||||
),
|
||||
migrations.AddField(
|
||||
|
|
@ -212,23 +225,23 @@ class Migration(migrations.Migration):
|
|||
),
|
||||
migrations.AddIndex(
|
||||
model_name='notificationrecipient',
|
||||
index=models.Index(fields=['user', 'delivery_channel', 'created_at'], name='idx_recipient_inbox'),
|
||||
index=models.Index(fields=['user', 'channel', 'created_at'], name='idx_recipient_inbox'),
|
||||
),
|
||||
migrations.AddConstraint(
|
||||
model_name='notificationrecipient',
|
||||
constraint=models.UniqueConstraint(fields=('notification', 'user', 'delivery_channel'), name='uniq_recipient_channel'),
|
||||
constraint=models.UniqueConstraint(fields=('notification', 'user', 'channel'), name='uniq_recipient_channel'),
|
||||
),
|
||||
migrations.AddConstraint(
|
||||
model_name='notificationtemplate',
|
||||
constraint=models.UniqueConstraint(condition=models.Q(('is_default', True), ('type__isnull', True)), fields=('channel',), name='uniq_default_template_channel'),
|
||||
constraint=models.UniqueConstraint(condition=models.Q(('is_default', True), ('notification_type__isnull', True)), fields=('channel',), name='uniq_default_template_channel'),
|
||||
),
|
||||
migrations.AddConstraint(
|
||||
model_name='notificationtemplate',
|
||||
constraint=models.UniqueConstraint(condition=models.Q(('type__isnull', False)), fields=('type', 'channel'), name='uniq_template_type_channel'),
|
||||
constraint=models.UniqueConstraint(condition=models.Q(('notification_type__isnull', False)), fields=('notification_type', 'channel'), name='uniq_template_type_channel'),
|
||||
),
|
||||
migrations.AddConstraint(
|
||||
model_name='notificationchannelpreference',
|
||||
constraint=models.UniqueConstraint(fields=('user', 'type', 'channel'), name='uniq_user_type_channel_pref'),
|
||||
constraint=models.UniqueConstraint(fields=('user', 'notification_type', 'channel'), name='uniq_user_type_channel_pref'),
|
||||
),
|
||||
migrations.AddIndex(
|
||||
model_name='verificationcode',
|
||||
|
|
|
|||
|
|
@ -0,0 +1,15 @@
|
|||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
dependencies = [
|
||||
("notify", "0001_initial"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name="notification",
|
||||
name="show_popup",
|
||||
field=models.BooleanField(default=False),
|
||||
),
|
||||
]
|
||||
|
|
@ -0,0 +1,48 @@
|
|||
import uuid
|
||||
|
||||
import django.db.models.deletion
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("notify", "0002_notification_show_popup"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name="NotificationTypeRecipientGroup",
|
||||
fields=[
|
||||
(
|
||||
"id",
|
||||
models.UUIDField(
|
||||
default=uuid.uuid4,
|
||||
editable=False,
|
||||
primary_key=True,
|
||||
serialize=False,
|
||||
),
|
||||
),
|
||||
("group_name", models.CharField(max_length=150)),
|
||||
("is_configurable", models.BooleanField(default=True)),
|
||||
("is_enabled_by_default", models.BooleanField(default=True)),
|
||||
(
|
||||
"notification_type",
|
||||
models.ForeignKey(
|
||||
on_delete=django.db.models.deletion.CASCADE,
|
||||
related_name="recipient_groups",
|
||||
to="notify.notificationtype",
|
||||
),
|
||||
),
|
||||
],
|
||||
options={
|
||||
"ordering": ("group_name",),
|
||||
"constraints": [
|
||||
models.UniqueConstraint(
|
||||
fields=("notification_type", "group_name"),
|
||||
name="uniq_type_recipient_group",
|
||||
)
|
||||
],
|
||||
},
|
||||
),
|
||||
]
|
||||
|
|
@ -18,7 +18,11 @@ from notify.models.notification import (
|
|||
NotificationRecipient,
|
||||
default_expires_at,
|
||||
)
|
||||
from notify.models.notification_type import NotificationChannelPreference, NotificationType
|
||||
from notify.models.notification_type import (
|
||||
NotificationChannelPreference,
|
||||
NotificationType,
|
||||
NotificationTypeRecipientGroup,
|
||||
)
|
||||
from notify.models.template import NotificationTemplate
|
||||
|
||||
default_expires_at.__module__ = "notify.models"
|
||||
|
|
@ -39,6 +43,7 @@ __all__ = [
|
|||
"DeliveryTokenConfig",
|
||||
"NotificationTemplate",
|
||||
"NotificationChannelPreference",
|
||||
"NotificationTypeRecipientGroup",
|
||||
"Notification",
|
||||
"NotificationAttachment",
|
||||
"NotificationRecipient",
|
||||
|
|
|
|||
|
|
@ -14,19 +14,20 @@ class DeliveryChannel(models.TextChoices):
|
|||
TELEGRAM = "telegram"
|
||||
BROWSER = "browser"
|
||||
MAX = "max"
|
||||
SMS = "sms", "SMS"
|
||||
|
||||
|
||||
class DeliveryStatus(models.TextChoices):
|
||||
UNSENT = "UNSENT"
|
||||
SENT = "SENT"
|
||||
FAILED = "FAILED"
|
||||
UNSENT = "unsent"
|
||||
SENT = "sent"
|
||||
FAILED = "failed"
|
||||
|
||||
|
||||
class NotificationLevel(models.TextChoices):
|
||||
SUCCESS = "SUCCESS"
|
||||
INFO = "INFO"
|
||||
WARNING = "WARNING"
|
||||
ERROR = "ERROR"
|
||||
SUCCESS = "success"
|
||||
INFO = "info"
|
||||
WARNING = "warning"
|
||||
ERROR = "error"
|
||||
|
||||
|
||||
def validate_delivery_channels(value):
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ class VerificationCode(models.Model):
|
|||
purpose = models.CharField(max_length=100)
|
||||
channel = models.CharField(max_length=20, choices=DeliveryChannel.choices)
|
||||
target_key = models.CharField(max_length=255)
|
||||
delivery_target = models.JSONField(null=True, blank=True, default=None)
|
||||
target = models.JSONField(null=True, blank=True, default=None)
|
||||
code_hash = models.CharField(max_length=128)
|
||||
expires_at = models.DateTimeField(db_index=True)
|
||||
attempts = models.PositiveSmallIntegerField(default=0)
|
||||
|
|
|
|||
|
|
@ -87,6 +87,7 @@ class DeliveryEmailConfig(DeliveryConfig):
|
|||
|
||||
class DeliveryTokenConfig(DeliveryConfig):
|
||||
token = EncryptedSecretField(max_length=500, blank=True)
|
||||
sender = models.CharField(max_length=32, blank=True, default="")
|
||||
|
||||
@classmethod
|
||||
def get_default(cls, channel):
|
||||
|
|
|
|||
|
|
@ -2,6 +2,8 @@ from datetime import timedelta
|
|||
from urllib.parse import urlparse
|
||||
|
||||
from django.conf import settings
|
||||
from django.contrib.contenttypes.fields import GenericForeignKey
|
||||
from django.contrib.contenttypes.models import ContentType
|
||||
from django.db import models
|
||||
from django.utils import timezone
|
||||
|
||||
|
|
@ -23,7 +25,7 @@ def default_expires_at():
|
|||
class Notification(models.Model):
|
||||
id = models.BigAutoField(primary_key=True)
|
||||
url = models.TextField(null=True)
|
||||
type = models.ForeignKey(
|
||||
notification_type = models.ForeignKey(
|
||||
NotificationType,
|
||||
null=True,
|
||||
blank=True,
|
||||
|
|
@ -31,10 +33,13 @@ class Notification(models.Model):
|
|||
related_name="notifications",
|
||||
)
|
||||
level = models.CharField(max_length=20, choices=NotificationLevel.choices, default=NotificationLevel.INFO)
|
||||
verb = models.CharField(max_length=255)
|
||||
object_id = models.CharField(max_length=255, default="")
|
||||
title = models.CharField(max_length=255)
|
||||
content_type = models.ForeignKey(ContentType, null=True, blank=True, on_delete=models.SET_NULL)
|
||||
object_id = models.CharField(max_length=255, blank=True, default="")
|
||||
content_object = GenericForeignKey("content_type", "object_id")
|
||||
description = models.TextField(blank=True, null=True)
|
||||
data = models.JSONField(blank=True, default=dict)
|
||||
show_popup = models.BooleanField(default=False)
|
||||
idempotency_key = models.CharField(max_length=255, null=True, blank=True, unique=True)
|
||||
expires_at = models.DateTimeField(default=default_expires_at, db_index=True)
|
||||
created_at = models.DateTimeField(db_index=True, auto_now_add=True)
|
||||
|
|
@ -43,7 +48,7 @@ class Notification(models.Model):
|
|||
ordering = ("-created_at",)
|
||||
|
||||
def __str__(self):
|
||||
return self.verb
|
||||
return self.title
|
||||
|
||||
@property
|
||||
def relative_url(self):
|
||||
|
|
@ -74,12 +79,17 @@ class NotificationRecipient(models.Model):
|
|||
notification = models.ForeignKey(Notification, on_delete=models.CASCADE, related_name="recipients")
|
||||
user = models.ForeignKey(
|
||||
settings.AUTH_USER_MODEL,
|
||||
null=True,
|
||||
blank=True,
|
||||
on_delete=models.CASCADE,
|
||||
related_name="notification_recipients",
|
||||
)
|
||||
delivery_channel = models.CharField(max_length=20, choices=DeliveryChannel.choices)
|
||||
delivery_target = models.JSONField(null=True, blank=True, default=None)
|
||||
delivery_status = models.CharField(max_length=10, choices=DeliveryStatus.choices, default=DeliveryStatus.UNSENT)
|
||||
content_type = models.ForeignKey(ContentType, null=True, blank=True, on_delete=models.SET_NULL)
|
||||
object_id = models.CharField(max_length=255, blank=True, default="")
|
||||
content_object = GenericForeignKey("content_type", "object_id")
|
||||
channel = models.CharField(max_length=20, choices=DeliveryChannel.choices)
|
||||
target = models.JSONField(null=True, blank=True, default=None)
|
||||
status = models.CharField(max_length=10, choices=DeliveryStatus.choices, default=DeliveryStatus.UNSENT)
|
||||
sent_at = models.DateTimeField(null=True, blank=True)
|
||||
attempts = models.PositiveSmallIntegerField(default=0)
|
||||
last_error = models.TextField(blank=True, default="")
|
||||
|
|
@ -89,24 +99,24 @@ class NotificationRecipient(models.Model):
|
|||
class Meta:
|
||||
constraints = [
|
||||
models.UniqueConstraint(
|
||||
fields=["notification", "user", "delivery_channel"],
|
||||
fields=["notification", "user", "channel"],
|
||||
name="uniq_recipient_channel",
|
||||
),
|
||||
]
|
||||
indexes = [
|
||||
models.Index(fields=["user", "delivery_channel", "created_at"], name="idx_recipient_inbox"),
|
||||
models.Index(fields=["user", "channel", "created_at"], name="idx_recipient_inbox"),
|
||||
]
|
||||
|
||||
def __str__(self):
|
||||
target = self.delivery_target
|
||||
target = self.target
|
||||
if isinstance(target, dict) and target.get("email"):
|
||||
target = target["email"]
|
||||
target_info = f" to {target}" if target else ""
|
||||
return f"{self.delivery_channel}{target_info} ({self.delivery_status})"
|
||||
return f"{self.channel}{target_info} ({self.status})"
|
||||
|
||||
def save(self, *args, **kwargs):
|
||||
if self.delivery_channel == DeliveryChannel.BROWSER:
|
||||
self.delivery_status = DeliveryStatus.SENT
|
||||
if self.channel == DeliveryChannel.BROWSER:
|
||||
self.status = DeliveryStatus.SENT
|
||||
if self.sent_at is None:
|
||||
self.sent_at = timezone.now()
|
||||
super().save(*args, **kwargs)
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ from notify.models.managers import NotificationTypeManager
|
|||
__all__ = [
|
||||
"NotificationType",
|
||||
"NotificationChannelPreference",
|
||||
"NotificationTypeRecipientGroup",
|
||||
]
|
||||
|
||||
|
||||
|
|
@ -19,11 +20,11 @@ class NotificationType(models.Model):
|
|||
name = models.CharField(max_length=100)
|
||||
channels = models.JSONField(default=list, blank=True, validators=[validate_delivery_channels])
|
||||
group = models.ForeignKey(NotificationGroup, on_delete=models.PROTECT, related_name="types")
|
||||
verb = models.CharField(max_length=255, null=True, blank=True)
|
||||
title = models.CharField(max_length=255, null=True, blank=True)
|
||||
position = models.IntegerField(default=0)
|
||||
is_active = models.BooleanField(default=True)
|
||||
configurable = models.BooleanField(default=True)
|
||||
enabled_by_default = models.BooleanField(default=True)
|
||||
is_configurable = models.BooleanField(default=True)
|
||||
is_enabled_by_default = models.BooleanField(default=True)
|
||||
|
||||
objects = NotificationTypeManager()
|
||||
|
||||
|
|
@ -44,22 +45,46 @@ class NotificationChannelPreference(models.Model):
|
|||
on_delete=models.CASCADE,
|
||||
related_name="notification_channel_preferences",
|
||||
)
|
||||
type = models.ForeignKey(
|
||||
notification_type = models.ForeignKey(
|
||||
NotificationType,
|
||||
on_delete=models.CASCADE,
|
||||
related_name="channel_preferences",
|
||||
)
|
||||
channel = models.CharField(max_length=20, choices=DeliveryChannel.choices)
|
||||
enabled = models.BooleanField(default=True)
|
||||
is_enabled = models.BooleanField(default=True)
|
||||
|
||||
class Meta:
|
||||
constraints = [
|
||||
models.UniqueConstraint(
|
||||
fields=["user", "type", "channel"],
|
||||
fields=["user", "notification_type", "channel"],
|
||||
name="uniq_user_type_channel_pref",
|
||||
),
|
||||
]
|
||||
|
||||
def __str__(self):
|
||||
state = "on" if self.enabled else "off"
|
||||
state = "on" if self.is_enabled else "off"
|
||||
return f"{self.user_id} {self.channel} {state}"
|
||||
|
||||
|
||||
class NotificationTypeRecipientGroup(models.Model):
|
||||
id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)
|
||||
notification_type = models.ForeignKey(
|
||||
NotificationType,
|
||||
on_delete=models.CASCADE,
|
||||
related_name="recipient_groups",
|
||||
)
|
||||
group_name = models.CharField(max_length=150)
|
||||
is_configurable = models.BooleanField(default=True)
|
||||
is_enabled_by_default = models.BooleanField(default=True)
|
||||
|
||||
class Meta:
|
||||
ordering = ("group_name",)
|
||||
constraints = [
|
||||
models.UniqueConstraint(
|
||||
fields=["notification_type", "group_name"],
|
||||
name="uniq_type_recipient_group",
|
||||
),
|
||||
]
|
||||
|
||||
def __str__(self):
|
||||
return self.group_name
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ __all__ = [
|
|||
class NotificationTemplate(models.Model):
|
||||
id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)
|
||||
channel = models.CharField(max_length=20, choices=DeliveryChannel.choices)
|
||||
type = models.ForeignKey(
|
||||
notification_type = models.ForeignKey(
|
||||
"notify.NotificationType",
|
||||
null=True,
|
||||
blank=True,
|
||||
|
|
@ -22,19 +22,19 @@ class NotificationTemplate(models.Model):
|
|||
)
|
||||
name = models.CharField(unique=True, max_length=255)
|
||||
is_default = models.BooleanField(default=False)
|
||||
subject_template = models.TextField(default="", blank=True)
|
||||
body_template = models.TextField()
|
||||
subject = models.TextField(default="", blank=True)
|
||||
body = models.TextField()
|
||||
|
||||
class Meta:
|
||||
constraints = [
|
||||
models.UniqueConstraint(
|
||||
fields=["channel"],
|
||||
condition=models.Q(is_default=True, type__isnull=True),
|
||||
condition=models.Q(is_default=True, notification_type__isnull=True),
|
||||
name="uniq_default_template_channel",
|
||||
),
|
||||
models.UniqueConstraint(
|
||||
fields=["type", "channel"],
|
||||
condition=models.Q(type__isnull=False),
|
||||
fields=["notification_type", "channel"],
|
||||
condition=models.Q(notification_type__isnull=False),
|
||||
name="uniq_template_type_channel",
|
||||
),
|
||||
]
|
||||
|
|
@ -46,10 +46,10 @@ class NotificationTemplate(models.Model):
|
|||
update_fields = kwargs.get("update_fields")
|
||||
touches_default = update_fields is None or "is_default" in update_fields
|
||||
with transaction.atomic():
|
||||
if self.is_default and touches_default and self.type_id is None:
|
||||
if self.is_default and touches_default and self.notification_type_id is None:
|
||||
others = type(self).objects.filter(
|
||||
channel=self.channel,
|
||||
type__isnull=True,
|
||||
notification_type__isnull=True,
|
||||
is_default=True,
|
||||
)
|
||||
if self.pk:
|
||||
|
|
@ -60,7 +60,7 @@ class NotificationTemplate(models.Model):
|
|||
@classmethod
|
||||
def default(cls, channel):
|
||||
return (
|
||||
cls.objects.filter(channel=channel, type__isnull=True, is_default=True)
|
||||
cls.objects.filter(channel=channel, notification_type__isnull=True, is_default=True)
|
||||
.order_by("id")
|
||||
.first()
|
||||
)
|
||||
|
|
@ -68,13 +68,13 @@ class NotificationTemplate(models.Model):
|
|||
@classmethod
|
||||
def for_delivery(cls, channel, notification_type):
|
||||
if notification_type is not None:
|
||||
typed = cls.objects.filter(channel=channel, type=notification_type).order_by("id").first()
|
||||
typed = cls.objects.filter(channel=channel, notification_type=notification_type).order_by("id").first()
|
||||
if typed is not None:
|
||||
return typed
|
||||
return cls.default(channel)
|
||||
|
||||
def render_subject(self, context):
|
||||
return render(self.subject_template, context)
|
||||
return render(self.subject, context)
|
||||
|
||||
def render_body(self, context):
|
||||
return render(self.body_template, context)
|
||||
return render(self.body, context)
|
||||
|
|
|
|||
|
|
@ -0,0 +1,88 @@
|
|||
"""Optional Channels transport shared by notify and messenger."""
|
||||
|
||||
import hashlib
|
||||
import logging
|
||||
import re
|
||||
|
||||
from asgiref.sync import async_to_sync
|
||||
from django.conf import settings
|
||||
from django.core.exceptions import ImproperlyConfigured
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
def channel_layer_alias():
|
||||
return getattr(settings, "NOTIFY_REALTIME_CHANNEL_LAYER", "default")
|
||||
|
||||
|
||||
def user_group_name(user_id):
|
||||
# Hashing supports UUIDs and arbitrary string PKs within Channels' name limit.
|
||||
prefix = getattr(settings, "NOTIFY_REALTIME_GROUP_PREFIX", "notify.user")
|
||||
if not isinstance(prefix, str) or not re.fullmatch(r"[a-zA-Z0-9_.-]{1,34}", prefix):
|
||||
raise ImproperlyConfigured(
|
||||
"NOTIFY_REALTIME_GROUP_PREFIX must contain 1–34 ASCII letters, digits, '.', '_' or '-'."
|
||||
)
|
||||
key = hashlib.sha256(str(user_id).encode()).hexdigest()
|
||||
return f"{prefix}.{key}"
|
||||
|
||||
|
||||
def validate_configuration():
|
||||
try:
|
||||
from channels.layers import get_channel_layer
|
||||
except ImportError as exc:
|
||||
raise ImproperlyConfigured(
|
||||
"Realtime requires Django Channels. Install notify[channels] or messenger[channels]."
|
||||
) from exc
|
||||
|
||||
user_group_name("check")
|
||||
if get_channel_layer(channel_layer_alias()) is None:
|
||||
raise ImproperlyConfigured(
|
||||
"Configure CHANNEL_LAYERS for NOTIFY_REALTIME_CHANNEL_LAYER before enabling realtime."
|
||||
)
|
||||
|
||||
|
||||
def publish(user_ids, event, **payload):
|
||||
"""Best-effort synchronous publication; call after committing database changes."""
|
||||
try:
|
||||
from channels.layers import get_channel_layer
|
||||
|
||||
layer = get_channel_layer(channel_layer_alias())
|
||||
if layer is None:
|
||||
raise ImproperlyConfigured("No channel layer configured for realtime.")
|
||||
send = async_to_sync(layer.group_send)
|
||||
except Exception:
|
||||
logger.exception("Could not initialize the realtime channel layer")
|
||||
return
|
||||
|
||||
for user_id in set(user_ids):
|
||||
try:
|
||||
send(
|
||||
user_group_name(user_id),
|
||||
{"type": "notify.event", "payload": {"type": event, **payload}},
|
||||
)
|
||||
except Exception:
|
||||
# One failed recipient must not prevent delivery to the others.
|
||||
logger.exception("Could not publish realtime event %s to user %s", event, user_id)
|
||||
|
||||
|
||||
def notification_created(sender, user, notification, **kwargs):
|
||||
if getattr(settings, "NOTIFY_REALTIME_ENABLED", False):
|
||||
publish([user.pk], "notification.created", notification_id=notification.pk)
|
||||
|
||||
|
||||
def unread_changed(sender, user, **kwargs):
|
||||
if getattr(settings, "NOTIFY_REALTIME_ENABLED", False):
|
||||
publish([user.pk], "notification.unread")
|
||||
|
||||
|
||||
def register_handlers():
|
||||
"""Register once per signal, even if AppConfig.ready() runs repeatedly."""
|
||||
from notify.signals import browser_notification_created, unread_count_changed
|
||||
|
||||
validate_configuration()
|
||||
browser_notification_created.connect(
|
||||
notification_created, weak=False, dispatch_uid="notify.realtime.created"
|
||||
)
|
||||
unread_count_changed.connect(
|
||||
unread_changed, weak=False, dispatch_uid="notify.realtime.unread"
|
||||
)
|
||||
|
|
@ -3,10 +3,14 @@ from django.db.models.signals import post_delete, post_save
|
|||
from django.dispatch import receiver
|
||||
|
||||
from notify.delivery import get_provider
|
||||
from notify.models import NotificationAttachment, NotificationRecipient
|
||||
from notify.models import DeliveryChannel, NotificationAttachment, NotificationRecipient
|
||||
from notify.signals import schedule_browser_notification_created, schedule_unread_count_changed
|
||||
|
||||
__all__ = [
|
||||
"delete_attachment_file",
|
||||
"emit_browser_notification_created",
|
||||
"emit_unread_count_on_delete",
|
||||
"emit_unread_count_on_save",
|
||||
"post_save_notification",
|
||||
]
|
||||
|
||||
|
|
@ -15,19 +19,43 @@ __all__ = [
|
|||
def post_save_notification(sender, instance: NotificationRecipient, created, **kwargs):
|
||||
if not created:
|
||||
return
|
||||
provider = get_provider(instance.delivery_channel)
|
||||
provider = get_provider(instance.channel)
|
||||
if provider is None or not provider.requires_async_delivery:
|
||||
return
|
||||
recipient_id = instance.id
|
||||
|
||||
def enqueue():
|
||||
current = get_provider(instance.delivery_channel)
|
||||
current = get_provider(instance.channel)
|
||||
if current is not None:
|
||||
current.enqueue(recipient_id)
|
||||
|
||||
transaction.on_commit(enqueue)
|
||||
|
||||
|
||||
@receiver(post_save, sender=NotificationRecipient)
|
||||
def emit_unread_count_on_save(sender, instance: NotificationRecipient, created, **kwargs):
|
||||
if instance.channel != DeliveryChannel.BROWSER or not instance.user_id:
|
||||
return
|
||||
update_fields = kwargs.get("update_fields")
|
||||
if not created and update_fields is not None and "unread" not in update_fields:
|
||||
return
|
||||
schedule_unread_count_changed(instance.user_id)
|
||||
|
||||
|
||||
@receiver(post_save, sender=NotificationRecipient)
|
||||
def emit_browser_notification_created(sender, instance: NotificationRecipient, created, **kwargs):
|
||||
if not created or instance.channel != DeliveryChannel.BROWSER or not instance.user_id:
|
||||
return
|
||||
schedule_browser_notification_created(instance.user_id, instance.notification_id)
|
||||
|
||||
|
||||
@receiver(post_delete, sender=NotificationRecipient)
|
||||
def emit_unread_count_on_delete(sender, instance: NotificationRecipient, **kwargs):
|
||||
if instance.channel != DeliveryChannel.BROWSER or not instance.user_id or not instance.unread:
|
||||
return
|
||||
schedule_unread_count_changed(instance.user_id)
|
||||
|
||||
|
||||
@receiver(post_delete, sender=NotificationAttachment)
|
||||
def delete_attachment_file(sender, instance: NotificationAttachment, **kwargs):
|
||||
if instance.file:
|
||||
|
|
|
|||
|
|
@ -0,0 +1,247 @@
|
|||
from dataclasses import dataclass
|
||||
|
||||
from django.core.exceptions import ValidationError
|
||||
from django.db import transaction
|
||||
|
||||
from django.contrib.auth.models import Group as AuthGroup
|
||||
|
||||
from notify.models import (
|
||||
NotificationGroup,
|
||||
NotificationTemplate,
|
||||
NotificationType,
|
||||
NotificationTypeRecipientGroup,
|
||||
)
|
||||
from notify.models.choices import validate_delivery_channels
|
||||
|
||||
__all__ = [
|
||||
"GroupSpec",
|
||||
"RecipientGroupSpec",
|
||||
"TemplateSpec",
|
||||
"TypeSpec",
|
||||
"clear",
|
||||
"register",
|
||||
"sync_registered",
|
||||
]
|
||||
|
||||
_groups: dict[str, "GroupSpec"] = {}
|
||||
_types: dict[str, "TypeSpec"] = {}
|
||||
|
||||
|
||||
def _require_text(value, label, max_length):
|
||||
if not isinstance(value, str) or not value.strip():
|
||||
raise ValueError(f"{label} is required")
|
||||
if len(value) > max_length:
|
||||
raise ValueError(f"{label} is longer than {max_length} characters")
|
||||
|
||||
|
||||
def _check_channels(channels):
|
||||
if isinstance(channels, str) or not isinstance(channels, (list, tuple)):
|
||||
raise ValueError("channels must be a list")
|
||||
try:
|
||||
validate_delivery_channels(list(channels))
|
||||
except ValidationError as exc:
|
||||
raise ValueError(exc.messages[0]) from exc
|
||||
if len(set(channels)) != len(channels):
|
||||
raise ValueError("channels must be unique")
|
||||
return tuple(channels)
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class GroupSpec:
|
||||
code: str
|
||||
name: str
|
||||
|
||||
def __post_init__(self):
|
||||
_require_text(self.code, "Notification group code", NotificationGroup._meta.get_field("code").max_length)
|
||||
_require_text(self.name, "Notification group name", NotificationGroup._meta.get_field("name").max_length)
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class RecipientGroupSpec:
|
||||
group: str
|
||||
is_configurable: bool = True
|
||||
is_enabled_by_default: bool = True
|
||||
|
||||
def __post_init__(self):
|
||||
_require_text(
|
||||
self.group,
|
||||
"Recipient group name",
|
||||
AuthGroup._meta.get_field("name").max_length,
|
||||
)
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class TemplateSpec:
|
||||
channel: str
|
||||
body: str
|
||||
subject: str = ""
|
||||
|
||||
def __post_init__(self):
|
||||
_check_channels((self.channel,))
|
||||
if not isinstance(self.body, str) or not self.body:
|
||||
raise ValueError("template body is required")
|
||||
if not isinstance(self.subject, str):
|
||||
raise ValueError("template subject must be a string")
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class TypeSpec:
|
||||
code: str
|
||||
name: str
|
||||
group: str
|
||||
channels: tuple[str, ...] = ()
|
||||
title: str | None = None
|
||||
position: int = 0
|
||||
is_active: bool = True
|
||||
is_configurable: bool = True
|
||||
is_enabled_by_default: bool = True
|
||||
templates: tuple[TemplateSpec, ...] = ()
|
||||
recipient_groups: tuple[RecipientGroupSpec, ...] = ()
|
||||
|
||||
def __post_init__(self):
|
||||
code_field = NotificationType._meta.get_field("code")
|
||||
name_field = NotificationType._meta.get_field("name")
|
||||
title_field = NotificationType._meta.get_field("title")
|
||||
_require_text(self.code, "Notification type code", code_field.max_length)
|
||||
_require_text(self.name, "Notification type name", name_field.max_length)
|
||||
_require_text(self.group, "Notification group code", NotificationGroup._meta.get_field("code").max_length)
|
||||
channels = _check_channels(self.channels)
|
||||
templates = []
|
||||
seen = set()
|
||||
for template in self.templates:
|
||||
if not isinstance(template, TemplateSpec):
|
||||
raise ValueError("templates must be TemplateSpec instances")
|
||||
if template.channel not in channels:
|
||||
raise ValueError(
|
||||
f"Template channel {template.channel} is not allowed for notification type {self.code}"
|
||||
)
|
||||
if template.channel in seen:
|
||||
raise ValueError(
|
||||
f"Duplicate template channel {template.channel} for notification type {self.code}"
|
||||
)
|
||||
seen.add(template.channel)
|
||||
templates.append(template)
|
||||
if self.title is not None:
|
||||
_require_text(self.title, "title", title_field.max_length)
|
||||
recipient_groups = _check_recipient_groups(self.code, self.recipient_groups)
|
||||
object.__setattr__(self, "channels", channels)
|
||||
object.__setattr__(self, "templates", tuple(sorted(templates, key=lambda item: item.channel)))
|
||||
object.__setattr__(self, "recipient_groups", recipient_groups)
|
||||
|
||||
|
||||
def register(*specs: GroupSpec | TypeSpec) -> None:
|
||||
for spec in specs:
|
||||
if isinstance(spec, GroupSpec):
|
||||
_register_group(spec)
|
||||
elif isinstance(spec, TypeSpec):
|
||||
_register_type(spec)
|
||||
else:
|
||||
raise TypeError(f"Expected GroupSpec or TypeSpec, got {type(spec).__name__}")
|
||||
|
||||
|
||||
def clear() -> None:
|
||||
_groups.clear()
|
||||
_types.clear()
|
||||
|
||||
|
||||
def sync_on_migrate(sender, **kwargs) -> None:
|
||||
sync_registered()
|
||||
|
||||
|
||||
def sync_registered() -> None:
|
||||
with transaction.atomic():
|
||||
for spec in _groups.values():
|
||||
NotificationGroup.objects.update_or_create(code=spec.code, defaults={"name": spec.name})
|
||||
for spec in _types.values():
|
||||
group = NotificationGroup.objects.get(code=spec.group)
|
||||
notification_type, _created = NotificationType.objects.update_or_create(
|
||||
code=spec.code,
|
||||
defaults={
|
||||
"name": spec.name,
|
||||
"channels": list(spec.channels),
|
||||
"group": group,
|
||||
"title": spec.title,
|
||||
"position": spec.position,
|
||||
"is_active": spec.is_active,
|
||||
"is_configurable": spec.is_configurable,
|
||||
"is_enabled_by_default": spec.is_enabled_by_default,
|
||||
},
|
||||
)
|
||||
_sync_templates(notification_type, spec)
|
||||
_sync_recipient_groups(notification_type, spec)
|
||||
|
||||
|
||||
def _register_group(spec: GroupSpec) -> None:
|
||||
existing = _groups.get(spec.code)
|
||||
if existing is not None and existing != spec:
|
||||
raise ValueError(f"Notification group {spec.code} is already registered with different data")
|
||||
_groups[spec.code] = spec
|
||||
|
||||
|
||||
def _register_type(spec: TypeSpec) -> None:
|
||||
if spec.group not in _groups:
|
||||
raise ValueError(f"Notification group {spec.group} is not registered")
|
||||
existing = _types.get(spec.code)
|
||||
if existing is not None and existing != spec:
|
||||
raise ValueError(f"Notification type {spec.code} is already registered with different data")
|
||||
_types[spec.code] = spec
|
||||
|
||||
|
||||
def _check_recipient_groups(type_code, recipient_groups):
|
||||
if isinstance(recipient_groups, str) or not isinstance(recipient_groups, (list, tuple)):
|
||||
raise ValueError("recipient_groups must be a list")
|
||||
groups = []
|
||||
seen = set()
|
||||
for item in recipient_groups:
|
||||
if not isinstance(item, RecipientGroupSpec):
|
||||
raise ValueError("recipient_groups must be RecipientGroupSpec instances")
|
||||
if item.group in seen:
|
||||
raise ValueError(f"Duplicate recipient group {item.group} for notification type {type_code}")
|
||||
seen.add(item.group)
|
||||
groups.append(item)
|
||||
return tuple(sorted(groups, key=lambda item: item.group))
|
||||
|
||||
|
||||
def _sync_recipient_groups(notification_type: NotificationType, spec: TypeSpec) -> None:
|
||||
kept = []
|
||||
for item in spec.recipient_groups:
|
||||
kept.append(item.group)
|
||||
NotificationTypeRecipientGroup.objects.update_or_create(
|
||||
notification_type=notification_type,
|
||||
group_name=item.group,
|
||||
defaults={
|
||||
"is_configurable": item.is_configurable,
|
||||
"is_enabled_by_default": item.is_enabled_by_default,
|
||||
},
|
||||
)
|
||||
stale = notification_type.recipient_groups.all()
|
||||
if kept:
|
||||
stale = stale.exclude(group_name__in=kept)
|
||||
stale.delete()
|
||||
|
||||
|
||||
def _sync_templates(notification_type: NotificationType, spec: TypeSpec) -> None:
|
||||
kept = []
|
||||
for template in spec.templates:
|
||||
kept.append(template.channel)
|
||||
try:
|
||||
row = NotificationTemplate.objects.get(
|
||||
notification_type=notification_type,
|
||||
channel=template.channel,
|
||||
)
|
||||
except NotificationTemplate.DoesNotExist:
|
||||
NotificationTemplate.objects.create(
|
||||
notification_type=notification_type,
|
||||
channel=template.channel,
|
||||
name=f"{spec.code}.{template.channel}",
|
||||
subject=template.subject,
|
||||
body=template.body,
|
||||
)
|
||||
else:
|
||||
row.subject = template.subject
|
||||
row.body = template.body
|
||||
row.save(update_fields=["subject", "body"])
|
||||
stale = NotificationTemplate.objects.filter(notification_type=notification_type)
|
||||
if kept:
|
||||
stale = stale.exclude(channel__in=kept)
|
||||
stale.delete()
|
||||
|
|
@ -1,3 +1,5 @@
|
|||
from django.contrib.auth.models import Group
|
||||
from django.contrib.contenttypes.models import ContentType
|
||||
from django.db import IntegrityError, transaction
|
||||
from django.utils import timezone
|
||||
|
||||
|
|
@ -16,6 +18,7 @@ __all__ = [
|
|||
"create_notification",
|
||||
"channel_preferences",
|
||||
"save_channel_preferences",
|
||||
"unread_count",
|
||||
]
|
||||
|
||||
|
||||
|
|
@ -33,15 +36,39 @@ def _existing_idempotent(idempotency_key):
|
|||
return Notification.objects.filter(idempotency_key=idempotency_key).first()
|
||||
|
||||
|
||||
def _user_group_names(user):
|
||||
if user is None or not getattr(user, "pk", None):
|
||||
return ()
|
||||
return tuple(user.groups.values_list("name", flat=True))
|
||||
|
||||
|
||||
def _delivery_default(notification_type, user, group_names=None):
|
||||
if notification_type is None or not notification_type.is_configurable:
|
||||
return True, True
|
||||
if group_names is None:
|
||||
group_names = _user_group_names(user)
|
||||
links = []
|
||||
if group_names:
|
||||
links = list(notification_type.recipient_groups.filter(group_name__in=group_names))
|
||||
if any(not link.is_configurable for link in links):
|
||||
return True, True
|
||||
if links:
|
||||
return False, any(link.is_enabled_by_default for link in links)
|
||||
return False, notification_type.is_enabled_by_default
|
||||
|
||||
|
||||
def _allowed_channels(notification_type, user, channels):
|
||||
if notification_type is None or not notification_type.configurable:
|
||||
if notification_type is None or user is None:
|
||||
return channels
|
||||
locked, default_enabled = _delivery_default(notification_type, user)
|
||||
if locked:
|
||||
return channels
|
||||
allowed = set(notification_type.channels)
|
||||
prefs = {
|
||||
pref.channel: pref.enabled
|
||||
pref.channel: pref.is_enabled
|
||||
for pref in NotificationChannelPreference.objects.filter(
|
||||
user=user,
|
||||
type=notification_type,
|
||||
notification_type=notification_type,
|
||||
channel__in=allowed,
|
||||
)
|
||||
}
|
||||
|
|
@ -52,22 +79,86 @@ def _allowed_channels(notification_type, user, channels):
|
|||
raise ValueError(
|
||||
f"Channel {channel} is not allowed for notification type {notification_type.code}"
|
||||
)
|
||||
if prefs.get(channel, notification_type.enabled_by_default):
|
||||
if prefs.get(channel, default_enabled):
|
||||
kept.append(channel_data)
|
||||
return kept
|
||||
|
||||
|
||||
def _grouped_notification(notification_type, user, object_id):
|
||||
if notification_type is None or not object_id:
|
||||
def _resolve_auth_group(group):
|
||||
if isinstance(group, Group):
|
||||
return group
|
||||
if isinstance(group, str):
|
||||
if not group.strip():
|
||||
raise ValueError("group name is required")
|
||||
return Group.objects.get(name=group)
|
||||
raise ValueError("group must be a Group or a name")
|
||||
|
||||
|
||||
def _expand_groups(recipients):
|
||||
expanded = []
|
||||
for recipient_data in recipients:
|
||||
group = recipient_data.get("group")
|
||||
user = recipient_data.get("user")
|
||||
if group is not None and user is not None:
|
||||
raise ValueError("Recipient cannot have both user and group")
|
||||
if group is None:
|
||||
expanded.append(recipient_data)
|
||||
continue
|
||||
group = _resolve_auth_group(group)
|
||||
channels = recipient_data.get("channels") or []
|
||||
members = group.user_set.filter(is_active=True).order_by("pk")
|
||||
if not members.exists():
|
||||
raise ValueError(f"Group {group.name} has no active users")
|
||||
content_object = recipient_data.get("content_object")
|
||||
for member in members:
|
||||
item = {"user": member, "channels": list(channels)}
|
||||
if content_object is not None:
|
||||
item["content_object"] = content_object
|
||||
expanded.append(item)
|
||||
return expanded
|
||||
|
||||
|
||||
def _recipients_from_type(notification_type):
|
||||
if notification_type is None:
|
||||
return None
|
||||
links = list(notification_type.recipient_groups.all())
|
||||
if not links:
|
||||
return None
|
||||
for channel in notification_type.channels:
|
||||
provider = get_provider(channel)
|
||||
if provider is None:
|
||||
raise ValueError(f"No delivery provider registered for channel: {channel}")
|
||||
if provider.target_schema is not None:
|
||||
raise ValueError(f"Channel {channel} requires a target; pass recipients")
|
||||
return [
|
||||
{
|
||||
"group": link.group_name,
|
||||
"channels": [{"channel": channel} for channel in notification_type.channels],
|
||||
}
|
||||
for link in links
|
||||
]
|
||||
|
||||
|
||||
def _content_link(content_object):
|
||||
if content_object is None:
|
||||
return None, ""
|
||||
if content_object.pk is None:
|
||||
raise ValueError("content_object must be saved")
|
||||
return ContentType.objects.get_for_model(content_object), str(content_object.pk)
|
||||
|
||||
|
||||
def _grouped_notification(notification_type, user, content_type, object_id):
|
||||
if notification_type is None or content_type is None or not object_id:
|
||||
return None
|
||||
return (
|
||||
Notification.objects.select_for_update()
|
||||
.filter(
|
||||
type=notification_type,
|
||||
notification_type=notification_type,
|
||||
content_type=content_type,
|
||||
object_id=object_id,
|
||||
expires_at__gte=timezone.now(),
|
||||
recipients__user=user,
|
||||
recipients__delivery_channel=DeliveryChannel.BROWSER,
|
||||
recipients__channel=DeliveryChannel.BROWSER,
|
||||
recipients__unread=True,
|
||||
)
|
||||
.order_by("-created_at")
|
||||
|
|
@ -75,22 +166,26 @@ def _grouped_notification(notification_type, user, object_id):
|
|||
)
|
||||
|
||||
|
||||
def _bump_group(notification, verb):
|
||||
def _bump_group(notification, title):
|
||||
payload = dict(notification.data or {})
|
||||
payload["count"] = int(payload.get("count", 1)) + 1
|
||||
notification.data = payload
|
||||
if verb:
|
||||
notification.verb = verb
|
||||
notification.save(update_fields=["data", "verb"])
|
||||
if title:
|
||||
notification.title = title
|
||||
notification.save(update_fields=["data", "title"])
|
||||
return notification
|
||||
|
||||
|
||||
def _collapse_grouped(notification_type, recipients, object_id, verb):
|
||||
def _collapse_grouped(notification_type, recipients, content_type, object_id, title):
|
||||
pending = []
|
||||
grouped = []
|
||||
seen = set()
|
||||
for recipient_data in recipients:
|
||||
found = _grouped_notification(notification_type, recipient_data["user"], object_id)
|
||||
user = recipient_data.get("user")
|
||||
if user is None:
|
||||
pending.append(recipient_data)
|
||||
continue
|
||||
found = _grouped_notification(notification_type, user, content_type, object_id)
|
||||
if found is None:
|
||||
pending.append(recipient_data)
|
||||
continue
|
||||
|
|
@ -98,7 +193,7 @@ def _collapse_grouped(notification_type, recipients, object_id, verb):
|
|||
seen.add(found.pk)
|
||||
grouped.append(found)
|
||||
for notification in grouped:
|
||||
_bump_group(notification, verb)
|
||||
_bump_group(notification, title)
|
||||
return pending, grouped
|
||||
|
||||
|
||||
|
|
@ -110,27 +205,34 @@ def _attach_recipients(notification, recipients, notification_type):
|
|||
channels = recipient_data.get("channels") or []
|
||||
if not channels:
|
||||
raise ValueError("Recipient has no channels")
|
||||
user = recipient_data["user"]
|
||||
user = recipient_data.get("user")
|
||||
content_type, object_id = _content_link(recipient_data.get("content_object"))
|
||||
channels = _allowed_channels(notification_type, user, channels)
|
||||
for channel_data in channels:
|
||||
channel = channel_data["channel"]
|
||||
if channel == DeliveryChannel.BROWSER and user is None:
|
||||
raise ValueError("browser requires a user")
|
||||
if allowed_channels is not None and channel not in allowed_channels:
|
||||
raise ValueError(
|
||||
f"Channel {channel} is not allowed for notification type {notification_type.code}"
|
||||
)
|
||||
identity = (user.pk, channel)
|
||||
if identity in seen:
|
||||
raise ValueError(f"Duplicate recipient for user {user.pk} and channel {channel}")
|
||||
seen.add(identity)
|
||||
provider = get_provider(channel)
|
||||
if provider is None:
|
||||
raise ValueError(f"No delivery provider registered for channel: {channel}")
|
||||
target = provider.validate_target(channel_data.get("target"))
|
||||
raw_target = target.model_dump() if target is not None else None
|
||||
if user is not None:
|
||||
identity = (user.pk, channel)
|
||||
if identity in seen:
|
||||
raise ValueError(f"Duplicate recipient for user {user.pk} and channel {channel}")
|
||||
seen.add(identity)
|
||||
NotificationRecipient.objects.create(
|
||||
notification=notification,
|
||||
user=user,
|
||||
delivery_channel=channel,
|
||||
delivery_target=target.model_dump() if target is not None else None,
|
||||
content_type=content_type,
|
||||
object_id=object_id,
|
||||
channel=channel,
|
||||
target=raw_target,
|
||||
)
|
||||
created += 1
|
||||
if created == 0:
|
||||
|
|
@ -140,14 +242,15 @@ def _attach_recipients(notification, recipients, notification_type):
|
|||
|
||||
def create_notification(
|
||||
*,
|
||||
recipients: list[dict],
|
||||
verb: str | None = None,
|
||||
recipients: list[dict] | None = None,
|
||||
title: str | None = None,
|
||||
url: str | None = None,
|
||||
type: NotificationType | str | None = None,
|
||||
notification_type: NotificationType | str | None = None,
|
||||
level: str = NotificationLevel.INFO,
|
||||
object_id: str = "",
|
||||
content_object=None,
|
||||
description: str | None = None,
|
||||
data: dict | None = None,
|
||||
show_popup: bool = False,
|
||||
expires_at=None,
|
||||
idempotency_key: str | None = None,
|
||||
group: bool = False,
|
||||
|
|
@ -160,21 +263,26 @@ def create_notification(
|
|||
return existing
|
||||
|
||||
prepared_attachments = prepare_attachments(attachments)
|
||||
notification_type = _resolve_type(type)
|
||||
notification_type = _resolve_type(notification_type)
|
||||
if notification_type is not None and not notification_type.is_active:
|
||||
raise ValueError(f"Notification type {notification_type.code} is inactive")
|
||||
|
||||
if not verb:
|
||||
verb = notification_type.verb if notification_type is not None else None
|
||||
if not verb:
|
||||
raise ValueError("verb is required")
|
||||
if not title:
|
||||
title = notification_type.title if notification_type is not None else None
|
||||
if not title:
|
||||
raise ValueError("title is required")
|
||||
|
||||
content_type, object_id = _content_link(content_object)
|
||||
|
||||
if recipients is None:
|
||||
recipients = _recipients_from_type(notification_type)
|
||||
if not recipients:
|
||||
raise ValueError("At least one recipient is required")
|
||||
|
||||
stored_attachments = []
|
||||
try:
|
||||
with transaction.atomic():
|
||||
recipients = _expand_groups(recipients)
|
||||
for recipient_data in recipients:
|
||||
if not (recipient_data.get("channels") or []):
|
||||
raise ValueError("Recipient has no channels")
|
||||
|
|
@ -183,8 +291,9 @@ def create_notification(
|
|||
to_create, grouped = _collapse_grouped(
|
||||
notification_type,
|
||||
recipients,
|
||||
object_id or "",
|
||||
verb,
|
||||
content_type,
|
||||
object_id,
|
||||
title,
|
||||
)
|
||||
for grouped_notification in grouped:
|
||||
store_attachments(grouped_notification, prepared_attachments, stored_attachments)
|
||||
|
|
@ -192,12 +301,14 @@ def create_notification(
|
|||
return grouped[0]
|
||||
fields = dict(
|
||||
url=url,
|
||||
type=notification_type,
|
||||
notification_type=notification_type,
|
||||
level=level,
|
||||
verb=verb,
|
||||
object_id=object_id or "",
|
||||
title=title,
|
||||
content_type=content_type,
|
||||
object_id=object_id,
|
||||
description=description,
|
||||
data=data or {},
|
||||
show_popup=show_popup,
|
||||
idempotency_key=idempotency_key,
|
||||
)
|
||||
if expires_at is not None:
|
||||
|
|
@ -218,32 +329,40 @@ def create_notification(
|
|||
|
||||
|
||||
def channel_preferences(user):
|
||||
types = NotificationType.objects.filter(is_active=True, configurable=True)
|
||||
group_names = _user_group_names(user)
|
||||
types = NotificationType.objects.filter(is_active=True, is_configurable=True)
|
||||
saved = {
|
||||
(pref.type_id, pref.channel): pref.enabled
|
||||
(pref.notification_type_id, pref.channel): pref.is_enabled
|
||||
for pref in NotificationChannelPreference.objects.filter(user=user)
|
||||
}
|
||||
return [
|
||||
visible = []
|
||||
for notification_type in types:
|
||||
locked, default_enabled = _delivery_default(notification_type, user, group_names)
|
||||
if locked:
|
||||
continue
|
||||
visible.append(
|
||||
{
|
||||
"code": notification_type.code,
|
||||
"channels": [
|
||||
{
|
||||
"channel": channel,
|
||||
"enabled": saved.get(
|
||||
(notification_type.id, channel),
|
||||
notification_type.enabled_by_default,
|
||||
),
|
||||
"is_enabled": saved.get((notification_type.id, channel), default_enabled),
|
||||
}
|
||||
for channel in notification_type.channels
|
||||
],
|
||||
}
|
||||
for notification_type in types
|
||||
]
|
||||
)
|
||||
return visible
|
||||
|
||||
|
||||
def save_channel_preferences(user, items):
|
||||
for item in items:
|
||||
notification_type = NotificationType.objects.get(code=item["code"], configurable=True)
|
||||
notification_type = NotificationType.objects.get(code=item["code"], is_configurable=True)
|
||||
locked, _default_enabled = _delivery_default(notification_type, user)
|
||||
if locked:
|
||||
raise ValueError(
|
||||
f"Notification type {notification_type.code} cannot be disabled for this user"
|
||||
)
|
||||
for channel_item in item["channels"]:
|
||||
channel = channel_item["channel"]
|
||||
if channel not in notification_type.channels:
|
||||
|
|
@ -252,7 +371,18 @@ def save_channel_preferences(user, items):
|
|||
)
|
||||
NotificationChannelPreference.objects.update_or_create(
|
||||
user=user,
|
||||
type=notification_type,
|
||||
notification_type=notification_type,
|
||||
channel=channel,
|
||||
defaults={"enabled": channel_item["enabled"]},
|
||||
defaults={"is_enabled": channel_item["is_enabled"]},
|
||||
)
|
||||
|
||||
|
||||
def unread_count(user) -> int:
|
||||
if user is None or not getattr(user, "pk", None):
|
||||
return 0
|
||||
return NotificationRecipient.objects.filter(
|
||||
user=user,
|
||||
channel=DeliveryChannel.BROWSER,
|
||||
unread=True,
|
||||
notification__expires_at__gte=timezone.now(),
|
||||
).count()
|
||||
|
|
|
|||
|
|
@ -0,0 +1,48 @@
|
|||
from django.contrib.auth import get_user_model
|
||||
from django.db import transaction
|
||||
from django.dispatch import Signal
|
||||
|
||||
from notify.models import Notification, NotificationRecipient
|
||||
|
||||
__all__ = [
|
||||
"browser_notification_created",
|
||||
"schedule_browser_notification_created",
|
||||
"schedule_unread_count_changed",
|
||||
"unread_count_changed",
|
||||
]
|
||||
|
||||
unread_count_changed = Signal()
|
||||
|
||||
|
||||
def schedule_unread_count_changed(user_id: int) -> None:
|
||||
if not user_id:
|
||||
return
|
||||
|
||||
def emit():
|
||||
user = get_user_model().objects.filter(pk=user_id).first()
|
||||
if user is None:
|
||||
return
|
||||
unread_count_changed.send(sender=NotificationRecipient, user=user)
|
||||
|
||||
transaction.on_commit(emit)
|
||||
|
||||
|
||||
browser_notification_created = Signal()
|
||||
|
||||
|
||||
def schedule_browser_notification_created(user_id: int, notification_id: int) -> None:
|
||||
if not user_id or not notification_id:
|
||||
return
|
||||
|
||||
def emit():
|
||||
user = get_user_model().objects.filter(pk=user_id).first()
|
||||
notification = Notification.objects.filter(pk=notification_id).first()
|
||||
if user is None or notification is None:
|
||||
return
|
||||
browser_notification_created.send(
|
||||
sender=NotificationRecipient,
|
||||
user=user,
|
||||
notification=notification,
|
||||
)
|
||||
|
||||
transaction.on_commit(emit)
|
||||
|
|
@ -38,9 +38,9 @@ BEAT_SCHEDULE = {
|
|||
def _mark_failed(notification_recipient_id: str, error: str) -> None:
|
||||
NotificationRecipient.objects.filter(
|
||||
id=notification_recipient_id,
|
||||
delivery_status=DeliveryStatus.UNSENT,
|
||||
status=DeliveryStatus.UNSENT,
|
||||
).update(
|
||||
delivery_status=DeliveryStatus.FAILED,
|
||||
status=DeliveryStatus.FAILED,
|
||||
last_error=error[:2000],
|
||||
)
|
||||
|
||||
|
|
@ -50,18 +50,18 @@ def _deliver_notification(notification_recipient_id: str) -> None:
|
|||
with transaction.atomic():
|
||||
recipient = (
|
||||
NotificationRecipient.objects.select_for_update(of=("self",))
|
||||
.select_related("notification__type", "user")
|
||||
.select_related("notification__notification_type", "user")
|
||||
.filter(id=notification_recipient_id)
|
||||
.first()
|
||||
)
|
||||
if recipient is None or recipient.delivery_status != DeliveryStatus.UNSENT:
|
||||
if recipient is None or recipient.status != DeliveryStatus.UNSENT:
|
||||
return
|
||||
NotificationRecipient.objects.filter(pk=recipient.pk).update(
|
||||
attempts=F("attempts") + 1,
|
||||
)
|
||||
recipient.refresh_from_db(fields=["attempts"])
|
||||
try:
|
||||
provider = get_provider_or_raise(recipient.delivery_channel)
|
||||
provider = get_provider_or_raise(recipient.channel)
|
||||
provider.send(recipient)
|
||||
except Exception as exc:
|
||||
if isinstance(exc, KeyError):
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
[project]
|
||||
name = "notify"
|
||||
version = "0.1.0"
|
||||
version = "0.5.0"
|
||||
description = "Django app for user notifications"
|
||||
readme = "Readme.md"
|
||||
requires-python = ">=3.10"
|
||||
|
|
@ -16,8 +16,12 @@ dependencies = [
|
|||
"requests>=2.34.2",
|
||||
]
|
||||
|
||||
[project.optional-dependencies]
|
||||
channels = ["channels>=4.2.2,<5"]
|
||||
|
||||
[dependency-groups]
|
||||
dev = [
|
||||
"channels[daphne]>=4.2.2,<5",
|
||||
"redis>=5",
|
||||
]
|
||||
|
||||
|
|
|
|||
|
|
@ -96,7 +96,19 @@ class EmailAdminTests(TestCase):
|
|||
html = DeliveryTokenConfigForm(instance=config).as_p()
|
||||
self.assertNotIn("max-token-value", html)
|
||||
channel_values = [choice[0] for choice in DeliveryTokenConfigForm().fields["channel"].choices]
|
||||
self.assertEqual(channel_values, [DeliveryChannel.TELEGRAM, DeliveryChannel.MAX])
|
||||
self.assertEqual(channel_values, [DeliveryChannel.TELEGRAM, DeliveryChannel.MAX, DeliveryChannel.SMS])
|
||||
|
||||
def test_sms_sender_is_required(self):
|
||||
missing = DeliveryTokenConfigForm(
|
||||
data={"name": "sms", "channel": DeliveryChannel.SMS, "token": "key", "sender": ""},
|
||||
)
|
||||
self.assertFalse(missing.is_valid())
|
||||
self.assertIn("sender", missing.errors)
|
||||
|
||||
present = DeliveryTokenConfigForm(
|
||||
data={"name": "sms", "channel": DeliveryChannel.SMS, "token": "key", "sender": "MTS"},
|
||||
)
|
||||
self.assertTrue(present.is_valid(), present.errors)
|
||||
|
||||
def test_empty_token_keeps_the_stored_value_and_a_new_one_replaces_it(self):
|
||||
config = DeliveryTokenConfig.objects.create(
|
||||
|
|
@ -221,7 +233,7 @@ class NotificationAdminTests(TestCase):
|
|||
def setUp(self):
|
||||
self.admin_user = User.objects.create_superuser("admin", "admin@example.com", "pass")
|
||||
self.client.force_login(self.admin_user)
|
||||
self.note = Notification.objects.create(verb="Hello")
|
||||
self.note = Notification.objects.create(title="Hello")
|
||||
|
||||
def test_notifications_are_read_only(self):
|
||||
request = RequestFactory().get("/")
|
||||
|
|
@ -239,8 +251,8 @@ class NotificationAdminTests(TestCase):
|
|||
response = self.client.get(change)
|
||||
self.assertEqual(response.status_code, 200)
|
||||
self.assertFalse(response.context["has_change_permission"])
|
||||
self.assertEqual(self.client.post(change, {"verb": "Changed"}).status_code, 403)
|
||||
self.assertEqual(self.client.post(change, {"title": "Changed"}).status_code, 403)
|
||||
self.note.refresh_from_db()
|
||||
self.assertEqual(self.note.verb, "Hello")
|
||||
self.assertEqual(self.note.title, "Hello")
|
||||
listing = reverse("admin:notify_notification_changelist")
|
||||
self.assertEqual(self.client.get(listing).status_code, 200)
|
||||
|
|
|
|||
|
|
@ -24,11 +24,11 @@ class ApiTests(TestCase):
|
|||
self.other = User.objects.create_user("bob", "bob@example.com", "pass")
|
||||
self.client.force_login(self.user)
|
||||
|
||||
def _browser(self, user, verb, expires_at=None, **extra):
|
||||
def _browser(self, user, title, expires_at=None, **extra):
|
||||
if expires_at is not None:
|
||||
extra["expires_at"] = expires_at
|
||||
return create_notification(
|
||||
verb=verb,
|
||||
title=title,
|
||||
recipients=[{"user": user, "channels": [{"channel": DeliveryChannel.BROWSER}]}],
|
||||
**extra,
|
||||
)
|
||||
|
|
@ -43,7 +43,7 @@ class ApiTests(TestCase):
|
|||
name=code,
|
||||
group=group,
|
||||
channels=[DeliveryChannel.BROWSER, DeliveryChannel.EMAIL],
|
||||
verb=code,
|
||||
title=code,
|
||||
)
|
||||
|
||||
def test_expired_notifications_are_hidden(self):
|
||||
|
|
@ -57,7 +57,7 @@ class ApiTests(TestCase):
|
|||
|
||||
listing = self.client.get("/api/list/")
|
||||
self.assertEqual(listing.status_code, 200)
|
||||
verbs = [item["verb"] for item in listing.json()["results"]]
|
||||
verbs = [item["title"] for item in listing.json()["results"]]
|
||||
self.assertEqual(verbs, ["fresh"])
|
||||
|
||||
def test_invalid_recipient_id_is_not_found(self):
|
||||
|
|
@ -87,16 +87,18 @@ class ApiTests(TestCase):
|
|||
def test_list_returns_the_browser_inbox(self):
|
||||
kind = self._type("orders.approved")
|
||||
when = timezone.now() + timedelta(days=3)
|
||||
subject = User.objects.create_user("carol", "carol@example.com", "pass")
|
||||
notification = self._browser(
|
||||
self.user,
|
||||
"Invoice paid",
|
||||
expires_at=when,
|
||||
type=kind,
|
||||
notification_type=kind,
|
||||
url="https://example.com/orders/1?x=1",
|
||||
object_id="1",
|
||||
content_object=subject,
|
||||
description="wire",
|
||||
data={"n": 1},
|
||||
level="SUCCESS",
|
||||
show_popup=True,
|
||||
level="success",
|
||||
)
|
||||
self._browser(self.other, "foreign")
|
||||
older = notification.recipients.get()
|
||||
|
|
@ -109,26 +111,29 @@ class ApiTests(TestCase):
|
|||
body = listing.json()
|
||||
self.assertEqual(body["total"], 2)
|
||||
self.assertEqual(body["pagination"], {"page": 1, "total_pages": 1})
|
||||
self.assertEqual([item["verb"] for item in body["results"]], ["Newer", "Invoice paid"])
|
||||
self.assertEqual([item["title"] for item in body["results"]], ["Newer", "Invoice paid"])
|
||||
|
||||
item = body["results"][1]
|
||||
self.assertEqual(item["id"], older.id)
|
||||
self.assertEqual(item["type"], "orders.approved")
|
||||
self.assertEqual(item["level"], "SUCCESS")
|
||||
self.assertEqual(item["level"], "success")
|
||||
self.assertEqual(item["url"], "https://example.com/orders/1?x=1")
|
||||
self.assertEqual(item["object_id"], "1")
|
||||
self.assertEqual(item["content_type"], "auth.user")
|
||||
self.assertEqual(item["object_id"], str(subject.pk))
|
||||
self.assertEqual(item["description"], "wire")
|
||||
self.assertEqual(item["data"], {"n": 1})
|
||||
self.assertTrue(item["show_popup"])
|
||||
self.assertTrue(item["unread"])
|
||||
self.assertNotIn("delivery_channel", item)
|
||||
self.assertNotIn("delivery_target", item)
|
||||
self.assertNotIn("channel", item)
|
||||
self.assertNotIn("target", item)
|
||||
self.assertFalse(body["results"][0]["show_popup"])
|
||||
|
||||
count = self.client.get("/api/count/")
|
||||
self.assertEqual(count.json()["result"], 2)
|
||||
|
||||
def test_other_channels_and_other_users_stay_out_of_the_inbox(self):
|
||||
create_notification(
|
||||
verb="mail",
|
||||
title="mail",
|
||||
recipients=[
|
||||
{
|
||||
"user": self.user,
|
||||
|
|
@ -140,7 +145,7 @@ class ApiTests(TestCase):
|
|||
self._browser(self.user, "mine")
|
||||
|
||||
listing = self.client.get("/api/list/")
|
||||
self.assertEqual([item["verb"] for item in listing.json()["results"]], ["mine"])
|
||||
self.assertEqual([item["title"] for item in listing.json()["results"]], ["mine"])
|
||||
|
||||
foreign_id = foreign.recipients.get().id
|
||||
denied = self.client.post(f"/api/make-read/{foreign_id}/")
|
||||
|
|
@ -148,7 +153,7 @@ class ApiTests(TestCase):
|
|||
foreign.recipients.get().refresh_from_db()
|
||||
self.assertTrue(foreign.recipients.get().unread)
|
||||
|
||||
email_id = NotificationRecipient.objects.get(delivery_channel=DeliveryChannel.EMAIL).id
|
||||
email_id = NotificationRecipient.objects.get(channel=DeliveryChannel.EMAIL).id
|
||||
self.assertEqual(self.client.post(f"/api/make-read/{email_id}/").status_code, 404)
|
||||
|
||||
def test_expired_recipient_cannot_be_marked(self):
|
||||
|
|
@ -165,7 +170,7 @@ class ApiTests(TestCase):
|
|||
read = self.client.post(f"/api/make-read/{recipient.id}/")
|
||||
self.assertEqual(read.status_code, 200)
|
||||
self.assertFalse(read.json()["unread"])
|
||||
self.assertEqual(read.json()["verb"], "fresh")
|
||||
self.assertEqual(read.json()["title"], "fresh")
|
||||
self.assertEqual(self.client.get("/api/unread-count/").json()["result"], 0)
|
||||
|
||||
again = self.client.post(f"/api/make-unread/{recipient.id}/")
|
||||
|
|
@ -178,26 +183,29 @@ class ApiTests(TestCase):
|
|||
approved = self._type("orders.approved")
|
||||
rejected = self._type("orders.rejected")
|
||||
billing = self._type("billing.due")
|
||||
invoice = User.objects.create_user("invoice", "invoice@example.com", "pass")
|
||||
card = User.objects.create_user("card", "card@example.com", "pass")
|
||||
reminder = User.objects.create_user("reminder", "reminder@example.com", "pass")
|
||||
self._browser(
|
||||
self.user,
|
||||
"Invoice paid",
|
||||
type=approved,
|
||||
object_id="1",
|
||||
notification_type=approved,
|
||||
content_object=invoice,
|
||||
description="wire",
|
||||
)
|
||||
self._browser(self.user, "Nope", type=rejected, object_id="2", description="card")
|
||||
self._browser(self.user, "Nope", notification_type=rejected, content_object=card, description="card")
|
||||
self._browser(
|
||||
self.user,
|
||||
"Due",
|
||||
type=billing,
|
||||
object_id="3",
|
||||
notification_type=billing,
|
||||
content_object=reminder,
|
||||
description="Invoice reminder",
|
||||
)
|
||||
paid = NotificationRecipient.objects.get(notification__object_id="1")
|
||||
paid = NotificationRecipient.objects.get(notification__object_id=str(invoice.pk))
|
||||
paid.make_read()
|
||||
|
||||
def verbs(response):
|
||||
return [item["verb"] for item in response.json()["results"]]
|
||||
return [item["title"] for item in response.json()["results"]]
|
||||
|
||||
self.assertEqual(
|
||||
verbs(self.client.get("/api/list/", {"type": "orders.approved"})),
|
||||
|
|
@ -208,7 +216,11 @@ class ApiTests(TestCase):
|
|||
["Invoice paid", "Nope"],
|
||||
)
|
||||
self.assertEqual(
|
||||
verbs(self.client.get("/api/list/", {"object_id": "2"})),
|
||||
verbs(self.client.get("/api/list/", {"object_id": str(card.pk)})),
|
||||
["Nope"],
|
||||
)
|
||||
self.assertEqual(
|
||||
verbs(self.client.get("/api/list/", {"content_type": "auth.user", "object_id": str(card.pk)})),
|
||||
["Nope"],
|
||||
)
|
||||
self.assertCountEqual(
|
||||
|
|
@ -224,11 +236,11 @@ class ApiTests(TestCase):
|
|||
["Invoice paid"],
|
||||
)
|
||||
self.assertCountEqual(
|
||||
verbs(self.client.get("/api/list/", {"object_id__ne": ["2"]})),
|
||||
verbs(self.client.get("/api/list/", {"object_id__ne": [str(card.pk)]})),
|
||||
["Invoice paid", "Due"],
|
||||
)
|
||||
self.assertEqual(
|
||||
verbs(self.client.get("/api/list/", {"object_id__ne__in": "1,3"})),
|
||||
verbs(self.client.get("/api/list/", {"object_id__ne__in": f"{invoice.pk},{reminder.pk}"})),
|
||||
["Nope"],
|
||||
)
|
||||
self.assertEqual(
|
||||
|
|
@ -239,17 +251,17 @@ class ApiTests(TestCase):
|
|||
def test_make_all_read_respects_filters(self):
|
||||
orders = self._type("orders.approved")
|
||||
billing = self._type("billing.due")
|
||||
self._browser(self.user, "order", type=orders)
|
||||
self._browser(self.user, "bill", type=billing)
|
||||
self._browser(self.other, "foreign", type=orders)
|
||||
self._browser(self.user, "order", notification_type=orders)
|
||||
self._browser(self.user, "bill", notification_type=billing)
|
||||
self._browser(self.other, "foreign", notification_type=orders)
|
||||
self._browser(
|
||||
self.user,
|
||||
"old order",
|
||||
type=orders,
|
||||
notification_type=orders,
|
||||
expires_at=timezone.now() - timedelta(minutes=1),
|
||||
)
|
||||
mailed = create_notification(
|
||||
type=orders,
|
||||
notification_type=orders,
|
||||
recipients=[
|
||||
{
|
||||
"user": self.user,
|
||||
|
|
@ -262,8 +274,8 @@ class ApiTests(TestCase):
|
|||
self.assertEqual(response.status_code, 200)
|
||||
self.assertEqual(response.json(), {})
|
||||
|
||||
def unread(verb):
|
||||
return NotificationRecipient.objects.get(notification__verb=verb).unread
|
||||
def unread(title):
|
||||
return NotificationRecipient.objects.get(notification__title=title).unread
|
||||
|
||||
self.assertFalse(unread("order"))
|
||||
self.assertTrue(unread("bill"))
|
||||
|
|
@ -306,7 +318,7 @@ class ApiTests(TestCase):
|
|||
name="Security",
|
||||
group=group,
|
||||
channels=[DeliveryChannel.EMAIL],
|
||||
configurable=False,
|
||||
is_configurable=False,
|
||||
)
|
||||
NotificationType.objects.create(
|
||||
code="retired",
|
||||
|
|
@ -317,9 +329,9 @@ class ApiTests(TestCase):
|
|||
)
|
||||
NotificationChannelPreference.objects.create(
|
||||
user=self.user,
|
||||
type=approved,
|
||||
notification_type=approved,
|
||||
channel=DeliveryChannel.EMAIL,
|
||||
enabled=False,
|
||||
is_enabled=False,
|
||||
)
|
||||
|
||||
response = self.client.get("/api/preferences/")
|
||||
|
|
@ -332,8 +344,8 @@ class ApiTests(TestCase):
|
|||
"name": "Approved",
|
||||
"group_name": "Orders",
|
||||
"channels": [
|
||||
{"channel": DeliveryChannel.EMAIL, "enabled": False},
|
||||
{"channel": DeliveryChannel.BROWSER, "enabled": True},
|
||||
{"channel": DeliveryChannel.EMAIL, "is_enabled": False},
|
||||
{"channel": DeliveryChannel.BROWSER, "is_enabled": True},
|
||||
],
|
||||
},
|
||||
{
|
||||
|
|
@ -341,7 +353,7 @@ class ApiTests(TestCase):
|
|||
"name": "Later",
|
||||
"group_name": "Orders",
|
||||
"channels": [
|
||||
{"channel": DeliveryChannel.BROWSER, "enabled": True},
|
||||
{"channel": DeliveryChannel.BROWSER, "is_enabled": True},
|
||||
],
|
||||
},
|
||||
],
|
||||
|
|
@ -360,7 +372,7 @@ class ApiTests(TestCase):
|
|||
{
|
||||
"code": "orders.approved",
|
||||
"channels": [
|
||||
{"channel": DeliveryChannel.EMAIL, "enabled": False},
|
||||
{"channel": DeliveryChannel.EMAIL, "is_enabled": False},
|
||||
],
|
||||
}
|
||||
]
|
||||
|
|
@ -371,7 +383,7 @@ class ApiTests(TestCase):
|
|||
|
||||
listing = self.client.get("/api/preferences/")
|
||||
channels = {
|
||||
item["channel"]: item["enabled"]
|
||||
item["channel"]: item["is_enabled"]
|
||||
for item in listing.json()[0]["channels"]
|
||||
}
|
||||
self.assertEqual(
|
||||
|
|
@ -387,7 +399,7 @@ class ApiTests(TestCase):
|
|||
name="Security",
|
||||
group=group,
|
||||
channels=[DeliveryChannel.EMAIL],
|
||||
configurable=False,
|
||||
is_configurable=False,
|
||||
)
|
||||
|
||||
unknown_channel = self._post_preferences(
|
||||
|
|
@ -395,7 +407,7 @@ class ApiTests(TestCase):
|
|||
"items": [
|
||||
{
|
||||
"code": "orders.approved",
|
||||
"channels": [{"channel": DeliveryChannel.MAX, "enabled": True}],
|
||||
"channels": [{"channel": DeliveryChannel.MAX, "is_enabled": True}],
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -408,7 +420,7 @@ class ApiTests(TestCase):
|
|||
"items": [
|
||||
{
|
||||
"code": "security",
|
||||
"channels": [{"channel": DeliveryChannel.EMAIL, "enabled": False}],
|
||||
"channels": [{"channel": DeliveryChannel.EMAIL, "is_enabled": False}],
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -417,18 +429,18 @@ class ApiTests(TestCase):
|
|||
self.assertIn("detail", locked.json())
|
||||
self.assertFalse(NotificationChannelPreference.objects.exists())
|
||||
|
||||
def test_preferences_use_enabled_by_default_until_overridden(self):
|
||||
def test_preferences_use_is_enabled_by_default_until_overridden(self):
|
||||
kind = self._type("orders.digest")
|
||||
kind.enabled_by_default = False
|
||||
kind.save(update_fields=["enabled_by_default"])
|
||||
kind.is_enabled_by_default = False
|
||||
kind.save(update_fields=["is_enabled_by_default"])
|
||||
|
||||
listing = self.client.get("/api/preferences/")
|
||||
self.assertEqual(listing.status_code, 200)
|
||||
self.assertEqual(
|
||||
listing.json()[0]["channels"],
|
||||
[
|
||||
{"channel": DeliveryChannel.BROWSER, "enabled": False},
|
||||
{"channel": DeliveryChannel.EMAIL, "enabled": False},
|
||||
{"channel": DeliveryChannel.BROWSER, "is_enabled": False},
|
||||
{"channel": DeliveryChannel.EMAIL, "is_enabled": False},
|
||||
],
|
||||
)
|
||||
|
||||
|
|
@ -438,7 +450,7 @@ class ApiTests(TestCase):
|
|||
{
|
||||
"code": "orders.digest",
|
||||
"channels": [
|
||||
{"channel": DeliveryChannel.EMAIL, "enabled": True},
|
||||
{"channel": DeliveryChannel.EMAIL, "is_enabled": True},
|
||||
],
|
||||
}
|
||||
]
|
||||
|
|
@ -446,7 +458,7 @@ class ApiTests(TestCase):
|
|||
)
|
||||
self.assertEqual(saved.status_code, 200)
|
||||
channels = {
|
||||
item["channel"]: item["enabled"]
|
||||
item["channel"]: item["is_enabled"]
|
||||
for item in self.client.get("/api/preferences/").json()[0]["channels"]
|
||||
}
|
||||
self.assertEqual(
|
||||
|
|
@ -460,23 +472,23 @@ class PaginationTests(TestCase):
|
|||
self.user = User.objects.create_user("alice", "alice@example.com", "pass")
|
||||
|
||||
def test_pages_are_counted_from_the_queryset(self):
|
||||
for verb in ("a", "b", "c"):
|
||||
for title in ("a", "b", "c"):
|
||||
create_notification(
|
||||
verb=verb,
|
||||
title=title,
|
||||
recipients=[
|
||||
{"user": self.user, "channels": [{"channel": DeliveryChannel.BROWSER}]},
|
||||
],
|
||||
)
|
||||
paginator = CustomPagination(page_size=2)
|
||||
queryset = NotificationRecipient.objects.order_by("notification__verb")
|
||||
queryset = NotificationRecipient.objects.order_by("notification__title")
|
||||
|
||||
first = paginator.paginate_queryset(queryset, CustomPagination.Input(page=1))
|
||||
self.assertEqual(first["total"], 3)
|
||||
self.assertEqual(first["pagination"], {"page": 1, "total_pages": 2})
|
||||
self.assertEqual([item.notification.verb for item in first["results"]], ["a", "b"])
|
||||
self.assertEqual([item.notification.title for item in first["results"]], ["a", "b"])
|
||||
|
||||
second = paginator.paginate_queryset(queryset, CustomPagination.Input(page=2))
|
||||
self.assertEqual([item.notification.verb for item in second["results"]], ["c"])
|
||||
self.assertEqual([item.notification.title for item in second["results"]], ["c"])
|
||||
|
||||
empty = paginator.paginate_queryset(
|
||||
NotificationRecipient.objects.none(),
|
||||
|
|
|
|||
|
|
@ -39,12 +39,12 @@ class AttachmentServiceTests(TestCase):
|
|||
name="Approved",
|
||||
group=self.group,
|
||||
channels=[DeliveryChannel.BROWSER, DeliveryChannel.EMAIL],
|
||||
verb="Approved",
|
||||
title="Approved",
|
||||
)
|
||||
|
||||
def _browser(self, user, **extra):
|
||||
return create_notification(
|
||||
verb=extra.pop("verb", "Hello"),
|
||||
title=extra.pop("title", "Hello"),
|
||||
recipients=[{"user": user, "channels": [{"channel": DeliveryChannel.BROWSER}]}],
|
||||
**extra,
|
||||
)
|
||||
|
|
@ -129,7 +129,7 @@ class AttachmentServiceTests(TestCase):
|
|||
with override_settings(NOTIFY_MAX_ATTACHMENT_BYTES=1):
|
||||
second = self._browser(
|
||||
self.user,
|
||||
verb="Other",
|
||||
title="Other",
|
||||
idempotency_key="approved:9",
|
||||
attachments=[ContentFile(b"hello", name="late.txt")],
|
||||
)
|
||||
|
|
@ -138,15 +138,15 @@ class AttachmentServiceTests(TestCase):
|
|||
|
||||
def test_group_copies_files_onto_collapsed_and_new_notifications(self):
|
||||
first = create_notification(
|
||||
type=self.kind,
|
||||
object_id="post-9",
|
||||
notification_type=self.kind,
|
||||
content_object=self.user,
|
||||
group=True,
|
||||
recipients=[{"user": self.user, "channels": [{"channel": DeliveryChannel.BROWSER}]}],
|
||||
)
|
||||
second = create_notification(
|
||||
type=self.kind,
|
||||
object_id="post-9",
|
||||
verb="Ещё",
|
||||
notification_type=self.kind,
|
||||
content_object=self.user,
|
||||
title="Ещё",
|
||||
group=True,
|
||||
attachments=[ContentFile(b"note", name="note.txt")],
|
||||
recipients=[
|
||||
|
|
@ -161,8 +161,8 @@ class AttachmentServiceTests(TestCase):
|
|||
self.assertNotEqual(first.attachments.get().file.name, second.attachments.get().file.name)
|
||||
|
||||
collapsed = create_notification(
|
||||
type=self.kind,
|
||||
object_id="post-9",
|
||||
notification_type=self.kind,
|
||||
content_object=self.user,
|
||||
group=True,
|
||||
attachments=[ContentFile(b"more", name="more.txt")],
|
||||
recipients=[{"user": self.user, "channels": [{"channel": DeliveryChannel.BROWSER}]}],
|
||||
|
|
@ -191,19 +191,19 @@ class AttachmentApiTests(TestCase):
|
|||
|
||||
def test_list_and_download_are_limited_to_the_recipient(self):
|
||||
create_notification(
|
||||
verb="With file",
|
||||
title="With file",
|
||||
attachments=[ContentFile(b"hello", name="report.txt")],
|
||||
recipients=[{"user": self.user, "channels": [{"channel": DeliveryChannel.BROWSER}]}],
|
||||
)
|
||||
create_notification(
|
||||
verb="Foreign",
|
||||
title="Foreign",
|
||||
attachments=[ContentFile(b"secret", name="secret.txt")],
|
||||
recipients=[{"user": self.other, "channels": [{"channel": DeliveryChannel.BROWSER}]}],
|
||||
)
|
||||
listing = self.client.get("/api/list/")
|
||||
self.assertEqual(listing.status_code, 200)
|
||||
item = listing.json()["results"][0]
|
||||
self.assertEqual(item["verb"], "With file")
|
||||
self.assertEqual(item["title"], "With file")
|
||||
self.assertEqual(len(item["attachments"]), 1)
|
||||
attachment = item["attachments"][0]
|
||||
self.assertEqual(attachment["name"], "report.txt")
|
||||
|
|
@ -227,7 +227,7 @@ class AttachmentApiTests(TestCase):
|
|||
|
||||
def test_expired_and_invalid_ids_are_hidden(self):
|
||||
notification = create_notification(
|
||||
verb="Stale",
|
||||
title="Stale",
|
||||
expires_at=timezone.now() - timedelta(minutes=1),
|
||||
attachments=[ContentFile(b"old", name="old.txt")],
|
||||
recipients=[{"user": self.user, "channels": [{"channel": DeliveryChannel.BROWSER}]}],
|
||||
|
|
@ -240,7 +240,7 @@ class AttachmentApiTests(TestCase):
|
|||
|
||||
def test_email_recipient_can_download(self):
|
||||
notification = create_notification(
|
||||
verb="Mail",
|
||||
title="Mail",
|
||||
attachments=[ContentFile(b"body", name="body.txt")],
|
||||
recipients=[
|
||||
{
|
||||
|
|
@ -272,7 +272,7 @@ class AttachmentEmailTests(TestCase):
|
|||
|
||||
def test_email_includes_the_file(self):
|
||||
notification = create_notification(
|
||||
verb="Hello",
|
||||
title="Hello",
|
||||
description="Body",
|
||||
attachments=[ContentFile(b"pdf-bytes", name="report.pdf")],
|
||||
recipients=[
|
||||
|
|
|
|||
|
|
@ -53,6 +53,13 @@ class CodeTests(TestCase):
|
|||
DeliveryTokenConfig.objects.create(
|
||||
name="max", channel=DeliveryChannel.MAX, is_default=True, token="max-token"
|
||||
)
|
||||
DeliveryTokenConfig.objects.create(
|
||||
name="sms",
|
||||
channel=DeliveryChannel.SMS,
|
||||
is_default=True,
|
||||
token="sms-token",
|
||||
sender="MTS",
|
||||
)
|
||||
|
||||
def _send_email(self, **kwargs):
|
||||
kwargs.setdefault("purpose", "login")
|
||||
|
|
@ -83,13 +90,26 @@ class CodeTests(TestCase):
|
|||
self.assertEqual(post.call_args.kwargs["json"]["chat_id"], 42)
|
||||
self.assertTrue(verify_code(purpose="login", channel="telegram", target={"chat_id": 42}, code=code))
|
||||
|
||||
def test_sms_send_and_verify(self):
|
||||
post, code = self._send_messenger(DeliveryChannel.SMS, {"phone": "8 (999) 123-45-67"})
|
||||
self.assertEqual(post.call_args.args[0], "https://api.exolve.ru/messaging/v1/SendSMS")
|
||||
self.assertEqual(post.call_args.kwargs["headers"]["Authorization"], "Bearer sms-token")
|
||||
self.assertEqual(post.call_args.kwargs["json"]["number"], "MTS")
|
||||
self.assertEqual(post.call_args.kwargs["json"]["destination"], "79991234567")
|
||||
self.assertIn(code, post.call_args.kwargs["json"]["text"])
|
||||
verification = VerificationCode.objects.get()
|
||||
self.assertEqual(verification.target_key, "79991234567")
|
||||
self.assertTrue(
|
||||
verify_code(purpose="login", channel="sms", target={"phone": "+7 999 123-45-67"}, code=code)
|
||||
)
|
||||
|
||||
def test_max_send_and_verify(self):
|
||||
target = {"chat_id": 5, "user_id": 7}
|
||||
post, code = self._send_messenger(DeliveryChannel.MAX, target)
|
||||
self.assertEqual(post.call_args.kwargs["params"], {"user_id": 7})
|
||||
verification = VerificationCode.objects.get()
|
||||
self.assertEqual(verification.target_key, "user:7")
|
||||
self.assertEqual(verification.delivery_target, target)
|
||||
self.assertEqual(verification.target, target)
|
||||
self.assertTrue(verify_code(purpose="login", channel="max", target=target, code=code))
|
||||
|
||||
def test_wrong_code_counts_attempt(self):
|
||||
|
|
@ -173,16 +193,16 @@ class CodeTests(TestCase):
|
|||
def test_custom_template_by_type(self):
|
||||
group = NotificationGroup.objects.create(code="auth", name="Auth")
|
||||
notification_type = NotificationType.objects.create(
|
||||
code="otp", name="OTP", verb="OTP", channels=["email"], group=group
|
||||
code="otp", name="OTP", title="OTP", channels=["email"], group=group
|
||||
)
|
||||
NotificationTemplate.objects.create(
|
||||
name="otp-email",
|
||||
channel="email",
|
||||
type=notification_type,
|
||||
subject_template="Вход для {{ user.username }}",
|
||||
body_template="<b>{{ code }}</b> на {{ ttl_minutes }} мин ({{ purpose }})",
|
||||
notification_type=notification_type,
|
||||
subject="Вход для {{ user.username }}",
|
||||
body="<b>{{ code }}</b> на {{ ttl_minutes }} мин ({{ purpose }})",
|
||||
)
|
||||
code = self._send_email(user=self.user, type="otp")
|
||||
code = self._send_email(user=self.user, notification_type="otp")
|
||||
message = mail.outbox[-1]
|
||||
self.assertEqual(message.subject, "Вход для alice")
|
||||
self.assertEqual(message.body, f"<b>{code}</b> на 5 мин (login)")
|
||||
|
|
@ -192,8 +212,8 @@ class CodeTests(TestCase):
|
|||
name="default-email",
|
||||
channel="email",
|
||||
is_default=True,
|
||||
subject_template="{{ notification.verb }}",
|
||||
body_template="{{ notification.description }}",
|
||||
subject="{{ notification.title }}",
|
||||
body="{{ notification.description }}",
|
||||
)
|
||||
code = self._send_email()
|
||||
self.assertIn(code, mail.outbox[-1].body)
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ from django.test import TestCase
|
|||
from django.utils import timezone
|
||||
|
||||
from notify.delivery import get_provider, get_provider_or_raise, registered_channels
|
||||
from notify.delivery.providers.exolve import EXOLVE_API_TIMEOUT, EXOLVE_SMS_URL
|
||||
from notify.delivery.providers.max import MAX_API_TIMEOUT
|
||||
from notify.delivery.providers.telegram import TELEGRAM_API_TIMEOUT
|
||||
from notify.models import (
|
||||
|
|
@ -56,7 +57,7 @@ class DeliveryTests(TestCase):
|
|||
|
||||
def _email_recipient(self, **notification_kwargs):
|
||||
notification = create_notification(
|
||||
verb=notification_kwargs.pop("verb", "Hello"),
|
||||
title=notification_kwargs.pop("title", "Hello"),
|
||||
description=notification_kwargs.pop("description", "Body"),
|
||||
recipients=[
|
||||
{
|
||||
|
|
@ -68,19 +69,19 @@ class DeliveryTests(TestCase):
|
|||
)
|
||||
return notification.recipients.get()
|
||||
|
||||
def _max_recipient(self, delivery_target=None):
|
||||
def _max_recipient(self, target=None):
|
||||
DeliveryTokenConfig.objects.create(
|
||||
name="max",
|
||||
channel=DeliveryChannel.MAX,
|
||||
is_default=True,
|
||||
token="token",
|
||||
)
|
||||
notification = Notification.objects.create(verb="Hello", description="Body")
|
||||
notification = Notification.objects.create(title="Hello", description="Body")
|
||||
return NotificationRecipient.objects.create(
|
||||
notification=notification,
|
||||
user=self.user,
|
||||
delivery_channel=DeliveryChannel.MAX,
|
||||
delivery_target={"chat_id": -10} if delivery_target is None else delivery_target,
|
||||
channel=DeliveryChannel.MAX,
|
||||
target={"chat_id": -10} if target is None else target,
|
||||
)
|
||||
|
||||
def test_email_failure_is_not_marked_sent(self):
|
||||
|
|
@ -92,7 +93,7 @@ class DeliveryTests(TestCase):
|
|||
result = deliver_notification.apply(args=[str(recipient.id)], throw=False)
|
||||
self.assertEqual(result.state, "FAILURE")
|
||||
recipient.refresh_from_db()
|
||||
self.assertEqual(recipient.delivery_status, DeliveryStatus.FAILED)
|
||||
self.assertEqual(recipient.status, DeliveryStatus.FAILED)
|
||||
self.assertEqual(recipient.attempts, 6)
|
||||
self.assertIn("Email delivery failed", recipient.last_error)
|
||||
self.assertIsNone(recipient.sent_at)
|
||||
|
|
@ -104,29 +105,29 @@ class DeliveryTests(TestCase):
|
|||
result = deliver_notification.apply(args=[str(recipient.id)], throw=False)
|
||||
self.assertEqual(result.state, "FAILURE")
|
||||
recipient.refresh_from_db()
|
||||
self.assertEqual(recipient.delivery_status, DeliveryStatus.FAILED)
|
||||
self.assertEqual(recipient.status, DeliveryStatus.FAILED)
|
||||
|
||||
def test_missing_address_is_permanent_failure(self):
|
||||
notification = Notification.objects.create(verb="Hello", description="Body")
|
||||
notification = Notification.objects.create(title="Hello", description="Body")
|
||||
recipient = NotificationRecipient.objects.create(
|
||||
notification=notification,
|
||||
user=self.user,
|
||||
delivery_channel=DeliveryChannel.EMAIL,
|
||||
delivery_target=None,
|
||||
channel=DeliveryChannel.EMAIL,
|
||||
target=None,
|
||||
)
|
||||
deliver_notification.apply(args=[str(recipient.id)], throw=True)
|
||||
recipient.refresh_from_db()
|
||||
self.assertEqual(recipient.delivery_status, DeliveryStatus.FAILED)
|
||||
self.assertEqual(recipient.status, DeliveryStatus.FAILED)
|
||||
|
||||
def test_successful_email_is_sent_once_and_escapes_html(self):
|
||||
recipient = self._email_recipient(
|
||||
verb="Hello\r\nBcc: leak",
|
||||
title="Hello\r\nBcc: leak",
|
||||
description="<script>alert(1)</script>",
|
||||
)
|
||||
deliver_notification.apply(args=[str(recipient.id)], throw=True)
|
||||
deliver_notification.apply(args=[str(recipient.id)], throw=True)
|
||||
recipient.refresh_from_db()
|
||||
self.assertEqual(recipient.delivery_status, DeliveryStatus.SENT)
|
||||
self.assertEqual(recipient.status, DeliveryStatus.SENT)
|
||||
self.assertEqual(recipient.attempts, 1)
|
||||
self.assertEqual(recipient.last_error, "")
|
||||
self.assertIsNotNone(recipient.sent_at)
|
||||
|
|
@ -142,13 +143,13 @@ class DeliveryTests(TestCase):
|
|||
channel=DeliveryChannel.EMAIL,
|
||||
name="email-default",
|
||||
is_default=True,
|
||||
subject_template="{{ notification.verb }}",
|
||||
body_template="hash={{ user.password }} verb={{ notification.verb }}",
|
||||
subject="{{ notification.title }}",
|
||||
body="hash={{ user.password }} title={{ notification.title }}",
|
||||
)
|
||||
recipient = self._email_recipient(verb="Approved", description="<b>x</b>")
|
||||
recipient = self._email_recipient(title="Approved", description="<b>x</b>")
|
||||
deliver_notification.apply(args=[str(recipient.id)], throw=True)
|
||||
body = mail.outbox[0].body
|
||||
self.assertIn("verb=Approved", body)
|
||||
self.assertIn("title=Approved", body)
|
||||
self.assertNotIn(self.user.password, body)
|
||||
self.assertNotIn("<b>", body)
|
||||
|
||||
|
|
@ -159,11 +160,11 @@ class DeliveryTests(TestCase):
|
|||
name="Approved",
|
||||
group=group,
|
||||
channels=[DeliveryChannel.EMAIL],
|
||||
verb="Approved",
|
||||
title="Approved",
|
||||
)
|
||||
with self.assertRaisesMessage(ValueError, "not allowed"):
|
||||
create_notification(
|
||||
type="approved",
|
||||
notification_type="approved",
|
||||
recipients=[
|
||||
{"user": self.user, "channels": [{"channel": DeliveryChannel.BROWSER}]},
|
||||
],
|
||||
|
|
@ -173,9 +174,9 @@ class DeliveryTests(TestCase):
|
|||
def test_unknown_channel_does_not_create_recipient(self):
|
||||
with self.assertRaisesMessage(ValueError, "No delivery provider"):
|
||||
create_notification(
|
||||
verb="Ping",
|
||||
title="Ping",
|
||||
recipients=[
|
||||
{"user": self.user, "channels": [{"channel": "sms"}]},
|
||||
{"user": self.user, "channels": [{"channel": "push"}]},
|
||||
],
|
||||
)
|
||||
self.assertEqual(Notification.objects.count(), 0)
|
||||
|
|
@ -188,12 +189,12 @@ class DeliveryTests(TestCase):
|
|||
name="Approved",
|
||||
group=group,
|
||||
channels=[DeliveryChannel.BROWSER],
|
||||
verb="Approved",
|
||||
title="Approved",
|
||||
is_active=False,
|
||||
)
|
||||
with self.assertRaisesMessage(ValueError, "inactive"):
|
||||
create_notification(
|
||||
type="approved",
|
||||
notification_type="approved",
|
||||
recipients=[
|
||||
{"user": self.user, "channels": [{"channel": DeliveryChannel.BROWSER}]},
|
||||
],
|
||||
|
|
@ -203,7 +204,7 @@ class DeliveryTests(TestCase):
|
|||
def test_duplicate_channel_rolls_back(self):
|
||||
with self.assertRaisesMessage(ValueError, "Duplicate"):
|
||||
create_notification(
|
||||
verb="Ping",
|
||||
title="Ping",
|
||||
recipients=[
|
||||
{
|
||||
"user": self.user,
|
||||
|
|
@ -217,20 +218,20 @@ class DeliveryTests(TestCase):
|
|||
self.assertEqual(Notification.objects.count(), 0)
|
||||
|
||||
def test_recipient_channel_is_unique(self):
|
||||
notification = Notification.objects.create(verb="Hello")
|
||||
notification = Notification.objects.create(title="Hello")
|
||||
NotificationRecipient.objects.create(
|
||||
notification=notification,
|
||||
user=self.user,
|
||||
delivery_channel=DeliveryChannel.EMAIL,
|
||||
delivery_target={"email": "alice@example.com"},
|
||||
channel=DeliveryChannel.EMAIL,
|
||||
target={"email": "alice@example.com"},
|
||||
)
|
||||
with self.assertRaises(IntegrityError):
|
||||
with transaction.atomic():
|
||||
NotificationRecipient.objects.create(
|
||||
notification=notification,
|
||||
user=self.user,
|
||||
delivery_channel=DeliveryChannel.EMAIL,
|
||||
delivery_target={"email": "other@example.com"},
|
||||
channel=DeliveryChannel.EMAIL,
|
||||
target={"email": "other@example.com"},
|
||||
)
|
||||
|
||||
def test_max_request_has_timeout_and_retries_server_errors(self):
|
||||
|
|
@ -240,12 +241,12 @@ class DeliveryTests(TestCase):
|
|||
is_default=True,
|
||||
token="token",
|
||||
)
|
||||
notification = Notification.objects.create(verb="Hello", description="Body")
|
||||
notification = Notification.objects.create(title="Hello", description="Body")
|
||||
recipient = NotificationRecipient.objects.create(
|
||||
notification=notification,
|
||||
user=self.user,
|
||||
delivery_channel=DeliveryChannel.MAX,
|
||||
delivery_target={"chat_id": -10},
|
||||
channel=DeliveryChannel.MAX,
|
||||
target={"chat_id": -10},
|
||||
)
|
||||
response = requests.Response()
|
||||
response.status_code = 503
|
||||
|
|
@ -258,7 +259,7 @@ class DeliveryTests(TestCase):
|
|||
self.assertGreater(post.call_count, 1)
|
||||
self.assertEqual(post.call_args.kwargs["timeout"], MAX_API_TIMEOUT)
|
||||
recipient.refresh_from_db()
|
||||
self.assertEqual(recipient.delivery_status, DeliveryStatus.FAILED)
|
||||
self.assertEqual(recipient.status, DeliveryStatus.FAILED)
|
||||
|
||||
def test_max_client_error_is_not_retried(self):
|
||||
DeliveryTokenConfig.objects.create(
|
||||
|
|
@ -267,12 +268,12 @@ class DeliveryTests(TestCase):
|
|||
is_default=True,
|
||||
token="token",
|
||||
)
|
||||
notification = Notification.objects.create(verb="Hello", description="Body")
|
||||
notification = Notification.objects.create(title="Hello", description="Body")
|
||||
recipient = NotificationRecipient.objects.create(
|
||||
notification=notification,
|
||||
user=self.user,
|
||||
delivery_channel=DeliveryChannel.MAX,
|
||||
delivery_target={"chat_id": -10},
|
||||
channel=DeliveryChannel.MAX,
|
||||
target={"chat_id": -10},
|
||||
)
|
||||
response = requests.Response()
|
||||
response.status_code = 400
|
||||
|
|
@ -283,7 +284,7 @@ class DeliveryTests(TestCase):
|
|||
deliver_notification.apply(args=[str(recipient.id)], throw=True)
|
||||
self.assertEqual(post.call_count, 1)
|
||||
recipient.refresh_from_db()
|
||||
self.assertEqual(recipient.delivery_status, DeliveryStatus.FAILED)
|
||||
self.assertEqual(recipient.status, DeliveryStatus.FAILED)
|
||||
|
||||
def test_second_default_config_replaces_the_first(self):
|
||||
second = DeliveryEmailConfig.objects.create(
|
||||
|
|
@ -323,7 +324,7 @@ class DeliveryTests(TestCase):
|
|||
|
||||
def test_expired_notifications_stay_until_the_cleanup_task(self):
|
||||
old = Notification.objects.create(
|
||||
verb="old",
|
||||
title="old",
|
||||
expires_at=timezone.now() - timedelta(minutes=1),
|
||||
)
|
||||
from notify.tasks import delete_expired_notifications
|
||||
|
|
@ -333,7 +334,7 @@ class DeliveryTests(TestCase):
|
|||
self.assertFalse(Notification.objects.filter(pk=old.pk).exists())
|
||||
|
||||
def test_cleanup_keeps_notifications_that_have_not_expired(self):
|
||||
fresh = Notification.objects.create(verb="fresh")
|
||||
fresh = Notification.objects.create(title="fresh")
|
||||
from notify.tasks import delete_expired_notifications
|
||||
|
||||
self.assertEqual(delete_expired_notifications(), 0)
|
||||
|
|
@ -351,9 +352,10 @@ class DeliveryTests(TestCase):
|
|||
self.assertIsNotNone(get_provider(DeliveryChannel.BROWSER))
|
||||
self.assertIsNotNone(get_provider(DeliveryChannel.MAX))
|
||||
self.assertIsNotNone(get_provider(DeliveryChannel.TELEGRAM))
|
||||
self.assertIsNone(get_provider("sms"))
|
||||
with self.assertRaisesMessage(KeyError, "sms"):
|
||||
get_provider_or_raise("sms")
|
||||
self.assertIsNotNone(get_provider(DeliveryChannel.SMS))
|
||||
self.assertIsNone(get_provider("push"))
|
||||
with self.assertRaisesMessage(KeyError, "push"):
|
||||
get_provider_or_raise("push")
|
||||
self.assertCountEqual(
|
||||
list(registered_channels()),
|
||||
[
|
||||
|
|
@ -361,6 +363,7 @@ class DeliveryTests(TestCase):
|
|||
DeliveryChannel.BROWSER,
|
||||
DeliveryChannel.MAX,
|
||||
DeliveryChannel.TELEGRAM,
|
||||
DeliveryChannel.SMS,
|
||||
],
|
||||
)
|
||||
|
||||
|
|
@ -370,23 +373,23 @@ class DeliveryTests(TestCase):
|
|||
|
||||
def test_failed_recipient_is_not_sent_again(self):
|
||||
recipient = self._email_recipient()
|
||||
recipient.delivery_status = DeliveryStatus.FAILED
|
||||
recipient.save(update_fields=["delivery_status"])
|
||||
recipient.status = DeliveryStatus.FAILED
|
||||
recipient.save(update_fields=["status"])
|
||||
with patch("notify.delivery.providers.email.EmailMessage.send") as send:
|
||||
deliver_notification.apply(args=[str(recipient.id)], throw=True)
|
||||
send.assert_not_called()
|
||||
self.assertEqual(len(mail.outbox), 0)
|
||||
|
||||
def test_unknown_channel_fails_without_retry(self):
|
||||
notification = Notification.objects.create(verb="Hello", description="Body")
|
||||
notification = Notification.objects.create(title="Hello", description="Body")
|
||||
recipient = NotificationRecipient.objects.create(
|
||||
notification=notification,
|
||||
user=self.user,
|
||||
delivery_channel="sms",
|
||||
channel="push",
|
||||
)
|
||||
deliver_notification.apply(args=[str(recipient.id)], throw=True)
|
||||
recipient.refresh_from_db()
|
||||
self.assertEqual(recipient.delivery_status, DeliveryStatus.FAILED)
|
||||
self.assertEqual(recipient.status, DeliveryStatus.FAILED)
|
||||
|
||||
def test_invalid_email_message_is_not_retried(self):
|
||||
recipient = self._email_recipient()
|
||||
|
|
@ -397,7 +400,7 @@ class DeliveryTests(TestCase):
|
|||
deliver_notification.apply(args=[str(recipient.id)], throw=True)
|
||||
self.assertEqual(send.call_count, 1)
|
||||
recipient.refresh_from_db()
|
||||
self.assertEqual(recipient.delivery_status, DeliveryStatus.FAILED)
|
||||
self.assertEqual(recipient.status, DeliveryStatus.FAILED)
|
||||
|
||||
def test_unaccepted_email_is_retried(self):
|
||||
recipient = self._email_recipient()
|
||||
|
|
@ -406,7 +409,7 @@ class DeliveryTests(TestCase):
|
|||
self.assertEqual(result.state, "FAILURE")
|
||||
self.assertEqual(send.call_count, 6)
|
||||
recipient.refresh_from_db()
|
||||
self.assertEqual(recipient.delivery_status, DeliveryStatus.FAILED)
|
||||
self.assertEqual(recipient.status, DeliveryStatus.FAILED)
|
||||
|
||||
def test_typed_template_wins_over_the_channel_default(self):
|
||||
group = NotificationGroup.objects.create(code="orders", name="Orders")
|
||||
|
|
@ -415,25 +418,25 @@ class DeliveryTests(TestCase):
|
|||
name="Approved",
|
||||
group=group,
|
||||
channels=[DeliveryChannel.EMAIL],
|
||||
verb="Approved",
|
||||
title="Approved",
|
||||
)
|
||||
NotificationTemplate.objects.create(
|
||||
channel=DeliveryChannel.EMAIL,
|
||||
name="email-default",
|
||||
is_default=True,
|
||||
subject_template="default {{ notification.verb }}",
|
||||
body_template="DEFAULT {{ notification.url }}",
|
||||
subject="default {{ notification.title }}",
|
||||
body="DEFAULT {{ notification.url }}",
|
||||
)
|
||||
NotificationTemplate.objects.create(
|
||||
channel=DeliveryChannel.EMAIL,
|
||||
type=kind,
|
||||
notification_type=kind,
|
||||
name="approved-email",
|
||||
subject_template="typed {{ notification.verb }}",
|
||||
body_template="TYPED {{ notification.url }}",
|
||||
subject="typed {{ notification.title }}",
|
||||
body="TYPED {{ notification.url }}",
|
||||
)
|
||||
recipient = self._email_recipient(
|
||||
type=kind,
|
||||
verb="Approved",
|
||||
notification_type=kind,
|
||||
title="Approved",
|
||||
url="https://example.com/orders/9",
|
||||
description="plain",
|
||||
)
|
||||
|
|
@ -447,9 +450,9 @@ class DeliveryTests(TestCase):
|
|||
channel=DeliveryChannel.MAX,
|
||||
name="max-only",
|
||||
is_default=True,
|
||||
body_template="MAX-ONLY {{ notification.verb }}",
|
||||
body="MAX-ONLY {{ notification.title }}",
|
||||
)
|
||||
recipient = self._email_recipient(verb="Approved", description="plain")
|
||||
recipient = self._email_recipient(title="Approved", description="plain")
|
||||
deliver_notification.apply(args=[str(recipient.id)], throw=True)
|
||||
self.assertNotIn("MAX-ONLY", mail.outbox[0].body)
|
||||
self.assertIn("plain", mail.outbox[0].body)
|
||||
|
|
@ -467,7 +470,7 @@ class DeliveryTests(TestCase):
|
|||
self.assertEqual(post.call_args.kwargs["timeout"], MAX_API_TIMEOUT)
|
||||
self.assertIn("Body", post.call_args.kwargs["json"]["text"])
|
||||
recipient.refresh_from_db()
|
||||
self.assertEqual(recipient.delivery_status, DeliveryStatus.SENT)
|
||||
self.assertEqual(recipient.status, DeliveryStatus.SENT)
|
||||
|
||||
def test_max_without_user_id_uses_chat_id(self):
|
||||
recipient = self._max_recipient()
|
||||
|
|
@ -477,7 +480,7 @@ class DeliveryTests(TestCase):
|
|||
deliver_notification.apply(args=[str(recipient.id)], throw=True)
|
||||
self.assertEqual(post.call_args.kwargs["params"], {"chat_id": -10})
|
||||
recipient.refresh_from_db()
|
||||
self.assertEqual(recipient.delivery_status, DeliveryStatus.SENT)
|
||||
self.assertEqual(recipient.status, DeliveryStatus.SENT)
|
||||
|
||||
def test_max_without_chat_id_is_permanent(self):
|
||||
recipient = self._max_recipient({})
|
||||
|
|
@ -485,20 +488,20 @@ class DeliveryTests(TestCase):
|
|||
deliver_notification.apply(args=[str(recipient.id)], throw=True)
|
||||
post.assert_not_called()
|
||||
recipient.refresh_from_db()
|
||||
self.assertEqual(recipient.delivery_status, DeliveryStatus.FAILED)
|
||||
self.assertEqual(recipient.status, DeliveryStatus.FAILED)
|
||||
|
||||
def test_missing_max_config_is_retried(self):
|
||||
notification = Notification.objects.create(verb="Hello", description="Body")
|
||||
notification = Notification.objects.create(title="Hello", description="Body")
|
||||
recipient = NotificationRecipient.objects.create(
|
||||
notification=notification,
|
||||
user=self.user,
|
||||
delivery_channel=DeliveryChannel.MAX,
|
||||
delivery_target={"chat_id": -10},
|
||||
channel=DeliveryChannel.MAX,
|
||||
target={"chat_id": -10},
|
||||
)
|
||||
result = deliver_notification.apply(args=[str(recipient.id)], throw=False)
|
||||
self.assertEqual(result.state, "FAILURE")
|
||||
recipient.refresh_from_db()
|
||||
self.assertEqual(recipient.delivery_status, DeliveryStatus.FAILED)
|
||||
self.assertEqual(recipient.status, DeliveryStatus.FAILED)
|
||||
|
||||
def test_max_timeout_is_retried(self):
|
||||
recipient = self._max_recipient()
|
||||
|
|
@ -510,7 +513,7 @@ class DeliveryTests(TestCase):
|
|||
self.assertEqual(result.state, "FAILURE")
|
||||
self.assertEqual(post.call_count, 6)
|
||||
recipient.refresh_from_db()
|
||||
self.assertEqual(recipient.delivery_status, DeliveryStatus.FAILED)
|
||||
self.assertEqual(recipient.status, DeliveryStatus.FAILED)
|
||||
|
||||
def test_max_network_error_is_retried(self):
|
||||
recipient = self._max_recipient()
|
||||
|
|
@ -522,7 +525,7 @@ class DeliveryTests(TestCase):
|
|||
self.assertEqual(result.state, "FAILURE")
|
||||
self.assertEqual(post.call_count, 6)
|
||||
recipient.refresh_from_db()
|
||||
self.assertEqual(recipient.delivery_status, DeliveryStatus.FAILED)
|
||||
self.assertEqual(recipient.status, DeliveryStatus.FAILED)
|
||||
|
||||
def test_telegram_message_is_sent_and_marked(self):
|
||||
DeliveryTokenConfig.objects.create(
|
||||
|
|
@ -532,7 +535,7 @@ class DeliveryTests(TestCase):
|
|||
token="bot-token",
|
||||
)
|
||||
notification = create_notification(
|
||||
verb="Hello",
|
||||
title="Hello",
|
||||
description="Body",
|
||||
recipients=[
|
||||
{
|
||||
|
|
@ -555,13 +558,13 @@ class DeliveryTests(TestCase):
|
|||
self.assertIn("Body", post.call_args.kwargs["json"]["text"])
|
||||
self.assertEqual(post.call_args.kwargs["timeout"], TELEGRAM_API_TIMEOUT)
|
||||
recipient.refresh_from_db()
|
||||
self.assertEqual(recipient.delivery_status, DeliveryStatus.SENT)
|
||||
self.assertEqual(recipient.status, DeliveryStatus.SENT)
|
||||
self.assertEqual(recipient.attempts, 1)
|
||||
|
||||
def test_telegram_requires_target(self):
|
||||
with self.assertRaisesMessage(ValueError, "target is required"):
|
||||
create_notification(
|
||||
verb="Hi",
|
||||
title="Hi",
|
||||
recipients=[
|
||||
{"user": self.user, "channels": [{"channel": DeliveryChannel.TELEGRAM}]},
|
||||
],
|
||||
|
|
@ -575,12 +578,12 @@ class DeliveryTests(TestCase):
|
|||
is_default=True,
|
||||
token="bot-token",
|
||||
)
|
||||
notification = Notification.objects.create(verb="Hello", description="Body")
|
||||
notification = Notification.objects.create(title="Hello", description="Body")
|
||||
recipient = NotificationRecipient.objects.create(
|
||||
notification=notification,
|
||||
user=self.user,
|
||||
delivery_channel=DeliveryChannel.TELEGRAM,
|
||||
delivery_target={"chat_id": 42},
|
||||
channel=DeliveryChannel.TELEGRAM,
|
||||
target={"chat_id": 42},
|
||||
)
|
||||
response = requests.Response()
|
||||
response.status_code = 400
|
||||
|
|
@ -591,7 +594,7 @@ class DeliveryTests(TestCase):
|
|||
deliver_notification.apply(args=[str(recipient.id)], throw=True)
|
||||
self.assertEqual(post.call_count, 1)
|
||||
recipient.refresh_from_db()
|
||||
self.assertEqual(recipient.delivery_status, DeliveryStatus.FAILED)
|
||||
self.assertEqual(recipient.status, DeliveryStatus.FAILED)
|
||||
self.assertEqual(recipient.attempts, 1)
|
||||
self.assertIn("400", recipient.last_error)
|
||||
|
||||
|
|
@ -602,12 +605,12 @@ class DeliveryTests(TestCase):
|
|||
is_default=True,
|
||||
token="bot-token",
|
||||
)
|
||||
notification = Notification.objects.create(verb="Hello", description="Body")
|
||||
notification = Notification.objects.create(title="Hello", description="Body")
|
||||
recipient = NotificationRecipient.objects.create(
|
||||
notification=notification,
|
||||
user=self.user,
|
||||
delivery_channel=DeliveryChannel.TELEGRAM,
|
||||
delivery_target={"chat_id": 42},
|
||||
channel=DeliveryChannel.TELEGRAM,
|
||||
target={"chat_id": 42},
|
||||
)
|
||||
with patch(
|
||||
"notify.delivery.providers.telegram.requests.post",
|
||||
|
|
@ -617,9 +620,219 @@ class DeliveryTests(TestCase):
|
|||
self.assertEqual(result.state, "FAILURE")
|
||||
self.assertEqual(post.call_count, 6)
|
||||
recipient.refresh_from_db()
|
||||
self.assertEqual(recipient.delivery_status, DeliveryStatus.FAILED)
|
||||
self.assertEqual(recipient.status, DeliveryStatus.FAILED)
|
||||
self.assertEqual(recipient.attempts, 6)
|
||||
|
||||
def test_email_without_user_is_sent(self):
|
||||
patient = NotificationGroup.objects.create(code="patient", name="Patient")
|
||||
NotificationTemplate.objects.create(
|
||||
channel=DeliveryChannel.EMAIL,
|
||||
name="external",
|
||||
is_default=True,
|
||||
subject="{{ recipient.content_type }}",
|
||||
body="{% if user %}user{% else %}guest{% endif %} {{ recipient.object_id }}",
|
||||
)
|
||||
notification = create_notification(
|
||||
title="Hello",
|
||||
description="Body",
|
||||
recipients=[
|
||||
{
|
||||
"content_object": patient,
|
||||
"channels": [{"channel": DeliveryChannel.EMAIL, "target": {"email": "guest@example.com"}}],
|
||||
}
|
||||
],
|
||||
)
|
||||
recipient = notification.recipients.get()
|
||||
self.assertIsNone(recipient.user_id)
|
||||
deliver_notification.apply(args=[str(recipient.id)], throw=True)
|
||||
self.assertEqual(mail.outbox[0].to, ["guest@example.com"])
|
||||
self.assertEqual(mail.outbox[0].subject, "notify.notificationgroup")
|
||||
self.assertIn("guest", mail.outbox[0].body)
|
||||
self.assertIn(str(patient.pk), mail.outbox[0].body)
|
||||
recipient.refresh_from_db()
|
||||
self.assertEqual(recipient.status, DeliveryStatus.SENT)
|
||||
|
||||
def test_sms_without_user_is_sent(self):
|
||||
DeliveryTokenConfig.objects.create(
|
||||
name="sms",
|
||||
channel=DeliveryChannel.SMS,
|
||||
is_default=True,
|
||||
token="sms-token",
|
||||
sender="MTS",
|
||||
)
|
||||
notification = create_notification(
|
||||
title="Hello",
|
||||
description="Body",
|
||||
recipients=[
|
||||
{"channels": [{"channel": DeliveryChannel.SMS, "target": {"phone": "79991234567"}}]},
|
||||
],
|
||||
)
|
||||
recipient = notification.recipients.get()
|
||||
response = requests.Response()
|
||||
response.status_code = 200
|
||||
with patch("notify.delivery.providers.exolve.requests.post", return_value=response) as post:
|
||||
deliver_notification.apply(args=[str(recipient.id)], throw=True)
|
||||
self.assertEqual(post.call_args.kwargs["json"]["destination"], "79991234567")
|
||||
self.assertEqual(post.call_args.kwargs["json"]["number"], "MTS")
|
||||
recipient.refresh_from_db()
|
||||
self.assertEqual(recipient.status, DeliveryStatus.SENT)
|
||||
|
||||
def test_max_without_user_is_sent(self):
|
||||
DeliveryTokenConfig.objects.create(
|
||||
name="max",
|
||||
channel=DeliveryChannel.MAX,
|
||||
is_default=True,
|
||||
token="token",
|
||||
)
|
||||
notification = create_notification(
|
||||
title="Hello",
|
||||
description="Body",
|
||||
recipients=[
|
||||
{"channels": [{"channel": DeliveryChannel.MAX, "target": {"chat_id": -5}}]},
|
||||
],
|
||||
)
|
||||
recipient = notification.recipients.get()
|
||||
response = requests.Response()
|
||||
response.status_code = 200
|
||||
with patch("notify.delivery.providers.max.requests.post", return_value=response) as post:
|
||||
deliver_notification.apply(args=[str(recipient.id)], throw=True)
|
||||
self.assertEqual(post.call_args.kwargs["params"], {"chat_id": -5})
|
||||
recipient.refresh_from_db()
|
||||
self.assertEqual(recipient.status, DeliveryStatus.SENT)
|
||||
|
||||
def test_sms_message_is_sent_and_marked(self):
|
||||
DeliveryTokenConfig.objects.create(
|
||||
name="sms",
|
||||
channel=DeliveryChannel.SMS,
|
||||
is_default=True,
|
||||
token="sms-token",
|
||||
sender="MTS",
|
||||
)
|
||||
notification = create_notification(
|
||||
title="Hello",
|
||||
description="Body",
|
||||
recipients=[
|
||||
{
|
||||
"user": self.user,
|
||||
"channels": [{"channel": DeliveryChannel.SMS, "target": {"phone": "+7 (999) 123-45-67"}}],
|
||||
}
|
||||
],
|
||||
)
|
||||
recipient = notification.recipients.get()
|
||||
self.assertEqual(recipient.target, {"phone": "79991234567"})
|
||||
response = requests.Response()
|
||||
response.status_code = 200
|
||||
with patch("notify.delivery.providers.exolve.requests.post", return_value=response) as post:
|
||||
deliver_notification.apply(args=[str(recipient.id)], throw=True)
|
||||
self.assertEqual(post.call_count, 1)
|
||||
self.assertEqual(post.call_args.args[0], EXOLVE_SMS_URL)
|
||||
self.assertEqual(post.call_args.kwargs["headers"]["Authorization"], "Bearer sms-token")
|
||||
self.assertEqual(post.call_args.kwargs["timeout"], EXOLVE_API_TIMEOUT)
|
||||
self.assertEqual(
|
||||
post.call_args.kwargs["json"],
|
||||
{"number": "MTS", "destination": "79991234567", "text": "Hello\nBody"},
|
||||
)
|
||||
recipient.refresh_from_db()
|
||||
self.assertEqual(recipient.status, DeliveryStatus.SENT)
|
||||
self.assertEqual(recipient.attempts, 1)
|
||||
|
||||
def test_sms_requires_target(self):
|
||||
with self.assertRaisesMessage(ValueError, "target is required"):
|
||||
create_notification(
|
||||
title="Hi",
|
||||
recipients=[
|
||||
{"user": self.user, "channels": [{"channel": DeliveryChannel.SMS}]},
|
||||
],
|
||||
)
|
||||
self.assertEqual(Notification.objects.count(), 0)
|
||||
|
||||
def test_sms_rejects_a_short_phone(self):
|
||||
with self.assertRaisesMessage(ValueError, "10 to 15 digits"):
|
||||
create_notification(
|
||||
title="Hi",
|
||||
recipients=[
|
||||
{"user": self.user, "channels": [{"channel": DeliveryChannel.SMS, "target": {"phone": "123"}}]},
|
||||
],
|
||||
)
|
||||
self.assertEqual(Notification.objects.count(), 0)
|
||||
|
||||
def test_sms_client_error_is_not_retried(self):
|
||||
DeliveryTokenConfig.objects.create(
|
||||
name="sms",
|
||||
channel=DeliveryChannel.SMS,
|
||||
is_default=True,
|
||||
token="sms-token",
|
||||
sender="MTS",
|
||||
)
|
||||
notification = Notification.objects.create(title="Hello", description="Body")
|
||||
recipient = NotificationRecipient.objects.create(
|
||||
notification=notification,
|
||||
user=self.user,
|
||||
channel=DeliveryChannel.SMS,
|
||||
target={"phone": "79991234567"},
|
||||
)
|
||||
response = requests.Response()
|
||||
response.status_code = 400
|
||||
error = requests.HTTPError("bad request")
|
||||
error.response = response
|
||||
with patch("notify.delivery.providers.exolve.requests.post") as post:
|
||||
post.return_value.raise_for_status.side_effect = error
|
||||
deliver_notification.apply(args=[str(recipient.id)], throw=True)
|
||||
self.assertEqual(post.call_count, 1)
|
||||
recipient.refresh_from_db()
|
||||
self.assertEqual(recipient.status, DeliveryStatus.FAILED)
|
||||
self.assertEqual(recipient.attempts, 1)
|
||||
self.assertIn("400", recipient.last_error)
|
||||
|
||||
def test_sms_timeout_is_retried(self):
|
||||
DeliveryTokenConfig.objects.create(
|
||||
name="sms",
|
||||
channel=DeliveryChannel.SMS,
|
||||
is_default=True,
|
||||
token="sms-token",
|
||||
sender="MTS",
|
||||
)
|
||||
notification = Notification.objects.create(title="Hello", description="Body")
|
||||
recipient = NotificationRecipient.objects.create(
|
||||
notification=notification,
|
||||
user=self.user,
|
||||
channel=DeliveryChannel.SMS,
|
||||
target={"phone": "79991234567"},
|
||||
)
|
||||
with patch(
|
||||
"notify.delivery.providers.exolve.requests.post",
|
||||
side_effect=requests.Timeout(),
|
||||
) as post:
|
||||
result = deliver_notification.apply(args=[str(recipient.id)], throw=False)
|
||||
self.assertEqual(result.state, "FAILURE")
|
||||
self.assertEqual(post.call_count, 6)
|
||||
recipient.refresh_from_db()
|
||||
self.assertEqual(recipient.status, DeliveryStatus.FAILED)
|
||||
self.assertEqual(recipient.attempts, 6)
|
||||
|
||||
def test_sms_without_sender_is_retried(self):
|
||||
DeliveryTokenConfig.objects.create(
|
||||
name="sms",
|
||||
channel=DeliveryChannel.SMS,
|
||||
is_default=True,
|
||||
token="sms-token",
|
||||
)
|
||||
notification = Notification.objects.create(title="Hello", description="Body")
|
||||
recipient = NotificationRecipient.objects.create(
|
||||
notification=notification,
|
||||
user=self.user,
|
||||
channel=DeliveryChannel.SMS,
|
||||
target={"phone": "79991234567"},
|
||||
)
|
||||
with patch("notify.delivery.providers.exolve.requests.post") as post:
|
||||
result = deliver_notification.apply(args=[str(recipient.id)], throw=False)
|
||||
post.assert_not_called()
|
||||
self.assertEqual(result.state, "FAILURE")
|
||||
recipient.refresh_from_db()
|
||||
self.assertEqual(recipient.status, DeliveryStatus.FAILED)
|
||||
self.assertEqual(recipient.attempts, 6)
|
||||
self.assertIn("sender", recipient.last_error)
|
||||
|
||||
def test_markdown_filter_renders_fenced_code(self):
|
||||
rendered = render("{{ text | markdown }}", {"text": "```\nprint(1)\n```"})
|
||||
self.assertIn("<code>", rendered)
|
||||
|
|
|
|||
|
|
@ -29,15 +29,15 @@ class ModelTests(TestCase):
|
|||
self.user = User.objects.create_user("alice", "alice@example.com", "pass")
|
||||
|
||||
def test_channel_validator(self):
|
||||
validate_delivery_channels(["email", "browser"])
|
||||
validate_delivery_channels(["email", "browser", "sms"])
|
||||
with self.assertRaises(ValidationError):
|
||||
validate_delivery_channels("email")
|
||||
with self.assertRaises(ValidationError):
|
||||
validate_delivery_channels(["sms"])
|
||||
validate_delivery_channels(["push"])
|
||||
|
||||
def test_type_rejects_unknown_channels(self):
|
||||
group = NotificationGroup.objects.create(code="g", name="G")
|
||||
kind = NotificationType(code="t", name="T", group=group, channels=["sms"])
|
||||
kind = NotificationType(code="t", name="T", group=group, channels=["push"])
|
||||
with self.assertRaises(ValidationError):
|
||||
kind.full_clean()
|
||||
|
||||
|
|
@ -78,7 +78,7 @@ class ModelTests(TestCase):
|
|||
)
|
||||
|
||||
def test_relative_url_keeps_only_the_path(self):
|
||||
note = Notification(verb="Hi", url="https://example.com/orders/1?x=1")
|
||||
note = Notification(title="Hi", url="https://example.com/orders/1?x=1")
|
||||
self.assertEqual(note.relative_url, "/orders/1")
|
||||
note.url = "/inbox"
|
||||
self.assertEqual(note.relative_url, "/inbox")
|
||||
|
|
@ -87,35 +87,35 @@ class ModelTests(TestCase):
|
|||
self.assertEqual(str(note), "Hi")
|
||||
|
||||
def test_default_expiry_is_about_thirty_days(self):
|
||||
note = Notification.objects.create(verb="Hi")
|
||||
note = Notification.objects.create(title="Hi")
|
||||
remaining = note.expires_at - timezone.now()
|
||||
self.assertGreater(remaining, timedelta(days=29))
|
||||
self.assertLess(remaining, timedelta(days=31))
|
||||
|
||||
def test_browser_recipient_is_sent_on_save(self):
|
||||
note = Notification.objects.create(verb="Hi")
|
||||
note = Notification.objects.create(title="Hi")
|
||||
recipient = NotificationRecipient.objects.create(
|
||||
notification=note,
|
||||
user=self.user,
|
||||
delivery_channel=DeliveryChannel.BROWSER,
|
||||
delivery_status=DeliveryStatus.UNSENT,
|
||||
channel=DeliveryChannel.BROWSER,
|
||||
status=DeliveryStatus.UNSENT,
|
||||
)
|
||||
self.assertEqual(recipient.delivery_status, DeliveryStatus.SENT)
|
||||
self.assertEqual(recipient.status, DeliveryStatus.SENT)
|
||||
self.assertEqual(str(recipient), f"{DeliveryChannel.BROWSER} ({DeliveryStatus.SENT})")
|
||||
|
||||
def test_read_flags(self):
|
||||
note = Notification.objects.create(verb="Hi")
|
||||
note = Notification.objects.create(title="Hi")
|
||||
recipient = NotificationRecipient.objects.create(
|
||||
notification=note,
|
||||
user=self.user,
|
||||
delivery_channel=DeliveryChannel.EMAIL,
|
||||
delivery_target={"email": "alice@example.com"},
|
||||
channel=DeliveryChannel.EMAIL,
|
||||
target={"email": "alice@example.com"},
|
||||
)
|
||||
self.assertIn("alice@example.com", str(recipient))
|
||||
recipient.make_read()
|
||||
recipient.refresh_from_db()
|
||||
self.assertFalse(recipient.unread)
|
||||
self.assertEqual(recipient.delivery_status, DeliveryStatus.UNSENT)
|
||||
self.assertEqual(recipient.status, DeliveryStatus.UNSENT)
|
||||
recipient.make_unread()
|
||||
recipient.refresh_from_db()
|
||||
self.assertTrue(recipient.unread)
|
||||
|
|
@ -125,13 +125,13 @@ class ModelTests(TestCase):
|
|||
channel=DeliveryChannel.EMAIL,
|
||||
name="first",
|
||||
is_default=True,
|
||||
body_template="A",
|
||||
body="A",
|
||||
)
|
||||
second = NotificationTemplate.objects.create(
|
||||
channel=DeliveryChannel.EMAIL,
|
||||
name="second",
|
||||
is_default=True,
|
||||
body_template="B",
|
||||
body="B",
|
||||
)
|
||||
first.refresh_from_db()
|
||||
self.assertFalse(first.is_default)
|
||||
|
|
@ -145,14 +145,14 @@ class ModelTests(TestCase):
|
|||
channel=DeliveryChannel.EMAIL,
|
||||
name="fallback",
|
||||
is_default=True,
|
||||
body_template="FALLBACK",
|
||||
body="FALLBACK",
|
||||
)
|
||||
typed = NotificationTemplate.objects.create(
|
||||
channel=DeliveryChannel.EMAIL,
|
||||
type=kind,
|
||||
notification_type=kind,
|
||||
name="approved-email",
|
||||
is_default=True,
|
||||
body_template="TYPED",
|
||||
body="TYPED",
|
||||
)
|
||||
fallback.refresh_from_db()
|
||||
self.assertTrue(fallback.is_default)
|
||||
|
|
@ -167,10 +167,10 @@ class ModelTests(TestCase):
|
|||
template = NotificationTemplate(
|
||||
channel=DeliveryChannel.EMAIL,
|
||||
name="t",
|
||||
subject_template="Hello {{ user.username }}",
|
||||
body_template="{{ notification.verb }}",
|
||||
subject="Hello {{ user.username }}",
|
||||
body="{{ notification.title }}",
|
||||
)
|
||||
context = {"user": {"username": "alice"}, "notification": {"verb": "Go"}}
|
||||
context = {"user": {"username": "alice"}, "notification": {"title": "Go"}}
|
||||
self.assertEqual(template.render_subject(context), "Hello alice")
|
||||
self.assertEqual(template.render_body(context), "Go")
|
||||
self.assertEqual(str(template), "t")
|
||||
|
|
@ -179,9 +179,9 @@ class ModelTests(TestCase):
|
|||
template = NotificationTemplate(
|
||||
channel=DeliveryChannel.EMAIL,
|
||||
name="t",
|
||||
body_template="{{ notification.verb }}",
|
||||
body="{{ notification.title }}",
|
||||
)
|
||||
rendered = template.render_body({"notification": {"verb": "<script>alert(1)</script>"}})
|
||||
rendered = template.render_body({"notification": {"title": "<script>alert(1)</script>"}})
|
||||
self.assertNotIn("<script>", rendered)
|
||||
self.assertIn("<script>", rendered)
|
||||
|
||||
|
|
@ -189,7 +189,7 @@ class ModelTests(TestCase):
|
|||
template = NotificationTemplate(
|
||||
channel=DeliveryChannel.EMAIL,
|
||||
name="t",
|
||||
body_template="[{{ notification.url }}]",
|
||||
body="[{{ notification.url }}]",
|
||||
)
|
||||
self.assertEqual(template.render_body({"notification": {}}), "[]")
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,142 @@
|
|||
from types import SimpleNamespace
|
||||
from unittest.mock import AsyncMock, patch
|
||||
from uuid import uuid4
|
||||
|
||||
from asgiref.sync import sync_to_async
|
||||
from channels.layers import get_channel_layer
|
||||
from channels.testing import WebsocketCommunicator
|
||||
from django.apps import apps
|
||||
from django.contrib.auth import get_user_model
|
||||
from django.core.exceptions import ImproperlyConfigured
|
||||
from django.db import transaction
|
||||
from django.test import SimpleTestCase, TestCase, override_settings
|
||||
|
||||
from notify.consumers import UserEventsConsumer
|
||||
from notify.models import DeliveryChannel, Notification
|
||||
from notify.realtime import publish, register_handlers, user_group_name, validate_configuration
|
||||
from notify.services import create_notification
|
||||
|
||||
LAYERS = {"default": {"BACKEND": "channels.layers.InMemoryChannelLayer"}}
|
||||
|
||||
|
||||
@override_settings(CHANNEL_LAYERS=LAYERS, NOTIFY_REALTIME_ENABLED=True)
|
||||
class RealtimeSignalTests(TestCase):
|
||||
def setUp(self):
|
||||
apps.get_app_config("notify").ready()
|
||||
self.user = get_user_model().objects.create_user("alice")
|
||||
|
||||
def create(self):
|
||||
return create_notification(
|
||||
title="Hello",
|
||||
recipients=[{"user": self.user, "channels": [{"channel": DeliveryChannel.BROWSER}]}],
|
||||
)
|
||||
|
||||
def test_registration_is_idempotent_and_events_wait_for_commit(self):
|
||||
register_handlers()
|
||||
register_handlers()
|
||||
with patch("notify.realtime.publish") as send:
|
||||
with self.captureOnCommitCallbacks(execute=True):
|
||||
notification = self.create()
|
||||
send.assert_not_called()
|
||||
self.assertEqual(send.call_count, 2)
|
||||
send.assert_any_call([self.user.pk], "notification.unread")
|
||||
send.assert_any_call(
|
||||
[self.user.pk], "notification.created", notification_id=notification.pk
|
||||
)
|
||||
|
||||
def test_rollback_does_not_publish(self):
|
||||
with patch("notify.realtime.publish") as send:
|
||||
with self.captureOnCommitCallbacks(execute=True):
|
||||
with self.assertRaises(RuntimeError), transaction.atomic():
|
||||
self.create()
|
||||
raise RuntimeError("rollback")
|
||||
send.assert_not_called()
|
||||
|
||||
@override_settings(NOTIFY_REALTIME_ENABLED=False)
|
||||
def test_disabled_adapter_does_not_publish(self):
|
||||
with patch("notify.realtime.publish") as send:
|
||||
with self.captureOnCommitCallbacks(execute=True):
|
||||
self.create()
|
||||
send.assert_not_called()
|
||||
|
||||
def test_transport_failure_does_not_break_notification_creation(self):
|
||||
with patch("channels.layers.get_channel_layer", side_effect=ConnectionError("offline")):
|
||||
with self.assertLogs("notify.realtime", level="ERROR"):
|
||||
with self.captureOnCommitCallbacks(execute=True):
|
||||
notification = self.create()
|
||||
self.assertTrue(Notification.objects.filter(pk=notification.pk).exists())
|
||||
|
||||
|
||||
@override_settings(CHANNEL_LAYERS=LAYERS)
|
||||
class RealtimeTransportTests(SimpleTestCase):
|
||||
def test_failed_recipient_does_not_block_others_and_ids_are_deduplicated(self):
|
||||
layer = SimpleNamespace(group_send=AsyncMock(side_effect=[ConnectionError("offline"), None]))
|
||||
with patch("channels.layers.get_channel_layer", return_value=layer):
|
||||
with self.assertLogs("notify.realtime", level="ERROR"):
|
||||
publish([1, 2, 1], "notification.unread")
|
||||
self.assertEqual(layer.group_send.await_count, 2)
|
||||
self.assertEqual(
|
||||
{call.args[0] for call in layer.group_send.await_args_list},
|
||||
{user_group_name(1), user_group_name(2)},
|
||||
)
|
||||
|
||||
@override_settings(CHANNEL_LAYERS={})
|
||||
def test_missing_layer_is_a_configuration_error(self):
|
||||
with self.assertRaisesMessage(ImproperlyConfigured, "CHANNEL_LAYERS"):
|
||||
validate_configuration()
|
||||
|
||||
def test_arbitrary_user_ids_produce_valid_separate_groups(self):
|
||||
for user_id in (uuid4(), "user@example.com", "long/" * 100):
|
||||
group = user_group_name(user_id)
|
||||
self.assertLess(len(group), 100)
|
||||
self.assertRegex(group, r"^[a-zA-Z0-9_.-]+$")
|
||||
self.assertNotEqual(group, user_group_name("other"))
|
||||
|
||||
@override_settings(NOTIFY_REALTIME_GROUP_PREFIX="invalid prefix")
|
||||
def test_invalid_prefix_is_a_configuration_error(self):
|
||||
with self.assertRaisesMessage(ImproperlyConfigured, "NOTIFY_REALTIME_GROUP_PREFIX"):
|
||||
validate_configuration()
|
||||
|
||||
|
||||
@override_settings(
|
||||
CHANNEL_LAYERS={"events": {"BACKEND": "channels.layers.InMemoryChannelLayer"}},
|
||||
NOTIFY_REALTIME_CHANNEL_LAYER="events",
|
||||
NOTIFY_REALTIME_GROUP_PREFIX="custom.users",
|
||||
)
|
||||
class UserEventsConsumerTests(SimpleTestCase):
|
||||
def socket(self, user=None):
|
||||
socket = WebsocketCommunicator(UserEventsConsumer.as_asgi(), "/ws/events/")
|
||||
if user is not None:
|
||||
socket.scope["user"] = user
|
||||
return socket
|
||||
|
||||
async def test_custom_layer_uuid_user_and_no_client_selected_subscriptions(self):
|
||||
user = SimpleNamespace(pk=uuid4(), is_authenticated=True, is_active=True)
|
||||
other_id = uuid4()
|
||||
socket = self.socket(user)
|
||||
try:
|
||||
self.assertTrue((await socket.connect())[0])
|
||||
self.assertEqual(await socket.receive_json_from(), {"type": "connected"})
|
||||
await socket.send_json_to({"type": "subscribe", "user_id": str(other_id)})
|
||||
await sync_to_async(publish)([other_id], "notification.unread")
|
||||
self.assertTrue(await socket.receive_nothing(timeout=.05))
|
||||
await sync_to_async(publish)([user.pk], "notification.created", notification_id=42)
|
||||
self.assertEqual(
|
||||
await socket.receive_json_from(),
|
||||
{"type": "notification.created", "notification_id": 42},
|
||||
)
|
||||
finally:
|
||||
await socket.disconnect()
|
||||
self.assertNotIn(user_group_name(user.pk), get_channel_layer("events").groups)
|
||||
|
||||
async def test_missing_anonymous_and_inactive_users_are_rejected(self):
|
||||
for user in (
|
||||
None,
|
||||
SimpleNamespace(is_authenticated=False),
|
||||
SimpleNamespace(is_authenticated=True, is_active=False),
|
||||
):
|
||||
socket = self.socket(user)
|
||||
try:
|
||||
self.assertEqual(await socket.connect(), (False, 4401))
|
||||
finally:
|
||||
await socket.disconnect()
|
||||
|
|
@ -0,0 +1,373 @@
|
|||
from django.apps import apps
|
||||
from django.contrib.auth import get_user_model
|
||||
from django.core import mail
|
||||
from django.db.models.signals import post_migrate
|
||||
from django.test import TestCase
|
||||
|
||||
from notify.models import (
|
||||
DeliveryChannel,
|
||||
DeliveryEmailConfig,
|
||||
NotificationGroup,
|
||||
NotificationTemplate,
|
||||
NotificationType,
|
||||
NotificationTypeRecipientGroup,
|
||||
)
|
||||
from notify.registry import (
|
||||
GroupSpec,
|
||||
RecipientGroupSpec,
|
||||
TemplateSpec,
|
||||
TypeSpec,
|
||||
clear,
|
||||
register,
|
||||
sync_registered,
|
||||
)
|
||||
from notify.services import create_notification
|
||||
from notify.tasks import deliver_notification
|
||||
|
||||
User = get_user_model()
|
||||
|
||||
|
||||
def appointment_specs(
|
||||
*,
|
||||
group_name="Записи",
|
||||
created_body="когда={{ notification.description }}",
|
||||
created_templates=None,
|
||||
):
|
||||
if created_templates is None:
|
||||
created_templates = (
|
||||
TemplateSpec(
|
||||
"email",
|
||||
subject="Создана: {{ notification.title }}",
|
||||
body=created_body,
|
||||
),
|
||||
TemplateSpec("telegram", subject="Запись", body="Новая запись"),
|
||||
)
|
||||
return (
|
||||
GroupSpec("appointment", group_name),
|
||||
TypeSpec(
|
||||
code="appointment.created",
|
||||
name="Запись создана",
|
||||
group="appointment",
|
||||
channels=("browser", "email", "telegram"),
|
||||
title="Запись создана",
|
||||
templates=created_templates,
|
||||
),
|
||||
TypeSpec(
|
||||
code="appointment.confirmed",
|
||||
name="Запись подтверждена",
|
||||
group="appointment",
|
||||
channels=("browser", "email"),
|
||||
title="Запись подтверждена",
|
||||
position=1,
|
||||
templates=(
|
||||
TemplateSpec("email", subject="Подтверждена", body="Запись подтверждена"),
|
||||
),
|
||||
),
|
||||
TypeSpec(
|
||||
code="appointment.cancelled",
|
||||
name="Запись отменена",
|
||||
group="appointment",
|
||||
channels=("browser", "email"),
|
||||
title="Запись отменена",
|
||||
position=2,
|
||||
templates=(
|
||||
TemplateSpec("email", subject="Отменена", body="Запись отменена"),
|
||||
),
|
||||
),
|
||||
TypeSpec(
|
||||
code="appointment.reminder",
|
||||
name="Напоминание о записи",
|
||||
group="appointment",
|
||||
channels=("browser", "email"),
|
||||
title="Напоминание о записи",
|
||||
position=3,
|
||||
is_configurable=False,
|
||||
templates=(
|
||||
TemplateSpec("email", subject="Напоминание", body="Скоро запись"),
|
||||
),
|
||||
),
|
||||
)
|
||||
|
||||
|
||||
class RegistryTests(TestCase):
|
||||
def setUp(self):
|
||||
clear()
|
||||
|
||||
def tearDown(self):
|
||||
clear()
|
||||
|
||||
def test_sync_creates_group_types_and_templates(self):
|
||||
register(*appointment_specs())
|
||||
register(*appointment_specs())
|
||||
sync_registered()
|
||||
first_ids = self._ids()
|
||||
sync_registered()
|
||||
|
||||
self.assertEqual(self._ids(), first_ids)
|
||||
group = NotificationGroup.objects.get(code="appointment")
|
||||
self.assertEqual(group.name, "Записи")
|
||||
self.assertEqual(
|
||||
list(NotificationType.objects.filter(group=group).values_list("code", flat=True)),
|
||||
[
|
||||
"appointment.created",
|
||||
"appointment.confirmed",
|
||||
"appointment.cancelled",
|
||||
"appointment.reminder",
|
||||
],
|
||||
)
|
||||
created = NotificationType.objects.get(code="appointment.created")
|
||||
self.assertEqual(created.channels, ["browser", "email", "telegram"])
|
||||
self.assertEqual(created.title, "Запись создана")
|
||||
email = created.templates.get(channel=DeliveryChannel.EMAIL)
|
||||
self.assertEqual(email.name, "appointment.created.email")
|
||||
self.assertEqual(email.subject, "Создана: {{ notification.title }}")
|
||||
self.assertEqual(email.body, "когда={{ notification.description }}")
|
||||
reminder = NotificationType.objects.get(code="appointment.reminder")
|
||||
self.assertEqual(reminder.position, 3)
|
||||
self.assertFalse(reminder.is_configurable)
|
||||
self.assertEqual(NotificationTemplate.objects.filter(notification_type__group=group).count(), 5)
|
||||
|
||||
def test_sync_overwrites_template_body_and_keeps_the_row(self):
|
||||
register(*appointment_specs())
|
||||
sync_registered()
|
||||
template = NotificationTemplate.objects.get(
|
||||
notification_type__code="appointment.created",
|
||||
channel=DeliveryChannel.EMAIL,
|
||||
)
|
||||
template.name = "custom-email"
|
||||
template.save(update_fields=["name"])
|
||||
|
||||
clear()
|
||||
register(*appointment_specs(group_name="Записи к врачу", created_body="обновлено"))
|
||||
sync_registered()
|
||||
|
||||
template.refresh_from_db()
|
||||
self.assertEqual(template.body, "обновлено")
|
||||
self.assertEqual(template.name, "custom-email")
|
||||
self.assertEqual(NotificationGroup.objects.get(code="appointment").name, "Записи к врачу")
|
||||
|
||||
def test_sync_deletes_template_removed_from_the_spec(self):
|
||||
register(*appointment_specs())
|
||||
sync_registered()
|
||||
created = NotificationType.objects.get(code="appointment.created")
|
||||
self.assertTrue(created.templates.filter(channel=DeliveryChannel.TELEGRAM).exists())
|
||||
|
||||
clear()
|
||||
register(
|
||||
*appointment_specs(
|
||||
created_templates=(
|
||||
TemplateSpec(
|
||||
"email",
|
||||
subject="Создана: {{ notification.title }}",
|
||||
body="когда={{ notification.description }}",
|
||||
),
|
||||
)
|
||||
)
|
||||
)
|
||||
sync_registered()
|
||||
|
||||
self.assertFalse(created.templates.filter(channel=DeliveryChannel.TELEGRAM).exists())
|
||||
self.assertTrue(created.templates.filter(channel=DeliveryChannel.EMAIL).exists())
|
||||
|
||||
def test_sync_leaves_unregistered_rows(self):
|
||||
group = NotificationGroup.objects.create(code="billing", name="Billing")
|
||||
kind = NotificationType.objects.create(
|
||||
code="invoice",
|
||||
name="Invoice",
|
||||
group=group,
|
||||
channels=[DeliveryChannel.EMAIL],
|
||||
title="Invoice",
|
||||
)
|
||||
typed = NotificationTemplate.objects.create(
|
||||
name="invoice-email",
|
||||
channel=DeliveryChannel.EMAIL,
|
||||
notification_type=kind,
|
||||
subject="Invoice",
|
||||
body="Pay",
|
||||
)
|
||||
default = NotificationTemplate.objects.create(
|
||||
name="default-email",
|
||||
channel=DeliveryChannel.EMAIL,
|
||||
is_default=True,
|
||||
subject="Default",
|
||||
body="Default body",
|
||||
)
|
||||
register(*appointment_specs())
|
||||
sync_registered()
|
||||
|
||||
typed.refresh_from_db()
|
||||
default.refresh_from_db()
|
||||
kind.refresh_from_db()
|
||||
self.assertEqual(typed.body, "Pay")
|
||||
self.assertEqual(default.body, "Default body")
|
||||
self.assertEqual(kind.name, "Invoice")
|
||||
self.assertTrue(NotificationGroup.objects.filter(code="billing").exists())
|
||||
|
||||
def test_same_code_with_different_data_is_rejected(self):
|
||||
register(*appointment_specs())
|
||||
with self.assertRaisesMessage(ValueError, "already registered"):
|
||||
register(
|
||||
TypeSpec(
|
||||
code="appointment.created",
|
||||
name="Другое имя",
|
||||
group="appointment",
|
||||
channels=("browser",),
|
||||
title="Другое",
|
||||
)
|
||||
)
|
||||
with self.assertRaisesMessage(ValueError, "already registered"):
|
||||
register(GroupSpec("appointment", "Другое"))
|
||||
self.assertFalse(NotificationType.objects.exists())
|
||||
|
||||
def test_unknown_channel_is_rejected(self):
|
||||
with self.assertRaisesMessage(ValueError, "Unknown channels"):
|
||||
TypeSpec(
|
||||
code="appointment.created",
|
||||
name="Запись создана",
|
||||
group="appointment",
|
||||
channels=("fax",),
|
||||
title="Запись создана",
|
||||
)
|
||||
|
||||
def test_template_channel_must_belong_to_the_type(self):
|
||||
with self.assertRaisesMessage(ValueError, "is not allowed"):
|
||||
TypeSpec(
|
||||
code="appointment.created",
|
||||
name="Запись создана",
|
||||
group="appointment",
|
||||
channels=("browser",),
|
||||
title="Запись создана",
|
||||
templates=(TemplateSpec("email", subject="Тема", body="Текст"),),
|
||||
)
|
||||
|
||||
def test_type_requires_a_registered_group(self):
|
||||
with self.assertRaisesMessage(ValueError, "is not registered"):
|
||||
register(
|
||||
TypeSpec(
|
||||
code="appointment.created",
|
||||
name="Запись создана",
|
||||
group="appointment",
|
||||
channels=("browser",),
|
||||
title="Запись создана",
|
||||
)
|
||||
)
|
||||
|
||||
def test_sync_writes_recipient_groups_and_drops_removed_ones(self):
|
||||
register(
|
||||
GroupSpec("appointment", "Записи"),
|
||||
TypeSpec(
|
||||
code="appointment.online",
|
||||
name="Онлайн запись",
|
||||
group="appointment",
|
||||
channels=("browser",),
|
||||
title="Онлайн-запись",
|
||||
is_enabled_by_default=False,
|
||||
recipient_groups=(
|
||||
RecipientGroupSpec("registrars", is_configurable=False),
|
||||
RecipientGroupSpec("doctors", is_enabled_by_default=False),
|
||||
),
|
||||
),
|
||||
)
|
||||
sync_registered()
|
||||
kind = NotificationType.objects.get(code="appointment.online")
|
||||
registrars = kind.recipient_groups.get(group_name="registrars")
|
||||
self.assertFalse(registrars.is_configurable)
|
||||
self.assertTrue(registrars.is_enabled_by_default)
|
||||
self.assertFalse(kind.recipient_groups.get(group_name="doctors").is_enabled_by_default)
|
||||
|
||||
other = NotificationType.objects.create(
|
||||
code="invoice",
|
||||
name="Invoice",
|
||||
group=NotificationGroup.objects.create(code="billing", name="Billing"),
|
||||
channels=["browser"],
|
||||
)
|
||||
kept = NotificationTypeRecipientGroup.objects.create(
|
||||
notification_type=other,
|
||||
group_name="billing",
|
||||
)
|
||||
|
||||
clear()
|
||||
register(
|
||||
GroupSpec("appointment", "Записи"),
|
||||
TypeSpec(
|
||||
code="appointment.online",
|
||||
name="Онлайн запись",
|
||||
group="appointment",
|
||||
channels=("browser",),
|
||||
title="Онлайн-запись",
|
||||
recipient_groups=(
|
||||
RecipientGroupSpec("registrars", is_configurable=True, is_enabled_by_default=False),
|
||||
),
|
||||
),
|
||||
)
|
||||
sync_registered()
|
||||
|
||||
registrars.refresh_from_db()
|
||||
self.assertTrue(registrars.is_configurable)
|
||||
self.assertFalse(registrars.is_enabled_by_default)
|
||||
self.assertFalse(kind.recipient_groups.filter(group_name="doctors").exists())
|
||||
kept.refresh_from_db()
|
||||
self.assertEqual(kept.group_name, "billing")
|
||||
|
||||
def test_duplicate_recipient_group_is_rejected(self):
|
||||
with self.assertRaisesMessage(ValueError, "Duplicate recipient group registrars"):
|
||||
TypeSpec(
|
||||
code="appointment.online",
|
||||
name="Онлайн запись",
|
||||
group="appointment",
|
||||
channels=("browser",),
|
||||
recipient_groups=(
|
||||
RecipientGroupSpec("registrars"),
|
||||
RecipientGroupSpec("registrars", is_configurable=False),
|
||||
),
|
||||
)
|
||||
with self.assertRaisesMessage(ValueError, "Recipient group name is required"):
|
||||
RecipientGroupSpec(" ")
|
||||
|
||||
def test_post_migrate_syncs_registered_types(self):
|
||||
register(*appointment_specs())
|
||||
receiver = next(
|
||||
receiver
|
||||
for (receiver_key, _), receiver, _is_async in post_migrate.receivers
|
||||
if receiver_key == "notify.sync_registered"
|
||||
)
|
||||
receiver(sender=apps.get_app_config("notify"))
|
||||
self.assertTrue(NotificationType.objects.filter(code="appointment.confirmed").exists())
|
||||
|
||||
def test_create_notification_uses_the_synced_email_template(self):
|
||||
user = User.objects.create_user("alice", "alice@example.com", "pass")
|
||||
DeliveryEmailConfig.objects.create(
|
||||
name="default-smtp",
|
||||
channel=DeliveryChannel.EMAIL,
|
||||
is_default=True,
|
||||
host="smtp.example.com",
|
||||
port=587,
|
||||
from_email="noreply@example.com",
|
||||
use_ssl=False,
|
||||
use_tls=False,
|
||||
)
|
||||
register(*appointment_specs())
|
||||
sync_registered()
|
||||
notification = create_notification(
|
||||
notification_type="appointment.created",
|
||||
description="12 октября, 10:00",
|
||||
recipients=[
|
||||
{
|
||||
"user": user,
|
||||
"channels": [
|
||||
{"channel": DeliveryChannel.EMAIL, "target": {"email": "alice@example.com"}},
|
||||
],
|
||||
}
|
||||
],
|
||||
)
|
||||
self.assertEqual(notification.title, "Запись создана")
|
||||
deliver_notification.apply(args=[str(notification.recipients.get().id)], throw=True)
|
||||
self.assertEqual(mail.outbox[0].subject, "Создана: Запись создана")
|
||||
self.assertIn("когда=12 октября, 10:00", mail.outbox[0].body)
|
||||
|
||||
def _ids(self):
|
||||
return {
|
||||
"group": NotificationGroup.objects.get(code="appointment").pk,
|
||||
"types": set(NotificationType.objects.values_list("pk", flat=True)),
|
||||
"templates": set(NotificationTemplate.objects.values_list("pk", flat=True)),
|
||||
}
|
||||
|
|
@ -2,6 +2,7 @@ from datetime import timedelta
|
|||
from unittest.mock import patch
|
||||
|
||||
from django.contrib.auth import get_user_model
|
||||
from django.contrib.auth.models import Group
|
||||
from django.core import mail
|
||||
from django.test import TestCase
|
||||
from django.utils import timezone
|
||||
|
|
@ -15,6 +16,7 @@ from notify.models import (
|
|||
NotificationLevel,
|
||||
NotificationRecipient,
|
||||
NotificationType,
|
||||
NotificationTypeRecipientGroup,
|
||||
)
|
||||
from notify.services import channel_preferences, create_notification, save_channel_preferences
|
||||
|
||||
|
|
@ -31,65 +33,71 @@ class CreateNotificationTests(TestCase):
|
|||
name="Approved",
|
||||
group=self.group,
|
||||
channels=[DeliveryChannel.EMAIL, DeliveryChannel.BROWSER, DeliveryChannel.MAX],
|
||||
verb="Approved",
|
||||
title="Approved",
|
||||
)
|
||||
|
||||
def test_type_supplies_the_verb_and_links_the_row(self):
|
||||
notification = create_notification(
|
||||
type=self.kind,
|
||||
notification_type=self.kind,
|
||||
recipients=[
|
||||
{"user": self.user, "channels": [{"channel": DeliveryChannel.BROWSER}]},
|
||||
],
|
||||
)
|
||||
self.assertEqual(notification.verb, "Approved")
|
||||
self.assertEqual(notification.type, self.kind)
|
||||
self.assertEqual(notification.title, "Approved")
|
||||
self.assertEqual(notification.notification_type, self.kind)
|
||||
self.assertEqual(notification.level, NotificationLevel.INFO)
|
||||
self.assertEqual(notification.data, {})
|
||||
self.assertFalse(notification.show_popup)
|
||||
self.assertIsNone(notification.content_type)
|
||||
self.assertEqual(notification.object_id, "")
|
||||
self.assertIsNone(notification.content_object)
|
||||
recipient = notification.recipients.get()
|
||||
self.assertEqual(recipient.delivery_status, DeliveryStatus.SENT)
|
||||
self.assertEqual(recipient.status, DeliveryStatus.SENT)
|
||||
self.assertTrue(recipient.unread)
|
||||
|
||||
def test_code_resolves_to_the_same_type(self):
|
||||
notification = create_notification(
|
||||
type="approved",
|
||||
notification_type="approved",
|
||||
recipients=[
|
||||
{"user": self.user, "channels": [{"channel": DeliveryChannel.BROWSER}]},
|
||||
],
|
||||
)
|
||||
self.assertEqual(notification.type, self.kind)
|
||||
self.assertEqual(notification.verb, "Approved")
|
||||
self.assertEqual(notification.notification_type, self.kind)
|
||||
self.assertEqual(notification.title, "Approved")
|
||||
|
||||
def test_explicit_fields_override_the_type(self):
|
||||
when = timezone.now() + timedelta(days=2)
|
||||
notification = create_notification(
|
||||
type="approved",
|
||||
verb="Custom",
|
||||
notification_type="approved",
|
||||
title="Custom",
|
||||
url="https://example.com/orders/9?x=1",
|
||||
level=NotificationLevel.ERROR,
|
||||
object_id="9",
|
||||
content_object=self.other,
|
||||
description="Done",
|
||||
data={"n": 1},
|
||||
show_popup=True,
|
||||
expires_at=when,
|
||||
recipients=[
|
||||
{"user": self.user, "channels": [{"channel": DeliveryChannel.BROWSER}]},
|
||||
],
|
||||
)
|
||||
self.assertEqual(notification.verb, "Custom")
|
||||
self.assertEqual(notification.title, "Custom")
|
||||
self.assertEqual(notification.url, "https://example.com/orders/9?x=1")
|
||||
self.assertEqual(notification.relative_url, "/orders/9")
|
||||
self.assertEqual(notification.level, NotificationLevel.ERROR)
|
||||
self.assertEqual(notification.object_id, "9")
|
||||
self.assertEqual(notification.content_object, self.other)
|
||||
self.assertEqual(notification.object_id, str(self.other.pk))
|
||||
self.assertEqual(notification.description, "Done")
|
||||
self.assertEqual(notification.data, {"n": 1})
|
||||
self.assertTrue(notification.show_popup)
|
||||
self.assertEqual(notification.expires_at, when)
|
||||
|
||||
def test_verb_is_required(self):
|
||||
self.kind.verb = ""
|
||||
self.kind.save(update_fields=["verb"])
|
||||
with self.assertRaisesMessage(ValueError, "verb is required"):
|
||||
def test_title_is_required(self):
|
||||
self.kind.title = ""
|
||||
self.kind.save(update_fields=["title"])
|
||||
with self.assertRaisesMessage(ValueError, "title is required"):
|
||||
create_notification(
|
||||
type="approved",
|
||||
notification_type="approved",
|
||||
recipients=[
|
||||
{"user": self.user, "channels": [{"channel": DeliveryChannel.BROWSER}]},
|
||||
],
|
||||
|
|
@ -99,8 +107,8 @@ class CreateNotificationTests(TestCase):
|
|||
def test_unknown_type_creates_nothing(self):
|
||||
with self.assertRaises(NotificationType.DoesNotExist):
|
||||
create_notification(
|
||||
type="missing",
|
||||
verb="Hi",
|
||||
notification_type="missing",
|
||||
title="Hi",
|
||||
recipients=[
|
||||
{"user": self.user, "channels": [{"channel": DeliveryChannel.BROWSER}]},
|
||||
],
|
||||
|
|
@ -109,13 +117,13 @@ class CreateNotificationTests(TestCase):
|
|||
|
||||
def test_empty_recipient_list_is_rejected(self):
|
||||
with self.assertRaisesMessage(ValueError, "At least one recipient"):
|
||||
create_notification(verb="Hi", recipients=[])
|
||||
create_notification(title="Hi", recipients=[])
|
||||
self.assertEqual(Notification.objects.count(), 0)
|
||||
|
||||
def test_recipient_without_channels_rolls_back(self):
|
||||
with self.assertRaisesMessage(ValueError, "no channels"):
|
||||
create_notification(
|
||||
verb="Hi",
|
||||
title="Hi",
|
||||
recipients=[
|
||||
{"user": self.user, "channels": [{"channel": DeliveryChannel.BROWSER}]},
|
||||
{"user": self.other, "channels": []},
|
||||
|
|
@ -127,7 +135,7 @@ class CreateNotificationTests(TestCase):
|
|||
def test_same_user_and_channel_twice_rolls_back(self):
|
||||
with self.assertRaisesMessage(ValueError, "Duplicate"):
|
||||
create_notification(
|
||||
verb="Hi",
|
||||
title="Hi",
|
||||
recipients=[
|
||||
{"user": self.user, "channels": [{"channel": DeliveryChannel.BROWSER}]},
|
||||
{"user": self.user, "channels": [{"channel": DeliveryChannel.BROWSER}]},
|
||||
|
|
@ -137,7 +145,7 @@ class CreateNotificationTests(TestCase):
|
|||
|
||||
def test_each_user_gets_a_recipient(self):
|
||||
notification = create_notification(
|
||||
verb="Hi",
|
||||
title="Hi",
|
||||
recipients=[
|
||||
{"user": self.user, "channels": [{"channel": DeliveryChannel.BROWSER}]},
|
||||
{"user": self.other, "channels": [{"channel": DeliveryChannel.BROWSER}]},
|
||||
|
|
@ -151,7 +159,7 @@ class CreateNotificationTests(TestCase):
|
|||
def test_invalid_email_rolls_back(self):
|
||||
with self.assertRaisesMessage(ValueError, "valid email"):
|
||||
create_notification(
|
||||
verb="Hi",
|
||||
title="Hi",
|
||||
recipients=[
|
||||
{
|
||||
"user": self.user,
|
||||
|
|
@ -168,7 +176,7 @@ class CreateNotificationTests(TestCase):
|
|||
def test_blank_email_is_rejected(self):
|
||||
with self.assertRaisesMessage(ValueError, "valid email"):
|
||||
create_notification(
|
||||
verb="Hi",
|
||||
title="Hi",
|
||||
recipients=[
|
||||
{
|
||||
"user": self.user,
|
||||
|
|
@ -181,7 +189,7 @@ class CreateNotificationTests(TestCase):
|
|||
def test_email_requires_target(self):
|
||||
with self.assertRaisesMessage(ValueError, "target is required"):
|
||||
create_notification(
|
||||
verb="Hi",
|
||||
title="Hi",
|
||||
recipients=[
|
||||
{"user": self.user, "channels": [{"channel": DeliveryChannel.EMAIL}]},
|
||||
],
|
||||
|
|
@ -190,7 +198,7 @@ class CreateNotificationTests(TestCase):
|
|||
|
||||
def test_email_target_is_stored(self):
|
||||
notification = create_notification(
|
||||
verb="Hi",
|
||||
title="Hi",
|
||||
recipients=[
|
||||
{
|
||||
"user": self.user,
|
||||
|
|
@ -198,12 +206,13 @@ class CreateNotificationTests(TestCase):
|
|||
}
|
||||
],
|
||||
)
|
||||
self.assertEqual(notification.recipients.get().delivery_target, {"email": "alice@example.com"})
|
||||
recipient = notification.recipients.get()
|
||||
self.assertEqual(recipient.target, {"email": "alice@example.com"})
|
||||
|
||||
def test_browser_rejects_target(self):
|
||||
with self.assertRaisesMessage(ValueError, "target is not supported"):
|
||||
create_notification(
|
||||
verb="Hi",
|
||||
title="Hi",
|
||||
recipients=[
|
||||
{
|
||||
"user": self.user,
|
||||
|
|
@ -215,7 +224,7 @@ class CreateNotificationTests(TestCase):
|
|||
|
||||
def test_max_chat_is_stored(self):
|
||||
notification = create_notification(
|
||||
verb="Hi",
|
||||
title="Hi",
|
||||
recipients=[
|
||||
{
|
||||
"user": self.user,
|
||||
|
|
@ -224,14 +233,14 @@ class CreateNotificationTests(TestCase):
|
|||
],
|
||||
)
|
||||
self.assertEqual(
|
||||
notification.recipients.get().delivery_target,
|
||||
notification.recipients.get().target,
|
||||
{"chat_id": -5, "user_id": None},
|
||||
)
|
||||
self.assertEqual(notification.recipients.get().delivery_status, DeliveryStatus.UNSENT)
|
||||
self.assertEqual(notification.recipients.get().status, DeliveryStatus.UNSENT)
|
||||
|
||||
def test_max_user_and_chat_are_stored(self):
|
||||
notification = create_notification(
|
||||
verb="Hi",
|
||||
title="Hi",
|
||||
recipients=[
|
||||
{
|
||||
"user": self.other,
|
||||
|
|
@ -245,14 +254,14 @@ class CreateNotificationTests(TestCase):
|
|||
],
|
||||
)
|
||||
self.assertEqual(
|
||||
notification.recipients.get().delivery_target,
|
||||
notification.recipients.get().target,
|
||||
{"chat_id": 3, "user_id": 8},
|
||||
)
|
||||
|
||||
def test_max_requires_target(self):
|
||||
with self.assertRaisesMessage(ValueError, "target is required"):
|
||||
create_notification(
|
||||
verb="Hi",
|
||||
title="Hi",
|
||||
recipients=[
|
||||
{"user": self.user, "channels": [{"channel": DeliveryChannel.MAX}]},
|
||||
],
|
||||
|
|
@ -262,7 +271,7 @@ class CreateNotificationTests(TestCase):
|
|||
def test_max_rejects_a_positive_chat_without_user(self):
|
||||
with self.assertRaisesMessage(ValueError, "negative"):
|
||||
create_notification(
|
||||
verb="Hi",
|
||||
title="Hi",
|
||||
recipients=[
|
||||
{
|
||||
"user": self.user,
|
||||
|
|
@ -275,7 +284,7 @@ class CreateNotificationTests(TestCase):
|
|||
def test_max_rejects_a_non_positive_pair(self):
|
||||
with self.assertRaisesMessage(ValueError, "positive"):
|
||||
create_notification(
|
||||
verb="Hi",
|
||||
title="Hi",
|
||||
recipients=[
|
||||
{
|
||||
"user": self.user,
|
||||
|
|
@ -291,6 +300,101 @@ class CreateNotificationTests(TestCase):
|
|||
self.assertEqual(Notification.objects.count(), 0)
|
||||
|
||||
|
||||
class ExternalRecipientTests(TestCase):
|
||||
def test_address_only_recipient_has_no_user(self):
|
||||
notification = create_notification(
|
||||
title="Код",
|
||||
recipients=[
|
||||
{"channels": [{"channel": DeliveryChannel.SMS, "target": {"phone": "+79991234567"}}]},
|
||||
],
|
||||
)
|
||||
recipient = notification.recipients.get()
|
||||
self.assertIsNone(recipient.user_id)
|
||||
self.assertIsNone(recipient.content_type)
|
||||
self.assertEqual(recipient.target, {"phone": "79991234567"})
|
||||
|
||||
def test_content_object_is_stored_separately_from_the_notification_subject(self):
|
||||
subject = User.objects.create_user("alice", "alice@example.com", "pass")
|
||||
patient = NotificationGroup.objects.create(code="patient", name="Patient")
|
||||
notification = create_notification(
|
||||
title="Запись",
|
||||
content_object=subject,
|
||||
recipients=[
|
||||
{
|
||||
"content_object": patient,
|
||||
"channels": [
|
||||
{"channel": DeliveryChannel.SMS, "target": {"phone": "8 (999) 123-45-67"}},
|
||||
{"channel": DeliveryChannel.EMAIL, "target": {"email": "patient@example.com"}},
|
||||
{"channel": DeliveryChannel.MAX, "target": {"chat_id": -5}},
|
||||
],
|
||||
}
|
||||
],
|
||||
)
|
||||
self.assertEqual(notification.content_object, subject)
|
||||
rows = {row.channel: row for row in notification.recipients.all()}
|
||||
self.assertEqual(
|
||||
set(rows),
|
||||
{DeliveryChannel.SMS, DeliveryChannel.EMAIL, DeliveryChannel.MAX},
|
||||
)
|
||||
for row in rows.values():
|
||||
self.assertIsNone(row.user_id)
|
||||
self.assertEqual(row.content_object, patient)
|
||||
self.assertEqual(rows[DeliveryChannel.SMS].target, {"phone": "79991234567"})
|
||||
|
||||
def test_browser_without_user_does_not_create_a_notification(self):
|
||||
with self.assertRaisesMessage(ValueError, "browser requires a user"):
|
||||
create_notification(
|
||||
title="Hi",
|
||||
recipients=[{"channels": [{"channel": DeliveryChannel.BROWSER}]}],
|
||||
)
|
||||
self.assertEqual(Notification.objects.count(), 0)
|
||||
|
||||
def test_same_phone_without_a_user_is_not_a_duplicate(self):
|
||||
notification = create_notification(
|
||||
title="Ping",
|
||||
recipients=[
|
||||
{"channels": [{"channel": DeliveryChannel.SMS, "target": {"phone": "79991234567"}}]},
|
||||
{"channels": [{"channel": DeliveryChannel.SMS, "target": {"phone": "8 999 123-45-67"}}]},
|
||||
],
|
||||
)
|
||||
self.assertEqual(notification.recipients.count(), 2)
|
||||
|
||||
def test_unsaved_content_object_rolls_back(self):
|
||||
patient = User(username="ghost")
|
||||
with self.assertRaisesMessage(ValueError, "must be saved"):
|
||||
create_notification(
|
||||
title="Hi",
|
||||
recipients=[
|
||||
{
|
||||
"content_object": patient,
|
||||
"channels": [{"channel": DeliveryChannel.SMS, "target": {"phone": "79991234567"}}],
|
||||
}
|
||||
],
|
||||
)
|
||||
self.assertEqual(Notification.objects.count(), 0)
|
||||
|
||||
def test_group_does_not_collapse_a_recipient_without_a_user(self):
|
||||
subject = NotificationGroup.objects.create(code="visit", name="Visit")
|
||||
first = create_notification(
|
||||
title="Hello",
|
||||
content_object=subject,
|
||||
group=True,
|
||||
recipients=[
|
||||
{"channels": [{"channel": DeliveryChannel.SMS, "target": {"phone": "79991234567"}}]},
|
||||
],
|
||||
)
|
||||
second = create_notification(
|
||||
title="Hello again",
|
||||
content_object=subject,
|
||||
group=True,
|
||||
recipients=[
|
||||
{"channels": [{"channel": DeliveryChannel.SMS, "target": {"phone": "79991234567"}}]},
|
||||
],
|
||||
)
|
||||
self.assertNotEqual(first.pk, second.pk)
|
||||
self.assertEqual(Notification.objects.count(), 2)
|
||||
|
||||
|
||||
class DeliveryEnqueueTests(TestCase):
|
||||
def setUp(self):
|
||||
self.user = User.objects.create_user("alice", "alice@example.com", "pass")
|
||||
|
|
@ -299,7 +403,7 @@ class DeliveryEnqueueTests(TestCase):
|
|||
with patch("notify.tasks.deliver_notification.apply_async") as apply_async:
|
||||
with self.captureOnCommitCallbacks(execute=True):
|
||||
notification = create_notification(
|
||||
verb="Hi",
|
||||
title="Hi",
|
||||
recipients=[
|
||||
{
|
||||
"user": self.user,
|
||||
|
|
@ -313,10 +417,10 @@ class DeliveryEnqueueTests(TestCase):
|
|||
}
|
||||
],
|
||||
)
|
||||
email = notification.recipients.get(delivery_channel=DeliveryChannel.EMAIL)
|
||||
browser = notification.recipients.get(delivery_channel=DeliveryChannel.BROWSER)
|
||||
self.assertEqual(email.delivery_status, DeliveryStatus.UNSENT)
|
||||
self.assertEqual(browser.delivery_status, DeliveryStatus.SENT)
|
||||
email = notification.recipients.get(channel=DeliveryChannel.EMAIL)
|
||||
browser = notification.recipients.get(channel=DeliveryChannel.BROWSER)
|
||||
self.assertEqual(email.status, DeliveryStatus.UNSENT)
|
||||
self.assertEqual(browser.status, DeliveryStatus.SENT)
|
||||
apply_async.assert_called_once_with(args=(str(email.id),))
|
||||
self.assertEqual(len(mail.outbox), 0)
|
||||
|
||||
|
|
@ -324,7 +428,7 @@ class DeliveryEnqueueTests(TestCase):
|
|||
with patch("notify.tasks.deliver_notification.apply_async") as apply_async:
|
||||
with self.captureOnCommitCallbacks(execute=True):
|
||||
create_notification(
|
||||
verb="Hi",
|
||||
title="Hi",
|
||||
recipients=[
|
||||
{"user": self.user, "channels": [{"channel": DeliveryChannel.BROWSER}]},
|
||||
],
|
||||
|
|
@ -336,7 +440,7 @@ class DeliveryEnqueueTests(TestCase):
|
|||
with self.captureOnCommitCallbacks(execute=True):
|
||||
with self.assertRaisesMessage(ValueError, "Duplicate"):
|
||||
create_notification(
|
||||
verb="Hi",
|
||||
title="Hi",
|
||||
recipients=[
|
||||
{
|
||||
"user": self.user,
|
||||
|
|
@ -367,19 +471,19 @@ class ChannelPreferenceTests(TestCase):
|
|||
name="Approved",
|
||||
group=self.group,
|
||||
channels=[DeliveryChannel.EMAIL, DeliveryChannel.BROWSER],
|
||||
verb="Approved",
|
||||
configurable=True,
|
||||
title="Approved",
|
||||
is_configurable=True,
|
||||
)
|
||||
|
||||
def test_disabled_channel_is_omitted_and_an_empty_result_rolls_back(self):
|
||||
NotificationChannelPreference.objects.create(
|
||||
user=self.user,
|
||||
type=self.kind,
|
||||
notification_type=self.kind,
|
||||
channel=DeliveryChannel.EMAIL,
|
||||
enabled=False,
|
||||
is_enabled=False,
|
||||
)
|
||||
notification = create_notification(
|
||||
type="approved",
|
||||
notification_type="approved",
|
||||
recipients=[
|
||||
{
|
||||
"user": self.user,
|
||||
|
|
@ -391,19 +495,19 @@ class ChannelPreferenceTests(TestCase):
|
|||
],
|
||||
)
|
||||
self.assertEqual(
|
||||
list(notification.recipients.values_list("delivery_channel", flat=True)),
|
||||
list(notification.recipients.values_list("channel", flat=True)),
|
||||
[DeliveryChannel.BROWSER],
|
||||
)
|
||||
|
||||
NotificationChannelPreference.objects.create(
|
||||
user=self.user,
|
||||
type=self.kind,
|
||||
notification_type=self.kind,
|
||||
channel=DeliveryChannel.BROWSER,
|
||||
enabled=False,
|
||||
is_enabled=False,
|
||||
)
|
||||
with self.assertRaisesMessage(ValueError, "No recipients to deliver"):
|
||||
create_notification(
|
||||
type="approved",
|
||||
notification_type="approved",
|
||||
recipients=[
|
||||
{"user": self.user, "channels": [{"channel": DeliveryChannel.BROWSER}]},
|
||||
],
|
||||
|
|
@ -412,7 +516,7 @@ class ChannelPreferenceTests(TestCase):
|
|||
|
||||
def test_missing_preference_keeps_the_channel(self):
|
||||
notification = create_notification(
|
||||
type="approved",
|
||||
notification_type="approved",
|
||||
recipients=[
|
||||
{
|
||||
"user": self.user,
|
||||
|
|
@ -422,21 +526,21 @@ class ChannelPreferenceTests(TestCase):
|
|||
}
|
||||
],
|
||||
)
|
||||
self.assertEqual(notification.recipients.get().delivery_channel, DeliveryChannel.EMAIL)
|
||||
self.assertEqual(notification.recipients.get().channel, DeliveryChannel.EMAIL)
|
||||
|
||||
def test_missing_preference_drops_a_channel_disabled_by_default(self):
|
||||
self.kind.enabled_by_default = False
|
||||
self.kind.save(update_fields=["enabled_by_default"])
|
||||
self.kind.is_enabled_by_default = False
|
||||
self.kind.save(update_fields=["is_enabled_by_default"])
|
||||
self.assertEqual(
|
||||
channel_preferences(self.user)[0]["channels"],
|
||||
[
|
||||
{"channel": DeliveryChannel.EMAIL, "enabled": False},
|
||||
{"channel": DeliveryChannel.BROWSER, "enabled": False},
|
||||
{"channel": DeliveryChannel.EMAIL, "is_enabled": False},
|
||||
{"channel": DeliveryChannel.BROWSER, "is_enabled": False},
|
||||
],
|
||||
)
|
||||
with self.assertRaisesMessage(ValueError, "No recipients to deliver"):
|
||||
create_notification(
|
||||
type="approved",
|
||||
notification_type="approved",
|
||||
recipients=[
|
||||
{
|
||||
"user": self.user,
|
||||
|
|
@ -450,12 +554,12 @@ class ChannelPreferenceTests(TestCase):
|
|||
|
||||
NotificationChannelPreference.objects.create(
|
||||
user=self.user,
|
||||
type=self.kind,
|
||||
notification_type=self.kind,
|
||||
channel=DeliveryChannel.EMAIL,
|
||||
enabled=True,
|
||||
is_enabled=True,
|
||||
)
|
||||
notification = create_notification(
|
||||
type="approved",
|
||||
notification_type="approved",
|
||||
recipients=[
|
||||
{
|
||||
"user": self.user,
|
||||
|
|
@ -465,19 +569,31 @@ class ChannelPreferenceTests(TestCase):
|
|||
}
|
||||
],
|
||||
)
|
||||
self.assertEqual(notification.recipients.get().delivery_channel, DeliveryChannel.EMAIL)
|
||||
self.assertEqual(notification.recipients.get().channel, DeliveryChannel.EMAIL)
|
||||
|
||||
def test_external_recipient_ignores_channel_preferences(self):
|
||||
self.kind.channels = [DeliveryChannel.EMAIL, DeliveryChannel.SMS]
|
||||
self.kind.is_enabled_by_default = False
|
||||
self.kind.save(update_fields=["channels", "is_enabled_by_default"])
|
||||
notification = create_notification(
|
||||
notification_type=self.kind,
|
||||
recipients=[
|
||||
{"channels": [{"channel": DeliveryChannel.SMS, "target": {"phone": "79991234567"}}]},
|
||||
],
|
||||
)
|
||||
self.assertEqual(notification.recipients.get().channel, DeliveryChannel.SMS)
|
||||
|
||||
def test_locked_type_ignores_a_disabled_preference(self):
|
||||
self.kind.configurable = False
|
||||
self.kind.save(update_fields=["configurable"])
|
||||
self.kind.is_configurable = False
|
||||
self.kind.save(update_fields=["is_configurable"])
|
||||
NotificationChannelPreference.objects.create(
|
||||
user=self.user,
|
||||
type=self.kind,
|
||||
notification_type=self.kind,
|
||||
channel=DeliveryChannel.EMAIL,
|
||||
enabled=False,
|
||||
is_enabled=False,
|
||||
)
|
||||
notification = create_notification(
|
||||
type="approved",
|
||||
notification_type="approved",
|
||||
recipients=[
|
||||
{
|
||||
"user": self.user,
|
||||
|
|
@ -487,7 +603,7 @@ class ChannelPreferenceTests(TestCase):
|
|||
}
|
||||
],
|
||||
)
|
||||
self.assertEqual(notification.recipients.get().delivery_channel, DeliveryChannel.EMAIL)
|
||||
self.assertEqual(notification.recipients.get().channel, DeliveryChannel.EMAIL)
|
||||
|
||||
def test_preference_screen_reads_and_writes_switchable_channels(self):
|
||||
hidden = NotificationType.objects.create(
|
||||
|
|
@ -495,7 +611,7 @@ class ChannelPreferenceTests(TestCase):
|
|||
name="Security",
|
||||
group=self.group,
|
||||
channels=[DeliveryChannel.EMAIL],
|
||||
configurable=False,
|
||||
is_configurable=False,
|
||||
)
|
||||
self.assertEqual(
|
||||
channel_preferences(self.user),
|
||||
|
|
@ -503,8 +619,8 @@ class ChannelPreferenceTests(TestCase):
|
|||
{
|
||||
"code": "approved",
|
||||
"channels": [
|
||||
{"channel": DeliveryChannel.EMAIL, "enabled": True},
|
||||
{"channel": DeliveryChannel.BROWSER, "enabled": True},
|
||||
{"channel": DeliveryChannel.EMAIL, "is_enabled": True},
|
||||
{"channel": DeliveryChannel.BROWSER, "is_enabled": True},
|
||||
],
|
||||
}
|
||||
],
|
||||
|
|
@ -515,8 +631,8 @@ class ChannelPreferenceTests(TestCase):
|
|||
{
|
||||
"code": "approved",
|
||||
"channels": [
|
||||
{"channel": DeliveryChannel.EMAIL, "enabled": False},
|
||||
{"channel": DeliveryChannel.BROWSER, "enabled": True},
|
||||
{"channel": DeliveryChannel.EMAIL, "is_enabled": False},
|
||||
{"channel": DeliveryChannel.BROWSER, "is_enabled": True},
|
||||
],
|
||||
}
|
||||
],
|
||||
|
|
@ -524,20 +640,20 @@ class ChannelPreferenceTests(TestCase):
|
|||
self.assertFalse(
|
||||
NotificationChannelPreference.objects.get(
|
||||
user=self.user,
|
||||
type=self.kind,
|
||||
notification_type=self.kind,
|
||||
channel=DeliveryChannel.EMAIL,
|
||||
).enabled
|
||||
).is_enabled
|
||||
)
|
||||
self.assertEqual(channel_preferences(self.user)[0]["channels"][0]["enabled"], False)
|
||||
self.assertEqual(channel_preferences(self.user)[0]["channels"][0]["is_enabled"], False)
|
||||
with self.assertRaisesMessage(ValueError, "not allowed"):
|
||||
save_channel_preferences(
|
||||
self.user,
|
||||
[{"code": "approved", "channels": [{"channel": DeliveryChannel.MAX, "enabled": True}]}],
|
||||
[{"code": "approved", "channels": [{"channel": DeliveryChannel.MAX, "is_enabled": True}]}],
|
||||
)
|
||||
with self.assertRaises(NotificationType.DoesNotExist):
|
||||
save_channel_preferences(
|
||||
self.user,
|
||||
[{"code": hidden.code, "channels": [{"channel": DeliveryChannel.EMAIL, "enabled": False}]}],
|
||||
[{"code": hidden.code, "channels": [{"channel": DeliveryChannel.EMAIL, "is_enabled": False}]}],
|
||||
)
|
||||
|
||||
|
||||
|
|
@ -550,7 +666,7 @@ class GroupingAndIdempotencyTests(TestCase):
|
|||
name="Comment",
|
||||
group=self.group,
|
||||
channels=[DeliveryChannel.BROWSER, DeliveryChannel.EMAIL],
|
||||
verb="Comment",
|
||||
title="Comment",
|
||||
)
|
||||
|
||||
def _recipients(self):
|
||||
|
|
@ -568,18 +684,18 @@ class GroupingAndIdempotencyTests(TestCase):
|
|||
with patch("notify.tasks.deliver_notification.apply_async") as apply_async:
|
||||
with self.captureOnCommitCallbacks(execute=True):
|
||||
first = create_notification(
|
||||
type=self.kind,
|
||||
object_id="post-9",
|
||||
verb="Новый комментарий",
|
||||
notification_type=self.kind,
|
||||
content_object=self.user,
|
||||
title="Новый комментарий",
|
||||
group=True,
|
||||
recipients=self._recipients(),
|
||||
)
|
||||
self.assertEqual(apply_async.call_count, 1)
|
||||
with self.captureOnCommitCallbacks(execute=True):
|
||||
second = create_notification(
|
||||
type=self.kind,
|
||||
object_id="post-9",
|
||||
verb="Ещё комментарий",
|
||||
notification_type=self.kind,
|
||||
content_object=self.user,
|
||||
title="Ещё комментарий",
|
||||
group=True,
|
||||
recipients=self._recipients(),
|
||||
)
|
||||
|
|
@ -587,21 +703,48 @@ class GroupingAndIdempotencyTests(TestCase):
|
|||
self.assertEqual(second.pk, first.pk)
|
||||
second.refresh_from_db()
|
||||
self.assertEqual(second.data["count"], 2)
|
||||
self.assertEqual(second.verb, "Ещё комментарий")
|
||||
self.assertEqual(second.title, "Ещё комментарий")
|
||||
self.assertEqual(Notification.objects.count(), 1)
|
||||
self.assertEqual(second.recipients.count(), 2)
|
||||
|
||||
def test_group_does_not_collapse_across_models_with_the_same_pk(self):
|
||||
other_model = Group.objects.create(name="same-pk", pk=self.user.pk)
|
||||
first = create_notification(
|
||||
notification_type=self.kind,
|
||||
content_object=self.user,
|
||||
group=True,
|
||||
recipients=[{"user": self.user, "channels": [{"channel": DeliveryChannel.BROWSER}]}],
|
||||
)
|
||||
second = create_notification(
|
||||
notification_type=self.kind,
|
||||
content_object=other_model,
|
||||
group=True,
|
||||
recipients=[{"user": self.user, "channels": [{"channel": DeliveryChannel.BROWSER}]}],
|
||||
)
|
||||
self.assertNotEqual(second.pk, first.pk)
|
||||
self.assertEqual(second.object_id, first.object_id)
|
||||
self.assertNotEqual(second.content_type_id, first.content_type_id)
|
||||
|
||||
def test_unsaved_content_object_is_rejected(self):
|
||||
with self.assertRaisesMessage(ValueError, "content_object must be saved"):
|
||||
create_notification(
|
||||
notification_type=self.kind,
|
||||
content_object=User(username="ghost"),
|
||||
recipients=[{"user": self.user, "channels": [{"channel": DeliveryChannel.BROWSER}]}],
|
||||
)
|
||||
self.assertEqual(Notification.objects.count(), 0)
|
||||
|
||||
def test_group_starts_over_after_the_browser_row_is_read(self):
|
||||
first = create_notification(
|
||||
type=self.kind,
|
||||
object_id="post-9",
|
||||
notification_type=self.kind,
|
||||
content_object=self.user,
|
||||
group=True,
|
||||
recipients=self._recipients(),
|
||||
)
|
||||
first.recipients.filter(delivery_channel=DeliveryChannel.BROWSER).update(unread=False)
|
||||
first.recipients.filter(channel=DeliveryChannel.BROWSER).update(unread=False)
|
||||
second = create_notification(
|
||||
type=self.kind,
|
||||
object_id="post-9",
|
||||
notification_type=self.kind,
|
||||
content_object=self.user,
|
||||
group=True,
|
||||
recipients=[{"user": self.user, "channels": [{"channel": DeliveryChannel.BROWSER}]}],
|
||||
)
|
||||
|
|
@ -610,35 +753,246 @@ class GroupingAndIdempotencyTests(TestCase):
|
|||
|
||||
def test_same_idempotency_key_returns_the_original_row(self):
|
||||
first = create_notification(
|
||||
type=self.kind,
|
||||
notification_type=self.kind,
|
||||
idempotency_key="approved:9",
|
||||
recipients=[{"user": self.user, "channels": [{"channel": DeliveryChannel.BROWSER}]}],
|
||||
)
|
||||
second = create_notification(
|
||||
type=self.kind,
|
||||
verb="Other",
|
||||
notification_type=self.kind,
|
||||
title="Other",
|
||||
show_popup=True,
|
||||
idempotency_key="approved:9",
|
||||
group=True,
|
||||
object_id="post-9",
|
||||
content_object=self.user,
|
||||
recipients=self._recipients(),
|
||||
)
|
||||
self.assertEqual(second.pk, first.pk)
|
||||
self.assertEqual(second.verb, first.verb)
|
||||
self.assertEqual(second.title, first.title)
|
||||
self.assertEqual(Notification.objects.count(), 1)
|
||||
self.assertEqual(second.recipients.count(), 1)
|
||||
self.assertEqual(second.data, {})
|
||||
self.assertFalse(second.show_popup)
|
||||
|
||||
def test_idempotency_conflict_returns_the_existing_row(self):
|
||||
existing = Notification.objects.create(verb="Hi", idempotency_key="race")
|
||||
existing = Notification.objects.create(title="Hi", idempotency_key="race")
|
||||
with patch(
|
||||
"notify.services._existing_idempotent",
|
||||
side_effect=[None, existing],
|
||||
):
|
||||
returned = create_notification(
|
||||
verb="Hi",
|
||||
title="Hi",
|
||||
idempotency_key="race",
|
||||
recipients=[{"user": self.user, "channels": [{"channel": DeliveryChannel.BROWSER}]}],
|
||||
)
|
||||
self.assertEqual(returned.pk, existing.pk)
|
||||
self.assertEqual(Notification.objects.count(), 1)
|
||||
self.assertEqual(existing.recipients.count(), 0)
|
||||
|
||||
|
||||
class RecipientGroupTests(TestCase):
|
||||
def setUp(self):
|
||||
self.alice = User.objects.create_user("alice", "alice@example.com", "pass")
|
||||
self.bob = User.objects.create_user("bob", "bob@example.com", "pass")
|
||||
self.inactive = User.objects.create_user("cara", "cara@example.com", "pass", is_active=False)
|
||||
self.registrars = Group.objects.create(name="registrars")
|
||||
self.registrars.user_set.add(self.alice, self.bob, self.inactive)
|
||||
self.category = NotificationGroup.objects.create(code="appointment", name="Appointments")
|
||||
self.kind = NotificationType.objects.create(
|
||||
code="appointment.online",
|
||||
name="Online",
|
||||
group=self.category,
|
||||
channels=[DeliveryChannel.BROWSER, DeliveryChannel.EMAIL],
|
||||
title="Online",
|
||||
is_configurable=True,
|
||||
is_enabled_by_default=True,
|
||||
)
|
||||
NotificationTypeRecipientGroup.objects.create(
|
||||
notification_type=self.kind,
|
||||
group_name="registrars",
|
||||
is_configurable=False,
|
||||
)
|
||||
|
||||
def test_group_expands_to_active_members_and_copies_the_target(self):
|
||||
patient = NotificationGroup.objects.create(code="patient", name="Patient")
|
||||
notification = create_notification(
|
||||
notification_type=self.kind,
|
||||
recipients=[
|
||||
{
|
||||
"group": self.registrars,
|
||||
"content_object": patient,
|
||||
"channels": [
|
||||
{"channel": DeliveryChannel.BROWSER},
|
||||
{"channel": DeliveryChannel.EMAIL, "target": {"email": "desk@example.com"}},
|
||||
],
|
||||
}
|
||||
],
|
||||
)
|
||||
rows = {
|
||||
(row.user_id, row.channel): row
|
||||
for row in notification.recipients.all()
|
||||
}
|
||||
self.assertEqual(
|
||||
set(rows),
|
||||
{
|
||||
(self.alice.pk, DeliveryChannel.BROWSER),
|
||||
(self.alice.pk, DeliveryChannel.EMAIL),
|
||||
(self.bob.pk, DeliveryChannel.BROWSER),
|
||||
(self.bob.pk, DeliveryChannel.EMAIL),
|
||||
},
|
||||
)
|
||||
self.assertEqual(rows[(self.alice.pk, DeliveryChannel.EMAIL)].target, {"email": "desk@example.com"})
|
||||
self.assertEqual(rows[(self.bob.pk, DeliveryChannel.EMAIL)].target, {"email": "desk@example.com"})
|
||||
self.assertEqual(rows[(self.alice.pk, DeliveryChannel.BROWSER)].content_object, patient)
|
||||
|
||||
def test_group_name_empty_group_and_mixed_recipient_are_rejected(self):
|
||||
notification = create_notification(
|
||||
title="Hi",
|
||||
recipients=[{"group": "registrars", "channels": [{"channel": DeliveryChannel.BROWSER}]}],
|
||||
)
|
||||
self.assertEqual(notification.recipients.count(), 2)
|
||||
|
||||
Group.objects.create(name="empty")
|
||||
with self.assertRaisesMessage(ValueError, "no active users"):
|
||||
create_notification(
|
||||
title="Hi",
|
||||
recipients=[{"group": "empty", "channels": [{"channel": DeliveryChannel.BROWSER}]}],
|
||||
)
|
||||
with self.assertRaises(Group.DoesNotExist):
|
||||
create_notification(
|
||||
title="Hi",
|
||||
recipients=[{"group": "missing", "channels": [{"channel": DeliveryChannel.BROWSER}]}],
|
||||
)
|
||||
with self.assertRaisesMessage(ValueError, "both user and group"):
|
||||
create_notification(
|
||||
title="Hi",
|
||||
recipients=[
|
||||
{
|
||||
"user": self.alice,
|
||||
"group": "registrars",
|
||||
"channels": [{"channel": DeliveryChannel.BROWSER}],
|
||||
}
|
||||
],
|
||||
)
|
||||
with self.assertRaisesMessage(ValueError, "Duplicate"):
|
||||
create_notification(
|
||||
title="Hi",
|
||||
recipients=[
|
||||
{"user": self.alice, "channels": [{"channel": DeliveryChannel.BROWSER}]},
|
||||
{"group": "registrars", "channels": [{"channel": DeliveryChannel.BROWSER}]},
|
||||
],
|
||||
)
|
||||
self.assertEqual(Notification.objects.count(), 1)
|
||||
|
||||
def test_omitted_recipients_use_browser_groups_and_reject_a_target_channel(self):
|
||||
browser_only = NotificationType.objects.create(
|
||||
code="appointment.arrived",
|
||||
name="Arrived",
|
||||
group=self.category,
|
||||
channels=[DeliveryChannel.BROWSER],
|
||||
title="Arrived",
|
||||
)
|
||||
NotificationTypeRecipientGroup.objects.create(
|
||||
notification_type=browser_only,
|
||||
group_name="registrars",
|
||||
)
|
||||
notification = create_notification(notification_type=browser_only)
|
||||
self.assertEqual(
|
||||
set(notification.recipients.values_list("user_id", flat=True)),
|
||||
{self.alice.pk, self.bob.pk},
|
||||
)
|
||||
|
||||
with self.assertRaisesMessage(ValueError, "requires a target"):
|
||||
create_notification(notification_type=self.kind)
|
||||
self.assertEqual(Notification.objects.count(), 1)
|
||||
|
||||
def test_locked_group_ignores_a_disabled_preference(self):
|
||||
NotificationChannelPreference.objects.create(
|
||||
user=self.alice,
|
||||
notification_type=self.kind,
|
||||
channel=DeliveryChannel.BROWSER,
|
||||
is_enabled=False,
|
||||
)
|
||||
self.registrars.user_set.remove(self.bob)
|
||||
doctors = Group.objects.create(name="doctors")
|
||||
doctors.user_set.add(self.bob)
|
||||
NotificationTypeRecipientGroup.objects.create(
|
||||
notification_type=self.kind,
|
||||
group_name="doctors",
|
||||
is_configurable=True,
|
||||
is_enabled_by_default=False,
|
||||
)
|
||||
|
||||
locked = create_notification(
|
||||
notification_type=self.kind,
|
||||
recipients=[{"user": self.alice, "channels": [{"channel": DeliveryChannel.BROWSER}]}],
|
||||
)
|
||||
self.assertEqual(locked.recipients.get().user, self.alice)
|
||||
|
||||
with self.assertRaisesMessage(ValueError, "No recipients to deliver"):
|
||||
create_notification(
|
||||
notification_type=self.kind,
|
||||
recipients=[{"user": self.bob, "channels": [{"channel": DeliveryChannel.BROWSER}]}],
|
||||
)
|
||||
|
||||
nurses = Group.objects.create(name="nurses")
|
||||
nurses.user_set.add(self.bob)
|
||||
NotificationTypeRecipientGroup.objects.create(
|
||||
notification_type=self.kind,
|
||||
group_name="nurses",
|
||||
is_configurable=True,
|
||||
is_enabled_by_default=True,
|
||||
)
|
||||
opened = create_notification(
|
||||
notification_type=self.kind,
|
||||
recipients=[{"group": "doctors", "channels": [{"channel": DeliveryChannel.BROWSER}]}],
|
||||
)
|
||||
self.assertEqual(opened.recipients.get().user, self.bob)
|
||||
|
||||
NotificationChannelPreference.objects.create(
|
||||
user=self.bob,
|
||||
notification_type=self.kind,
|
||||
channel=DeliveryChannel.BROWSER,
|
||||
is_enabled=False,
|
||||
)
|
||||
self.registrars.user_set.add(self.bob)
|
||||
forced = create_notification(
|
||||
notification_type=self.kind,
|
||||
recipients=[{"user": self.bob, "channels": [{"channel": DeliveryChannel.BROWSER}]}],
|
||||
)
|
||||
self.assertEqual(forced.recipients.get().user, self.bob)
|
||||
|
||||
def test_preferences_hide_and_reject_a_locked_group(self):
|
||||
self.assertEqual(
|
||||
[item["code"] for item in channel_preferences(self.alice)],
|
||||
[],
|
||||
)
|
||||
self.registrars.user_set.remove(self.bob)
|
||||
self.assertEqual(channel_preferences(self.bob)[0]["code"], "appointment.online")
|
||||
with self.assertRaisesMessage(ValueError, "cannot be disabled"):
|
||||
save_channel_preferences(
|
||||
self.alice,
|
||||
[
|
||||
{
|
||||
"code": "appointment.online",
|
||||
"channels": [{"channel": DeliveryChannel.BROWSER, "is_enabled": False}],
|
||||
}
|
||||
],
|
||||
)
|
||||
self.assertFalse(NotificationChannelPreference.objects.filter(user=self.alice).exists())
|
||||
|
||||
doctors = Group.objects.create(name="doctors")
|
||||
doctors.user_set.add(self.bob)
|
||||
NotificationTypeRecipientGroup.objects.create(
|
||||
notification_type=self.kind,
|
||||
group_name="doctors",
|
||||
is_configurable=True,
|
||||
is_enabled_by_default=False,
|
||||
)
|
||||
shown = channel_preferences(self.bob)[0]["channels"]
|
||||
self.assertEqual(
|
||||
shown,
|
||||
[
|
||||
{"channel": DeliveryChannel.BROWSER, "is_enabled": False},
|
||||
{"channel": DeliveryChannel.EMAIL, "is_enabled": False},
|
||||
],
|
||||
)
|
||||
|
|
|
|||
|
|
@ -0,0 +1,155 @@
|
|||
from datetime import timedelta
|
||||
from unittest.mock import patch
|
||||
|
||||
from django.contrib.auth import get_user_model
|
||||
from django.test import TestCase
|
||||
from django.utils import timezone
|
||||
|
||||
from notify.models import DeliveryChannel
|
||||
from notify.services import create_notification, unread_count
|
||||
from notify.signals import browser_notification_created, unread_count_changed
|
||||
|
||||
User = get_user_model()
|
||||
|
||||
|
||||
class UnreadCountSignalTests(TestCase):
|
||||
def setUp(self):
|
||||
self.user = User.objects.create_user("alice", "alice@example.com", "pass")
|
||||
self.client.force_login(self.user)
|
||||
self.users = []
|
||||
unread_count_changed.connect(self._record)
|
||||
|
||||
def tearDown(self):
|
||||
unread_count_changed.disconnect(self._record)
|
||||
|
||||
def _record(self, sender, user, **kwargs):
|
||||
self.users.append(user.pk)
|
||||
|
||||
def test_browser_create_read_and_delete(self):
|
||||
with self.captureOnCommitCallbacks(execute=True):
|
||||
notification = create_notification(
|
||||
title="Hi",
|
||||
recipients=[{"user": self.user, "channels": [{"channel": DeliveryChannel.BROWSER}]}],
|
||||
)
|
||||
self.assertEqual(self.users, [self.user.pk])
|
||||
|
||||
recipient = notification.recipients.get()
|
||||
with self.captureOnCommitCallbacks(execute=True):
|
||||
recipient.make_read()
|
||||
self.assertEqual(self.users, [self.user.pk, self.user.pk])
|
||||
|
||||
with self.captureOnCommitCallbacks(execute=True):
|
||||
recipient.make_unread()
|
||||
with self.captureOnCommitCallbacks(execute=True):
|
||||
notification.delete()
|
||||
self.assertEqual(self.users, [self.user.pk, self.user.pk, self.user.pk, self.user.pk])
|
||||
|
||||
def test_email_does_not_send(self):
|
||||
with patch("notify.tasks.deliver_notification.apply_async"):
|
||||
with self.captureOnCommitCallbacks(execute=True):
|
||||
create_notification(
|
||||
title="Mail",
|
||||
recipients=[
|
||||
{
|
||||
"user": self.user,
|
||||
"channels": [{"channel": DeliveryChannel.EMAIL, "target": {"email": "alice@example.com"}}],
|
||||
}
|
||||
],
|
||||
)
|
||||
self.assertEqual(self.users, [])
|
||||
|
||||
def test_make_all_read_sends_once(self):
|
||||
with self.captureOnCommitCallbacks(execute=True):
|
||||
create_notification(
|
||||
title="One",
|
||||
recipients=[{"user": self.user, "channels": [{"channel": DeliveryChannel.BROWSER}]}],
|
||||
)
|
||||
create_notification(
|
||||
title="Two",
|
||||
recipients=[{"user": self.user, "channels": [{"channel": DeliveryChannel.BROWSER}]}],
|
||||
)
|
||||
self.users.clear()
|
||||
with self.captureOnCommitCallbacks(execute=True):
|
||||
response = self.client.post("/api/make-all-read/")
|
||||
self.assertEqual(response.status_code, 200)
|
||||
self.assertEqual(self.users, [self.user.pk])
|
||||
|
||||
|
||||
class UnreadCountTests(TestCase):
|
||||
def setUp(self):
|
||||
self.user = User.objects.create_user("alice", "alice@example.com", "pass")
|
||||
self.other = User.objects.create_user("bob", "bob@example.com", "pass")
|
||||
|
||||
def test_counts_open_unread_browser_notifications(self):
|
||||
create_notification(
|
||||
title="Hi",
|
||||
recipients=[{"user": self.user, "channels": [{"channel": DeliveryChannel.BROWSER}]}],
|
||||
)
|
||||
read = create_notification(
|
||||
title="Read",
|
||||
recipients=[{"user": self.user, "channels": [{"channel": DeliveryChannel.BROWSER}]}],
|
||||
)
|
||||
read.recipients.get().make_read()
|
||||
create_notification(
|
||||
title="Old",
|
||||
expires_at=timezone.now() - timedelta(minutes=1),
|
||||
recipients=[{"user": self.user, "channels": [{"channel": DeliveryChannel.BROWSER}]}],
|
||||
)
|
||||
with patch("notify.tasks.deliver_notification.apply_async"):
|
||||
create_notification(
|
||||
title="Mail",
|
||||
recipients=[
|
||||
{
|
||||
"user": self.user,
|
||||
"channels": [{"channel": DeliveryChannel.EMAIL, "target": {"email": "alice@example.com"}}],
|
||||
}
|
||||
],
|
||||
)
|
||||
create_notification(
|
||||
title="Other",
|
||||
recipients=[{"user": self.other, "channels": [{"channel": DeliveryChannel.BROWSER}]}],
|
||||
)
|
||||
|
||||
self.assertEqual(unread_count(self.user), 1)
|
||||
self.assertEqual(unread_count(self.other), 1)
|
||||
self.assertEqual(unread_count(None), 0)
|
||||
|
||||
|
||||
class BrowserNotificationCreatedTests(TestCase):
|
||||
def setUp(self):
|
||||
self.user = User.objects.create_user("alice", "alice@example.com", "pass")
|
||||
self.events = []
|
||||
browser_notification_created.connect(self._record)
|
||||
|
||||
def tearDown(self):
|
||||
browser_notification_created.disconnect(self._record)
|
||||
|
||||
def _record(self, sender, user, notification, **kwargs):
|
||||
self.events.append((user.pk, notification.pk))
|
||||
|
||||
def test_browser_create_sends_user_and_notification(self):
|
||||
with self.captureOnCommitCallbacks(execute=True):
|
||||
notification = create_notification(
|
||||
title="Hi",
|
||||
recipients=[{"user": self.user, "channels": [{"channel": DeliveryChannel.BROWSER}]}],
|
||||
)
|
||||
self.assertEqual(self.events, [(self.user.pk, notification.pk)])
|
||||
|
||||
self.events.clear()
|
||||
with self.captureOnCommitCallbacks(execute=True):
|
||||
notification.recipients.get().make_read()
|
||||
self.assertEqual(self.events, [])
|
||||
|
||||
def test_email_does_not_send(self):
|
||||
with patch("notify.tasks.deliver_notification.apply_async"):
|
||||
with self.captureOnCommitCallbacks(execute=True):
|
||||
create_notification(
|
||||
title="Mail",
|
||||
recipients=[
|
||||
{
|
||||
"user": self.user,
|
||||
"channels": [{"channel": DeliveryChannel.EMAIL, "target": {"email": "alice@example.com"}}],
|
||||
}
|
||||
],
|
||||
)
|
||||
self.assertEqual(self.events, [])
|
||||
811
uv.lock
811
uv.lock
|
|
@ -2,7 +2,8 @@ version = 1
|
|||
revision = 3
|
||||
requires-python = ">=3.10"
|
||||
resolution-markers = [
|
||||
"python_full_version >= '3.11'",
|
||||
"python_full_version >= '3.11' and platform_python_implementation == 'PyPy'",
|
||||
"python_full_version >= '3.11' and platform_python_implementation != 'PyPy'",
|
||||
"python_full_version < '3.11'",
|
||||
]
|
||||
|
||||
|
|
@ -48,6 +49,97 @@ wheels = [
|
|||
{ url = "https://files.pythonhosted.org/packages/fe/ba/e2081de779ca30d473f21f5b30e0e737c438205440784c7dfc81efc2b029/async_timeout-5.0.1-py3-none-any.whl", hash = "sha256:39e3809566ff85354557ec2398b55e096c8364bacac9405a7a1fa429e77fe76c", size = 6233, upload-time = "2024-11-06T16:41:37.9Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "attrs"
|
||||
version = "26.1.0"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/9a/8e/82a0fe20a541c03148528be8cac2408564a6c9a0cc7e9171802bc1d26985/attrs-26.1.0.tar.gz", hash = "sha256:d03ceb89cb322a8fd706d4fb91940737b6642aa36998fe130a9bc96c985eff32", size = 952055, upload-time = "2026-03-19T14:22:25.026Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/64/b4/17d4b0b2a2dc85a6df63d1157e028ed19f90d4cd97c36717afef2bc2f395/attrs-26.1.0-py3-none-any.whl", hash = "sha256:c647aa4a12dfbad9333ca4e71fe62ddc36f4e63b2d260a37a8b83d2f043ac309", size = 67548, upload-time = "2026-03-19T14:22:23.645Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "autobahn"
|
||||
version = "24.4.2"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
resolution-markers = [
|
||||
"python_full_version < '3.11'",
|
||||
]
|
||||
dependencies = [
|
||||
{ name = "cryptography" },
|
||||
{ name = "hyperlink" },
|
||||
{ name = "setuptools" },
|
||||
{ name = "txaio", version = "25.9.2", source = { registry = "https://pypi.org/simple" } },
|
||||
]
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/38/f2/8dffb3b709383ba5b47628b0cc4e43e8d12d59eecbddb62cfccac2e7cf6a/autobahn-24.4.2.tar.gz", hash = "sha256:a2d71ef1b0cf780b6d11f8b205fd2c7749765e65795f2ea7d823796642ee92c9", size = 482700, upload-time = "2024-08-02T09:26:48.241Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/13/ee/a6475f39ef6c6f41c33da6b193e0ffd2c6048f52e1698be6253c59301b72/autobahn-24.4.2-py2.py3-none-any.whl", hash = "sha256:c56a2abe7ac78abbfb778c02892d673a4de58fd004d088cd7ab297db25918e81", size = 666965, upload-time = "2024-08-02T09:26:44.274Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "autobahn"
|
||||
version = "26.11.1"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
resolution-markers = [
|
||||
"python_full_version >= '3.11' and platform_python_implementation == 'PyPy'",
|
||||
"python_full_version >= '3.11' and platform_python_implementation != 'PyPy'",
|
||||
]
|
||||
dependencies = [
|
||||
{ name = "cbor2", version = "5.9.0", source = { registry = "https://pypi.org/simple" }, marker = "platform_python_implementation == 'PyPy'" },
|
||||
{ name = "cbor2", version = "6.2.0.post2", source = { registry = "https://pypi.org/simple" }, marker = "platform_python_implementation != 'PyPy'" },
|
||||
{ name = "cffi" },
|
||||
{ name = "cryptography" },
|
||||
{ name = "hyperlink" },
|
||||
{ name = "msgpack", marker = "platform_python_implementation == 'CPython'" },
|
||||
{ name = "txaio", version = "26.6.1", source = { registry = "https://pypi.org/simple" } },
|
||||
{ name = "u-msgpack-python", marker = "platform_python_implementation != 'CPython'" },
|
||||
{ name = "ujson" },
|
||||
]
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/08/15/694ed91f8f28d8c74b424a8a80208d4f221c12ae5d2fbee4d5041cdf1d0d/autobahn-26.11.1.tar.gz", hash = "sha256:1a081ca27ad5a0a04d3c7ca07b2caa6d324b8004383e36ae6eede1d5053e23b0", size = 14334101, upload-time = "2026-11-04T02:43:25.026Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/f9/8d/98d31f834b05e6461567467e48abe82e46f46abc7ba0861f29e7c87856d8/autobahn-26.11.1-cp311-cp311-macosx_15_0_arm64.whl", hash = "sha256:72d28d94d67f2b472909b88b96633c3bfa9c90dc2251ead9c65d65506a58e136", size = 2032098, upload-time = "2026-11-04T02:42:30.444Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/02/a2/95eac7953c8d4ca5a9ef131a7b0c6ccf703590481b3edaec0acf35a29283/autobahn-26.11.1-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:ee562672964ccaa3c750ed5f1e8414c8e7363acc54a974c6a9f16d72f67739c8", size = 2116109, upload-time = "2026-11-04T02:42:32.579Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/4c/f0/b5c1c9184d4881faabddefa770301ba4857c0cd7d321ef9e677e3fbfcf52/autobahn-26.11.1-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:0cc9c4dd15a3a40f121d1c6132aaff7cc790e66c0ba2bac7abcea314f5af590d", size = 2288028, upload-time = "2026-11-04T02:42:34.057Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/13/65/07708474fa2bc760668b3f7ea43f3d03c19e6b322719b1d4d5026e9fdddb/autobahn-26.11.1-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:20dfce803b8d33e9a12c2ec8f8c3a9869aad979483c8ac75d7daadc0c551c2e9", size = 3211161, upload-time = "2026-11-04T02:42:35.917Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/d2/91/3f8e9e924f8fefe46f566ceb6c4ee22cfd42036e369825f3b3516815b0f3/autobahn-26.11.1-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:10a3616aaa02cbaef48029090b47a4e80dc9ca51592b166c5c4352f3116cec18", size = 3438480, upload-time = "2026-11-04T02:42:37.433Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/8c/48/24147631f8256cf8779ec26db40eed2a0b645daee52706d6513ffd0d4d5b/autobahn-26.11.1-cp311-cp311-win_amd64.whl", hash = "sha256:40acfbec2684bc4a81320276075c37d5cd2f44b2479f18af6755cc89d2551ada", size = 2215864, upload-time = "2026-11-04T02:42:39.17Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/95/2f/e0767c7a71710c182e008299d7ea22fb4101291ba376769443dcdf8b2607/autobahn-26.11.1-cp311-cp311-win_arm64.whl", hash = "sha256:a208943238cf0b00b20db5e749ee42ccf22a0cd0e36f6e914187aeeb5edccdf8", size = 2102081, upload-time = "2026-11-04T02:42:40.623Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/2a/1f/c711e1f1182ce5e9652951e8d908d669209129dba526cd14d826b921b3b4/autobahn-26.11.1-cp312-cp312-macosx_15_0_arm64.whl", hash = "sha256:afd95b43fc1a307712bb2aba52a9e60e4d08ae5b1d26a648af3bc6b0facd7dce", size = 2034959, upload-time = "2026-11-04T02:42:42.234Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ea/be/bc34ada00a6f0769ad45d6106c523b03d4048dbadd51964cf14fd50beb3b/autobahn-26.11.1-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:45dcecf43b246af7ee6f6e4864902780e996ffe3d11717fe90ef1352ec68d36d", size = 2116666, upload-time = "2026-11-04T02:42:43.905Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/d1/07/e8d0fe45f45b45408428989ba3440c1981b60919309109dcfd4be28207c1/autobahn-26.11.1-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:65cdbacf7bdc0e2f17dc166b7bf925b8c7e23e22131fd90baa9753c50cac7ad2", size = 2288620, upload-time = "2026-11-04T02:42:45.484Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/b4/9e/c386ddf9f609d2a67e952faa11d0ddc43d896f7abf9e60f16a3b273defed/autobahn-26.11.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:40f09407fed54bd045babb810b9ea1ccbce2d6257b26774e22ba0651e4f39872", size = 3211744, upload-time = "2026-11-04T02:42:47.178Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/df/50/7f326eb844af42b48862fa65c7685b98f12bf7a0255e7272a87c12b7959d/autobahn-26.11.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:1d43b415f232f8de7d6b16c17b76473254fb0496d9aa48204376f224609facaa", size = 3439287, upload-time = "2026-11-04T02:42:50.023Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/28/3e/4f6a3395843b495a1809e9e61e4e593652735e31d2d5d0be26aa60d00faf/autobahn-26.11.1-cp312-cp312-win_amd64.whl", hash = "sha256:5513671f6b4d5643220e5392e88cfc46d7e0e7799b9403e0bbd34722e904965f", size = 2213722, upload-time = "2026-11-04T02:42:51.682Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/de/d0/8f4e55cebe206bc25f135cbf35824c8bf06cbbe8054e121d730100800059/autobahn-26.11.1-cp312-cp312-win_arm64.whl", hash = "sha256:4c53ed4fff01b35e8a456b29cdf5e0ff4f059e50d897b6aa8ddcd4eabd15fea9", size = 2099808, upload-time = "2026-11-04T02:42:53.554Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/55/42/17f79d049f5d4e3cf3e22576f70b4055f0aa8eeae4e7bc6924bca82ba20e/autobahn-26.11.1-cp313-cp313-macosx_15_0_arm64.whl", hash = "sha256:b891aa0887bb13ee06f15e3a04f39286c08fb60b91de40cd5037f2fcaa3186cc", size = 2034963, upload-time = "2026-11-04T02:42:55.307Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/84/c0/628863f9983b24b4a00d4d38d19bf7a265e9be71d0e6ef239b76a78bd35e/autobahn-26.11.1-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:6f29930410be8cf63fe74ae31e6006efbacc9ae3d8e7e88471629bd88914167a", size = 2116640, upload-time = "2026-11-04T02:42:57.009Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/44/b3/dd5755cfb1c1d7adeac05e5da41752d23060bc112f17f5c00038d4a6465f/autobahn-26.11.1-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:880b288af815fb87f0024b1a748022e452bf91d616d0d0299c028a18c2415f06", size = 2288592, upload-time = "2026-11-04T02:42:58.696Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/71/70/268c359ceb313856565570a2b4e4b3cd532014c388dc6bfdd4acc6ef9cdc/autobahn-26.11.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:a41328dc9ce471921edee1b03543bb9e8abf486f125b5b7b85c64cc11666b9e4", size = 3211711, upload-time = "2026-11-04T02:43:00.233Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/4f/54/d44d32696d92bc80e01b1fb1824cf83d798cf16217b00c4c36bc9fd4bccf/autobahn-26.11.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:213260b6bbf6c2845a9fa5c39ee4601836c31c64fcc3caadc6bc7751f259dfc8", size = 3439261, upload-time = "2026-11-04T02:43:01.836Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/cb/bb/e6a058d1e54830b84b35321d22649ab6a730b284535cf8c82174264aa667/autobahn-26.11.1-cp313-cp313-win_amd64.whl", hash = "sha256:c5d2112d2847e98ef1acce8af8e601c80884d7f91c4e956d0185b6a5fb6e7df2", size = 2208577, upload-time = "2026-11-04T02:43:03.348Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/5e/cc/7274d2bbcd12657e8bf54071798c301a233b49602e84b252c471f93ca3f1/autobahn-26.11.1-cp313-cp313-win_arm64.whl", hash = "sha256:468373cbc1bfb798ff087f15badcb9f638eabdd8419b2bbf407f62ac9e91006f", size = 2094829, upload-time = "2026-11-04T02:43:04.888Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/1b/e9/64180047377d45b9427e1f7978240de2e374f12fffe3b0fdcdd61cbfbc51/autobahn-26.11.1-cp314-cp314-macosx_15_0_arm64.whl", hash = "sha256:59d2356f68773d42cdc5ff998dcc24a2541c6670ddcd046f07973ab657a4e4f4", size = 2021428, upload-time = "2026-11-04T02:43:06.392Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/a0/46/a86efaba2fb63b350e751cd2c97c462c796a93c7e9be6a44055125faba32/autobahn-26.11.1-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:2f8d767a2505072a0781f415461d4acc89767b9f0bc2f86cf2945d371e175379", size = 2116770, upload-time = "2026-11-04T02:43:07.96Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/95/97/d700bf925f97fd7f1b35d5abd16f0f09949df9ad746eba179d7dd05731f7/autobahn-26.11.1-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:d52950ba232c05aa3650ba161442ad90e505ad2827576b67e7e182584732e7b9", size = 2288758, upload-time = "2026-11-04T02:43:09.507Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/b1/78/4c1d1b47ae3310bee9010a72e257ab0f2dbd6acf3986e4a71af2986a40c6/autobahn-26.11.1-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:c04fa9b8e0737cdaa927585603026e2a7af170ad2c82f8ef35c82687ed000562", size = 3211922, upload-time = "2026-11-04T02:43:11.024Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/28/74/6e055799c98cbddc56212c294b4e2bff0e0d45ca4ce9470d076691f1fb41/autobahn-26.11.1-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:517487fd5656ae3cc78de86b466238097e8da56ad8fcb29be68ba2c969454b37", size = 3439330, upload-time = "2026-11-04T02:43:12.8Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/0e/78/7d35414bf2dfbcbdb63aa878125d1e9ef7ac8d0294ea13c68fe7186a7b92/autobahn-26.11.1-cp314-cp314-win_amd64.whl", hash = "sha256:a616f4b6ac1297aad3e9f7e16e97439dbe9a1d38440d5a0e9f5c866676c7c8d4", size = 2241150, upload-time = "2026-11-04T02:43:14.395Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/1a/5e/090e2f53c44de03af4b78ff736133f32571d6d3621687a4f5bb009a5278f/autobahn-26.11.1-cp314-cp314-win_arm64.whl", hash = "sha256:e6eb6e0c70eaf3d1977ee100c8621d41f75d54f2a1764827c8a30bfde04c2c4c", size = 2130019, upload-time = "2026-11-04T02:43:15.994Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/b0/5f/52894b3f154eb2f1e1fb591b53c4524505a699aae40e9a5d28ae79066ac9/autobahn-26.11.1-pp311-pypy311_pp73-macosx_15_0_arm64.whl", hash = "sha256:526090d42adde868da16c631457ebd0275956882423a06c03d22667e600aae62", size = 2016315, upload-time = "2026-11-04T02:43:17.485Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/29/61/1f825bc2aa736859c4e1107ea686705684bad98bdc0cb1f46857f6ff3320/autobahn-26.11.1-pp311-pypy311_pp73-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:b124509121731a34bc63d7e75dd6e6de4f2c7625b456644080dd5956a9b7d784", size = 690324, upload-time = "2026-11-04T02:43:19.188Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/12/5a/9f296ad5f8ff6063b79e18501783b4f6472e18a9143402670b442687b620/autobahn-26.11.1-pp311-pypy311_pp73-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:42159614aacc78a207280c210e3f07993b8337348954f176d827e47f73dce551", size = 2241168, upload-time = "2026-11-04T02:43:21.119Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/6b/d5/812e65e5140aa089d7cae54d282fcfcb5dd28072b7484fbffd2942dc9530/autobahn-26.11.1-pp311-pypy311_pp73-win_amd64.whl", hash = "sha256:bb8e4f6c72d415cac7386db3819f779a659a4e61dac9e6278c043df53623bc35", size = 2214450, upload-time = "2026-11-04T02:43:22.948Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "automat"
|
||||
version = "25.4.16"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/e3/0f/d40bbe294bbf004d436a8bcbcfaadca8b5140d39ad0ad3d73d1a8ba15f14/automat-25.4.16.tar.gz", hash = "sha256:0017591a5477066e90d26b0e696ddc143baafd87b588cfac8100bc6be9634de0", size = 129977, upload-time = "2025-04-16T20:12:16.002Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/02/ff/1175b0b7371e46244032d43a56862d0af455823b5280a50c63d99cc50f18/automat-25.4.16-py3-none-any.whl", hash = "sha256:04e9bce696a8d5671ee698005af6e5a9fa15354140a87f4870744604dcdd3ba1", size = 42842, upload-time = "2025-04-16T20:12:14.447Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "billiard"
|
||||
version = "4.2.4"
|
||||
|
|
@ -57,6 +149,129 @@ wheels = [
|
|||
{ url = "https://files.pythonhosted.org/packages/cb/87/8bab77b323f16d67be364031220069f79159117dd5e43eeb4be2fef1ac9b/billiard-4.2.4-py3-none-any.whl", hash = "sha256:525b42bdec68d2b983347ac312f892db930858495db601b5836ac24e6477cde5", size = 87070, upload-time = "2025-11-30T13:28:47.016Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "cbor2"
|
||||
version = "5.9.0"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
resolution-markers = [
|
||||
"python_full_version >= '3.11' and platform_python_implementation == 'PyPy'",
|
||||
]
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/bd/cb/09939728be094d155b5d4ac262e39877875f5f7e36eea66beb359f647bd0/cbor2-5.9.0.tar.gz", hash = "sha256:85c7a46279ac8f226e1059275221e6b3d0e370d2bb6bd0500f9780781615bcea", size = 111231, upload-time = "2026-03-22T15:56:50.638Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/e0/bf/12b337e5354e47f6378da18989480c0c1e2cc5fe9b865e6fab45d6332aa6/cbor2-5.9.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:55bea0dd9a7d354e35f4e5fe58ceab393e76962713749dc3a0a64a0e5d19545e", size = 70577, upload-time = "2026-03-22T15:55:54.174Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/45/7b/74c524ce81c1ddc6c44b4865028ffb7d3a8e7ae653b1061650375a28cbb1/cbor2-5.9.0-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:3095dc49e75572841a9534cbfdabc2a17487ea4ee33341436abc4a7ac7245a3a", size = 261074, upload-time = "2026-03-22T15:55:55.654Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/4b/97/c496c71422b2ca18ff2acc5f49e8c45cd7294b7df1359eccec78021b428e/cbor2-5.9.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:25bec7beb2089465382b1be72e78667fe9090598800826559c3e3008cf0db743", size = 255498, upload-time = "2026-03-22T15:55:57.256Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/c2/40/9bd7e66dba7aea674a440e004faea406de42c49aeac23453954b67768532/cbor2-5.9.0-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:cc5efec69055c3c470997935d95762be7e4bfd1248d88fb1a33bb7e0f45712e9", size = 255683, upload-time = "2026-03-22T15:55:58.721Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/b3/d1/fa3e158dbe4c08091495b720c604624b285bc272afdbcfac2150725d955b/cbor2-5.9.0-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:420d2490c7836c81151b4bd591c35cffc55391e33e7e333c50fda391bcea7d31", size = 250798, upload-time = "2026-03-22T15:55:59.953Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/7c/16/3186084b441c4b0caebfaaa2c66a57bde82ceaacd469570c77c8030b6b95/cbor2-5.9.0-cp310-cp310-win_amd64.whl", hash = "sha256:d1a21c006760f95acd9509cc5a7d15d6fc82e58f721f94fa9039b4e77189a6e5", size = 69436, upload-time = "2026-03-22T15:56:01.466Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/36/1f/57d00cd13e0f9391bcd616795aa78409210a7464570fe21e3b9cd42eb5a7/cbor2-5.9.0-cp310-cp310-win_arm64.whl", hash = "sha256:08388ea54195738602b4c4999966bcaef6f0b17d293c9658658409d9fff96f57", size = 65312, upload-time = "2026-03-22T15:56:02.804Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/43/aa/317c7118b8dda4c9563125c1a12c70c5b41e36677964a49c72b1aac061ec/cbor2-5.9.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:0485d3372fc832c5e16d4eb45fa1a20fc53e806e6c29a1d2b0d3e176cedd52b9", size = 70578, upload-time = "2026-03-22T15:56:03.835Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/31/43/fe29b1f897770011a5e7497f4523c2712282ee4a6cbf775ea6383fb7afb9/cbor2-5.9.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:a9d6e4e0f988b0e766509a8071975a8ee99f930e14a524620bf38083106158d2", size = 268738, upload-time = "2026-03-22T15:56:05.222Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/0a/1a/e494568f3d8aafbcdfe361df44c3bcf5cdab5183e25ea08e3d3f9fcf4075/cbor2-5.9.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:5326336f633cc89dfe543c78829c16c3a6449c2c03277d1ddba99086c3323363", size = 262571, upload-time = "2026-03-22T15:56:06.411Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/42/2e/92acd6f87382fd44a34d9d7e85cc45372e6ba664040b72d1d9df648b25d0/cbor2-5.9.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:5e702b02d42a5ace45425b595ffe70fe35aebaf9a3cdfdc2c758b6189c744422", size = 262356, upload-time = "2026-03-22T15:56:08.236Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/3f/68/52c039a28688baeeb78b0be7483855e6c66ea05884a937444deede0c87b8/cbor2-5.9.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:2372d357d403e7912f104ff085950ffc82a5854d6d717f1ca1ce16a40a0ef5a7", size = 257604, upload-time = "2026-03-22T15:56:09.835Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/5b/e4/10d96a7f73ed9227090ce6e3df5d73329eb6a267dab7d5b989e6fbf6c504/cbor2-5.9.0-cp311-cp311-win_amd64.whl", hash = "sha256:1d02b65f070fd726bdc310d927228975bb655d155bf059b6eb7cacefb3dca86f", size = 69388, upload-time = "2026-03-22T15:56:11.28Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/d4/c6/eea5829aa5a649db540f47ea35f4bf2313383d28246f0cbc50432cfad6b3/cbor2-5.9.0-cp311-cp311-win_arm64.whl", hash = "sha256:837754ece9052b3f607047e1741e5f852a538aa2b0ee3db11c82a8fa11804aa4", size = 65315, upload-time = "2026-03-22T15:56:12.326Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ee/39/72d8a5a4b06565561ec28f4fcb41aff7bb77f51705c01f00b8254a2aca4f/cbor2-5.9.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:1f223dffb1bcdd2764665f04c1152943d9daa4bc124a576cd8dee1cad4264313", size = 71223, upload-time = "2026-03-22T15:56:13.68Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/09/fd/7ddf3d3153b54c69c3be77172b8d9aa3a9d74f62a7fbde614d53eaeed9a4/cbor2-5.9.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:ae6c706ac1d85a0b3cb3395308fd0c4d55e3202b4760773675957e93cdff45fc", size = 287865, upload-time = "2026-03-22T15:56:14.813Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/db/9d/7ede2cc42f9bb4260492e7d29d2aab781eacbbcfb09d983de1e695077199/cbor2-5.9.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:4cd43d8fc374b31643b2830910f28177a606a7bc84975a62675dd3f2e320fc7b", size = 288246, upload-time = "2026-03-22T15:56:16.113Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ce/9d/588ebc7c5bc5843f609b05fe07be8575c7dec987735b0bbc908ac9c1264a/cbor2-5.9.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:4aa07b392cc3d76fb31c08a46a226b58c320d1c172ff3073e864409ced7bc50f", size = 280214, upload-time = "2026-03-22T15:56:17.519Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/f7/a1/6fc8f4b15c6a27e7fbb7966c30c2b4b18c274a3221fa2f5e6235502d34bc/cbor2-5.9.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:971d425b3a23b75953d8853d5f9911bdeefa09d759ee3b5e6b07b5ff3cbd9073", size = 282162, upload-time = "2026-03-22T15:56:18.975Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/cf/20/9a22cfe08be16ddfeef2542cf4eeed1b29f3f57ddbba0b42f7e0bb8331fd/cbor2-5.9.0-cp312-cp312-win_amd64.whl", hash = "sha256:34a6cb15e6ab6a8eae94ad2041731cd3ef786af43a8df99f847969af5b902ee7", size = 70049, upload-time = "2026-03-22T15:56:20.502Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/c6/9e/695f92d09006614034e25a9f5b10620f3b219f79c1bec3c37b7c6f27a7a9/cbor2-5.9.0-cp312-cp312-win_arm64.whl", hash = "sha256:7d1ddc4541e7367ac58c2470cc0df847f7137167fe4f5729e2d3cc0b993d7da4", size = 65382, upload-time = "2026-03-22T15:56:21.526Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/81/c5/4901e21a8afe9448fd947b11e8f383903207cd6dd0800e5f5a386838de5b/cbor2-5.9.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:fbb06f34aa645b4deca66643bba3d400d20c15312d1fe88d429be60c1ab50f27", size = 71284, upload-time = "2026-03-22T15:56:22.836Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/1b/10/df643a381aebc3f05486de4813662bc58accb640fc3275cb276a75e89694/cbor2-5.9.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:ac684fe195c39821fca70d18afbf748f728aefbfbf88456018d299e559b8cae0", size = 287682, upload-time = "2026-03-22T15:56:24.024Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/c6/0c/8aa6b766059ae4a0ca1ec3ff96fe3823a69a7be880dba2e249f7fbe2700b/cbor2-5.9.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:2a54fbb32cb828c214f7f333a707e4aec61182e7efdc06ea5d9596d3ecee624a", size = 288009, upload-time = "2026-03-22T15:56:25.305Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/74/07/6236bc25c183a9cf7e8062e5dddf9eae9b0b14ebf14a58a69fe5a1e872c6/cbor2-5.9.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:4753a6d1bc71054d9179557bc65740860f185095ccb401d46637fff028a5b3ec", size = 280437, upload-time = "2026-03-22T15:56:26.479Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/4e/0a/84328d23c3c68874ac6497edb9b1900579a1028efa54734df3f1762bbc15/cbor2-5.9.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:380e534482b843e43442b87d8777a7bf9bed20cb7526f89b780c3400f617304b", size = 282247, upload-time = "2026-03-22T15:56:28.644Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/9b/f6/89b4627e09d028c8e5fcaf7cb55f225c33ce6e037ec1844e65d02bcfa945/cbor2-5.9.0-cp313-cp313-win_amd64.whl", hash = "sha256:dcf0f695873e5c94bd072d6af8698e72b8fb7f7a18f37e0bced1041b7111a6cf", size = 70089, upload-time = "2026-03-22T15:56:29.801Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/e2/7c/efadcd5f0102db692490e4e206988a2f98d39a09912090db497a2b800885/cbor2-5.9.0-cp313-cp313-win_arm64.whl", hash = "sha256:f7c9751a9611601ab326d8f5837f01379195bbf06175fb4effeb552140e7c9e8", size = 65466, upload-time = "2026-03-22T15:56:30.823Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/08/7d/9ccc36d10ef96e6038e48046ebe1ce35a1e7814da0e1e204d09e6ef09b8d/cbor2-5.9.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:23606d31ba1368bd1b6602e3020ee88fe9523ca80e8630faf6b2fc904fd84560", size = 71500, upload-time = "2026-03-22T15:56:31.876Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/70/e1/a6cca2cc72e13f00030c6a649f57ae703eb2c620806ab70c40db8eab33fa/cbor2-5.9.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:0322296b9d52f55880e300ba8ba09ecf644303b99b51138bbb1c0fb644fa7c3e", size = 286953, upload-time = "2026-03-22T15:56:33.292Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/08/3c/24cd5ef488a957d90e016f200a3aad820e4c2f85edd61c9fe4523007a1ee/cbor2-5.9.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:422817286c1d0ce947fb2f7eca9212b39bddd7231e8b452e2d2cc52f15332dba", size = 285454, upload-time = "2026-03-22T15:56:34.703Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/a4/35/dca96818494c0ba47cdd73e8d809b27fa91f8fa0ce32a068a09237687454/cbor2-5.9.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:9a4907e0c3035bb8836116854ed8e56d8aef23909d601fa59706320897ec2551", size = 279441, upload-time = "2026-03-22T15:56:35.888Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/a4/44/d3362378b16e53cf7e535a3f5aed8476e2109068154e24e31981ef5bde9e/cbor2-5.9.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:fb7afe77f8d269e42d7c4b515c6fd14f1ccc0625379fb6829b269f493d16eddd", size = 279673, upload-time = "2026-03-22T15:56:37.08Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/43/d1/3533a697e5842fff7c2f64912eb251f8dcab3a8b5d88e228d6eebc3b5021/cbor2-5.9.0-cp314-cp314-win_amd64.whl", hash = "sha256:86baf870d4c0bfc6f79de3801f3860a84ab76d9c8b0abb7f081f2c14c38d79d3", size = 71940, upload-time = "2026-03-22T15:56:38.366Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ff/e2/c6ba75f3fb25dfa15ab6999cc8709c821987e9ed8e375d7f58539261bcb9/cbor2-5.9.0-cp314-cp314-win_arm64.whl", hash = "sha256:7221483fad0c63afa4244624d552abf89d7dfdbc5f5edfc56fc1ff2b4b818975", size = 67639, upload-time = "2026-03-22T15:56:39.39Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/42/ff/b83492b096fbef26e9cb62c1a4bf2d3cef579ea7b33138c6c37c4ae66f67/cbor2-5.9.0-py3-none-any.whl", hash = "sha256:27695cbd70c90b8de5c4a284642c2836449b14e2c2e07e3ffe0744cb7669a01b", size = 24627, upload-time = "2026-03-22T15:56:48.847Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "cbor2"
|
||||
version = "6.2.0.post2"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
resolution-markers = [
|
||||
"python_full_version >= '3.11' and platform_python_implementation != 'PyPy'",
|
||||
]
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/cd/eb/e2ef5f241f15131babf4854032953b97c88b2c2700d7712a0ba8f57cbe81/cbor2-6.2.0.post2.tar.gz", hash = "sha256:3b08ba9f3a556186515000949d478e47e6d55322f9d86bdaef5b4e3d27d48298", size = 101466, upload-time = "2026-11-02T10:44:01.627Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/0a/2e/39042119b9a995868e81c7141b581f83f1d58b0abccf58d647124d63b71f/cbor2-6.2.0.post2-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:774cd0d1b1e86e7bdd132b6dd892911a09d54e78263940ef29883c6f238e44bf", size = 419916, upload-time = "2026-11-02T10:42:32.699Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/45/41/e843113881a5be23d4dc9eb88d64c4d09e750873246401963f5972c175ac/cbor2-6.2.0.post2-cp310-cp310-manylinux_2_28_aarch64.whl", hash = "sha256:6a779fb9dcfa546eadeda9c76ed93ecb1c39b60fc9158d4520b41fe0be7bf7e6", size = 463753, upload-time = "2026-11-02T10:42:34.282Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/7c/95/6164cf346788d4c2100135e8c62b610cbe7fe320a4c9e968e7f4a8ecb8b2/cbor2-6.2.0.post2-cp310-cp310-manylinux_2_28_x86_64.whl", hash = "sha256:f89024cf09358c4c90b269cb8a708e91aede62e2f1408849980e945dbd4fae0b", size = 473335, upload-time = "2026-11-02T10:42:35.515Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/d2/6d/8e27d7004e489a520998f8e5cd4c8134959b06f34b6b2512bcd17f9706e4/cbor2-6.2.0.post2-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:3d1ec758dd80387d8241149a4ef13532ccac8bf4929f42f008712c82070e0bdf", size = 531222, upload-time = "2026-11-02T10:42:37.286Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/b5/5d/95617a18b0146f4316184fc7de4854f020dab1f449bed98fc715cc2d8368/cbor2-6.2.0.post2-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:bd1908920d85ae5f1c31e6358f1ffe5c2068a12efaec749b3055adfd4ae46a18", size = 542366, upload-time = "2026-11-02T10:42:38.587Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/1f/da/48722835913ca57f0f87592a2fa62bcd8193733b0860b69b219806395d50/cbor2-6.2.0.post2-cp310-cp310-win32.whl", hash = "sha256:4223cbe40ef4fb403f6b473b201ce740636efad2c1be6525a52965975a971ec4", size = 288040, upload-time = "2026-11-02T10:42:40.211Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/17/b6/2bdb76b7ca08d8a75f70f3066c8a82b4b214fc3ca2ff18e8094d3a79d0fa/cbor2-6.2.0.post2-cp310-cp310-win_amd64.whl", hash = "sha256:837eb5199cae529db4e6585296a4a22dd924fe8c3b658b81eb6ce07476859667", size = 312708, upload-time = "2026-11-02T10:42:41.422Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/14/76/0969b5898c0d146c7d57343810736d966fa24080690077b64c7f2cb24646/cbor2-6.2.0.post2-cp310-cp310-win_arm64.whl", hash = "sha256:6db37a909eeff4a5e9c04398b5d54f374c4c825468610b3a3f8871d7d8874982", size = 304501, upload-time = "2026-11-02T10:42:42.877Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/47/39/127253c51da1bdbfd4c8a8d6711472d331039b05139a229566884fe5e750/cbor2-6.2.0.post2-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:5afd32b27561431695cf5cb67f8d817fec463edccf9cb4472890f2ed43c5e7bd", size = 418385, upload-time = "2026-11-02T10:42:44.122Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/4d/ce/8759c4ff42ede9576bd97b7e5efa09dedb07972d1b57fb2e6dbaf606f843/cbor2-6.2.0.post2-cp311-cp311-manylinux_2_28_aarch64.whl", hash = "sha256:852fbe0524e66edcbabbc8bb74fef61db9cfc14aa3f5e8918390739b5464a47c", size = 461395, upload-time = "2026-11-02T10:42:45.447Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/c5/08/c8adfa4fb9eef2c26a7e3b1c5f31f5122cd910aeefa2e52e289a366025e0/cbor2-6.2.0.post2-cp311-cp311-manylinux_2_28_x86_64.whl", hash = "sha256:e8118fa456d10ec14496134077ac1f364785287417209c4b697292e44f2b86a3", size = 471167, upload-time = "2026-11-02T10:42:46.838Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ea/9a/8f5f43963a1a5af2831a29eb16dbfeda4fc55f5765a2fda93d5041b302f7/cbor2-6.2.0.post2-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:309de9051a08ba688633ab909dd271134cc30a427ba81b940ecdb6af617152a2", size = 529667, upload-time = "2026-11-02T10:42:48.118Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/56/db/9c0da5dbc58c4865aa81f89585d6fc897b7dd02d88077333ba394f64b39e/cbor2-6.2.0.post2-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:5dff9d7b818c3e1506bcde72d52dc0d8b37873e14b0c61708987a865cbdf8856", size = 539847, upload-time = "2026-11-02T10:42:49.669Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/14/6a/abdf060dabbab0d190c544e2a061e5de438d2f98b065dbf444cad38b2faf/cbor2-6.2.0.post2-cp311-cp311-win32.whl", hash = "sha256:7a77b50552c91215e30d281afa2b17cf69b57b74a8942495631f2e16f0b368ac", size = 286609, upload-time = "2026-11-02T10:42:51.174Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/8f/ee/738ea887c7970468be39ea1710a048e54c9228f8ee76412227a7a972a48e/cbor2-6.2.0.post2-cp311-cp311-win_amd64.whl", hash = "sha256:452b4cbf55c0c74d2ca24352cccff81529f56402c85fbd808d284c6982832548", size = 311313, upload-time = "2026-11-02T10:42:52.751Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/0b/38/4e7c309ceca0f705bd7700a0efdba76c5716922eb8b1e9d14e86484cd51c/cbor2-6.2.0.post2-cp311-cp311-win_arm64.whl", hash = "sha256:c86900037bf522dbe8045dcc493c9871f3ca91117ec9ea727cbf10e997b6ef31", size = 303887, upload-time = "2026-11-02T10:42:54.213Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/2b/cb/959cf9ad0fdd593fce5e13ab4b9558e0c66f803ebb3e31cd497319b2e7af/cbor2-6.2.0.post2-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:d0bedb969ace5134695c124e57fd5f929b7560149ecaa50c2e1621bfe725768a", size = 409892, upload-time = "2026-11-02T10:42:55.462Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/b2/6f/4f5d30b9b16874e7e616c551c98558fb53da83c2c9ed09830b9273310606/cbor2-6.2.0.post2-cp312-cp312-manylinux_2_28_aarch64.whl", hash = "sha256:4243cbd63745508b0c6e927e08e224e01215bf8d72a0bd9db4528c048836e099", size = 454274, upload-time = "2026-11-02T10:42:56.825Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/20/5d/2b85458ab73728ab3a6240545fc1dee25146897a67b6bea3bfca84cccf29/cbor2-6.2.0.post2-cp312-cp312-manylinux_2_28_x86_64.whl", hash = "sha256:1b3146a840c3adbf1b4fed5a200bf8f984d6af0a220e0326d714d12d1c1f223b", size = 465279, upload-time = "2026-11-02T10:42:58.253Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/88/59/b0f0cdc32cfec841c34e8a475a02650b98fa17973e1029a3245461af7b9c/cbor2-6.2.0.post2-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:31253b207ba86fa10ccee10796f35ad8650fddab1617e866b5bb23fe325220d5", size = 520968, upload-time = "2026-11-02T10:42:59.616Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/6b/11/d0f48aecd2e0111501788c50153f12c51eb3c999d77eddb185f452ec7ea1/cbor2-6.2.0.post2-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:cf00e8c193a91ee49430dbf2373b266d8f7cba43c6fe38249c933199eae2bad5", size = 532988, upload-time = "2026-11-02T10:43:00.962Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/d1/38/5cca74e142e473683ac0ed20b992447e3f9a0fb441551e5c0551a18bf07b/cbor2-6.2.0.post2-cp312-cp312-win32.whl", hash = "sha256:3215661579de363098fd7e61b3b65d49dfce4a8a6e398d8f55604326c29836ca", size = 282611, upload-time = "2026-11-02T10:43:02.269Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/7a/3a/f4969da720e442a1b2ad38f0e5d68a7d2a023e020e8277ded7f3225fcf68/cbor2-6.2.0.post2-cp312-cp312-win_amd64.whl", hash = "sha256:f995d59a6d35f3604c12272d1a8ceb1580b3342bf57dfbd4a8c0238dcc767c8f", size = 307187, upload-time = "2026-11-02T10:43:03.576Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ad/9b/43ddf820920e33b35077cce7d415fd3e48d81c50026533043166ad1aaaac/cbor2-6.2.0.post2-cp312-cp312-win_arm64.whl", hash = "sha256:3058ab833e8fe9f0db1874aaad8f25ca614c5da61b88cc138a4e7264d8445673", size = 297246, upload-time = "2026-11-02T10:43:04.854Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/38/41/cfc073edb1e8ef1bfa1463554954c644f87b1d099fed8fb5ca69f5462263/cbor2-6.2.0.post2-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:afc3226f1d0276850bbd8035060a909ae97fdf16089c97ff6f4b1caf77e494d4", size = 410053, upload-time = "2026-11-02T10:43:06.228Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/74/9c/a4c67d3af02d46249385a5641d7f23f4078eb38c22b9fa99b3e1c10640a5/cbor2-6.2.0.post2-cp313-cp313-manylinux_2_28_aarch64.whl", hash = "sha256:655c9aed6def7c9b156037f83d043c66ee2dce4eda9f9b21789ed25ae0566d61", size = 454328, upload-time = "2026-11-02T10:43:07.512Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/0f/0a/c238f6991ee7c49acd6431557fd8be55dac12432bf4929cfad6bbbfc9129/cbor2-6.2.0.post2-cp313-cp313-manylinux_2_28_x86_64.whl", hash = "sha256:37b70af61f39e3a6909d209c3ddefa0ba6eb2a820556d175af520bc875e2f784", size = 465107, upload-time = "2026-11-02T10:43:08.903Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/2a/a2/4b2bcbda92da7846c0331f3b254a923bbcda0cb9c907ebe33f8680ed9424/cbor2-6.2.0.post2-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:a086ca156d73228f9542e6047afa6f219d3fdd0757b12bb05b426acfc7fe9cef", size = 520984, upload-time = "2026-11-02T10:43:10.201Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/2b/6e/9f662938a1e600665ed0092e76fb5d690a8165dd558c7b8eb589d775dd6a/cbor2-6.2.0.post2-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:00fbaec20dbd89486b416054a51605cac871f4bfd5ba2b47f7a62127dee8c154", size = 533312, upload-time = "2026-11-02T10:43:11.905Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/05/f8/fd74318a052f784c5146a363be613143bd41ccef71570f809f66805429af/cbor2-6.2.0.post2-cp313-cp313-win32.whl", hash = "sha256:13cd7ef901b94bdf95d6d58effffcb92c05f20c3f0216c873c2afe680e21af9e", size = 283325, upload-time = "2026-11-02T10:43:13.219Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/30/34/eca3791bafed7e232e59d77f94c4055ae24fb009d6165e7fcaf7d59ad63a/cbor2-6.2.0.post2-cp313-cp313-win_amd64.whl", hash = "sha256:57365df7f246434a2bb6c960e1d1d53a0281ac11a02b76698192f15e297bbf51", size = 307410, upload-time = "2026-11-02T10:43:14.57Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/66/d3/6ffc4d781a9bea3a5c15f152b6df9371d617e4734d70e5834e22125f55ae/cbor2-6.2.0.post2-cp313-cp313-win_arm64.whl", hash = "sha256:7efd29afb6ffef0386cc3001fc75e89eddaca24413ed294bb6678e057fd44560", size = 296684, upload-time = "2026-11-02T10:43:15.821Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/3b/b5/bcf3789492e6b0a6b7f5655895c35c8e33426a9ce04e50a058e18a725d00/cbor2-6.2.0.post2-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:a29997f0da334ecbe142303be85b38722e76ef6a62ac5d901f72eefa7b1763bf", size = 413416, upload-time = "2026-11-02T10:43:17.062Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/1b/55/0c95b124857a87d25a09a5d25da55169120feb0f906794b3e2b148e2ef6a/cbor2-6.2.0.post2-cp314-cp314-manylinux_2_28_aarch64.whl", hash = "sha256:23a7325ccfcc3c3b9f0fb6244d0e05da737f602d9463a1e3e2167c34c26e0c5d", size = 457387, upload-time = "2026-11-02T10:43:18.302Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/65/64/df79ceb6dbd22d749c5505648a7071094df4c1e01d1bc6576ed5734bab64/cbor2-6.2.0.post2-cp314-cp314-manylinux_2_28_x86_64.whl", hash = "sha256:c0381e6ca6f5288741c404adab876492c58f004df9659feb8684691f2dade14f", size = 467771, upload-time = "2026-11-02T10:43:19.687Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/8d/d0/617c593f19bc6221fbee8a677d5e2e3d9a705f482e1c23af7ed48fa14618/cbor2-6.2.0.post2-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:c6cd5e37dda7cef056c6f50d27e8e894a83bbf84c02227344cc276a8b25b5d68", size = 524350, upload-time = "2026-11-02T10:43:20.931Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/bc/42/acbff3eda3a53a1cb60c8d6563cc35c2c61588725d43e4b30ee52e4cc87f/cbor2-6.2.0.post2-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:ee005999ae3563d83fa1521b417439ebdf8c528d70066b2eeb7770dc79375477", size = 536611, upload-time = "2026-11-02T10:43:22.277Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/a3/ef/2f1b1993901eb0efb6848ee65da6e651f4019724f1fe602ddc1d66296a1b/cbor2-6.2.0.post2-cp314-cp314-pyemscripten_2026_0_wasm32.whl", hash = "sha256:9f71bb1fcb09e083034beff6c1b367855a84c76d284fd4f90c2fffe5a0c7fe42", size = 166841, upload-time = "2026-11-02T10:43:23.616Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/8d/b8/f76cf7e08b2a509747c4803783b961d9e417b25e27817481c89dcaf54db4/cbor2-6.2.0.post2-cp314-cp314-win32.whl", hash = "sha256:0bfbe0958811f9623333a32b4be3b35db2d800c28f73cbb830aefb78ef79471b", size = 292168, upload-time = "2026-11-02T10:43:24.826Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/4c/de/8b3f85517416d3fa26cbe43087a853143065120eed533c38f6a78354a605/cbor2-6.2.0.post2-cp314-cp314-win_amd64.whl", hash = "sha256:8b71e2e43dd9e63cff7bd314a0bb4835b15d5267d49d05f90c49ee9f4d7973ce", size = 320922, upload-time = "2026-11-02T10:43:26.088Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/58/51/b156ff19c2de38665a8daed87c1dba8061cb819aae7d7a68144b5cb89df1/cbor2-6.2.0.post2-cp314-cp314-win_arm64.whl", hash = "sha256:8be232b0502e072bbaec06e746b022143da30f611b534fa1f6d27a76807fa880", size = 309735, upload-time = "2026-11-02T10:43:27.31Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/7a/2b/e77c276b72555360d0723fa8999485c3c9fe8ff7533e1049bfd31f9f4054/cbor2-6.2.0.post2-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:c905a401824cdb2bf2afd77ec011c17beceba9207e60b2265305a2527bfabfc1", size = 411195, upload-time = "2026-11-02T10:43:28.634Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ed/e1/d50fc47b3438cf7f6c388a8977162e858806b9d60c09fdb6039b7be46c02/cbor2-6.2.0.post2-cp314-cp314t-manylinux_2_28_aarch64.whl", hash = "sha256:f0fd282530ca49ee55f4d897b47c65b8392d9b5a5b2987c60ccdf42056940b9e", size = 453528, upload-time = "2026-11-02T10:43:30.083Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/66/ac/3a9b2b124967e2baf8e0780e00a934a70929f2daba66b4a772b5f283902b/cbor2-6.2.0.post2-cp314-cp314t-manylinux_2_28_x86_64.whl", hash = "sha256:a825e586a2c402af1e84738321b1d0cb8dd3f907d1b65cd72e57eb76cbccf4a1", size = 469079, upload-time = "2026-11-02T10:43:31.401Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/53/37/af2f4932c65a9f4c5f3a97462b10a2e3303e7565567cbff10b2eb511043c/cbor2-6.2.0.post2-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:36496a217b1d9ce655a9076733d6276a94581a23aa01231b58c9eb67b25def3e", size = 518932, upload-time = "2026-11-02T10:43:32.933Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/33/93/f11fd3d59b88c28b4d8a55797bcf19c0c82600ff1615d1ae9048e84fd76a/cbor2-6.2.0.post2-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:481906113928de1f1e48b6e9cc7a082fc09bda951b98c1e832a7bbac703ab085", size = 536778, upload-time = "2026-11-02T10:43:34.286Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/85/47/297c010441791c7226f89aa1763a2264510e1c7285eaa34d6ac96ab1d5da/cbor2-6.2.0.post2-cp314-cp314t-win32.whl", hash = "sha256:24b856fe8b9b3df63c840994f4506e96a02f3c1aa3fff475616ccfdb9eb661b0", size = 289908, upload-time = "2026-11-02T10:43:36.254Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/f5/19/6bd0bf7ea32ecc8ef25bf53370c1fd0e511acc2d405e270982fa445e9153/cbor2-6.2.0.post2-cp314-cp314t-win_amd64.whl", hash = "sha256:c88b659f9b4eec23769b5c53eede764da799f5b94b4d9135b17dd67a2369380a", size = 322564, upload-time = "2026-11-02T10:43:37.605Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/1b/a7/a53e3138f4fab96372347c5326cf6c69578e93c2d71216d179066ca12b6e/cbor2-6.2.0.post2-cp314-cp314t-win_arm64.whl", hash = "sha256:2905fd9d00e193309d4f95d7dd51c60a36c41ccfe0b5bdf5cb1789b43a56d01d", size = 310669, upload-time = "2026-11-02T10:43:38.836Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/5d/00/4614784a25072c9fefa91570fc4004775e6843500958b1eb177e82a405e7/cbor2-6.2.0.post2-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:a15c93a015edc5fd7fe451b427d921c07c23a159000bf51b07f1a5a1c265bedf", size = 404564, upload-time = "2026-11-02T10:43:40.127Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/56/ad/f4bb47fed39c25105099e864c242aa05c0ac178e061231fef0dce05ad6e0/cbor2-6.2.0.post2-cp315-cp315-manylinux_2_28_aarch64.whl", hash = "sha256:6a79e7ec2518caa62af31981b53e91200e550779df9db942a21a1aed49ba6100", size = 448077, upload-time = "2026-11-02T10:43:41.39Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/f5/84/cc22f8a136b5b543068243386cbc562dda4cc5ecac8b75b57dcf68352719/cbor2-6.2.0.post2-cp315-cp315-manylinux_2_28_x86_64.whl", hash = "sha256:7f520e4f8373b399e1d269c4c2ff64702515435478aea3cdf557b6e5b29ff04a", size = 462074, upload-time = "2026-11-02T10:43:42.87Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/7c/7d/cb402ef8517a3df9c9eff61dad0c9e84817fb0cd3ffcaf7a8b7027f23eb0/cbor2-6.2.0.post2-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:fbc9fecafcfad9e3804e7dff223a837458c7af421bfd2c66c3b3bf1cfc05ae0b", size = 515252, upload-time = "2026-11-02T10:43:44.212Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/2a/87/e8cb987ea9311e3d8c61a1f7f2ae6443c2aabfa8c069d9bf4c1bf30c1459/cbor2-6.2.0.post2-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:586699c24e8714ad188b0c08c8d028a687edc23b728c85ec1c65a34ba17e8c40", size = 529459, upload-time = "2026-11-02T10:43:45.535Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/9a/af/f3df267828fe32abcbc1f66b03214c501babfb5b67e06ee2b7bd48b8e442/cbor2-6.2.0.post2-cp315-cp315-win32.whl", hash = "sha256:4f22f0f45926896c0cf2e4b4ad174707dbcde0070f6a906f81fe0297d50ec036", size = 284741, upload-time = "2026-11-02T10:43:46.828Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/f8/74/209fcf261ac97fb70b58cd6aab9e36a13005891bd9a354ba3eaa3e4a6e3c/cbor2-6.2.0.post2-cp315-cp315-win_amd64.whl", hash = "sha256:a3bb9b2e1459aa9f2831980fbac432189c93f0dca9fb29d3b0d094a76b18ed96", size = 312633, upload-time = "2026-11-02T10:43:47.979Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/2f/4c/fa19e15ac3e3e1e449626d9a30f9b9d31b249312ebec8b13992b91ad8fda/cbor2-6.2.0.post2-cp315-cp315-win_arm64.whl", hash = "sha256:7f0b842204b57964f30879c79bca919123c1407c46bf035bfae71db25e80d62e", size = 302438, upload-time = "2026-11-02T10:43:49.231Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ce/3d/0dd56b06bd382db39451a515fadfa2eebcc44cff8bfb8c9b490d1cf002a1/cbor2-6.2.0.post2-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:6d0fba36e7face5a80de4b268086b95c592538d6c70236ee0306254995ea1eec", size = 402278, upload-time = "2026-11-02T10:43:50.395Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/97/84/d40c8fbad03b3ddec6eb289166417fed7591f7cdabbfa98f9f369cee9c4e/cbor2-6.2.0.post2-cp315-cp315t-manylinux_2_28_aarch64.whl", hash = "sha256:f155de6e196fd4e3d3e8b54da633bfd6bb51d625badc69c4a11f6dd82f7fc0a9", size = 444147, upload-time = "2026-11-02T10:43:51.641Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/18/eb/d8bd66920e36813988445387de020aa329c6d6b443c7e5e42bee42f9c24a/cbor2-6.2.0.post2-cp315-cp315t-manylinux_2_28_x86_64.whl", hash = "sha256:996963a9fed7bb74e0227088b8577995631973cf1d24261087dacde6bbd8c056", size = 462334, upload-time = "2026-11-02T10:43:52.928Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/c9/c5/c93f310dde8269906831512e66f25f4277a609dd1d95c690dbf685821555/cbor2-6.2.0.post2-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:5bc8dac797a8899ca2786ec66696a97bb1da3ef1ab801965f06481453f258706", size = 510572, upload-time = "2026-11-02T10:43:54.262Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/7f/de/f6d1842a74667feefb770194e455eff124fb7de7fa55424f6c0f8f0b99e2/cbor2-6.2.0.post2-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:07fdecf13d4d9f6c11dba89401605d2610bc537f6857250f854f5d1ab0d37fad", size = 529310, upload-time = "2026-11-02T10:43:55.514Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ef/28/2e272ae7a530acc8a08eaa81b63983a9fc4d611685f20cbee78d00ffd104/cbor2-6.2.0.post2-cp315-cp315t-win32.whl", hash = "sha256:c558e3c5b38833ae70631ac117d2bf90a5b5c1800c69c8a57f3be95c92fc8305", size = 282672, upload-time = "2026-11-02T10:43:56.822Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/c2/b3/51a240e4044a1183a46aecdd91f330d8a82414af5a32eac0e7e4618fbd1b/cbor2-6.2.0.post2-cp315-cp315t-win_amd64.whl", hash = "sha256:2dddcf534c0aa3c34da45319fdf2161ac4715887fa607dc38e45d25630973f21", size = 314412, upload-time = "2026-11-02T10:43:58.152Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/62/1d/f0de8093b461f714b01c6f98ba29b8f891164de02bdb43b4d8cc5c3b923d/cbor2-6.2.0.post2-cp315-cp315t-win_arm64.whl", hash = "sha256:75a14e8edfd83fc82509c75aa9c57b3cd8b6387181dce8106aaa61b3a692ff2c", size = 302946, upload-time = "2026-11-02T10:44:00.247Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "celery"
|
||||
version = "5.6.3"
|
||||
|
|
@ -197,6 +412,24 @@ wheels = [
|
|||
{ url = "https://files.pythonhosted.org/packages/aa/29/35e016098c814cd93de9cd320c66b5bfba14dc6ecedd3cb518fa7c408c69/cffi-2.1.1-cp315-cp315t-win_arm64.whl", hash = "sha256:d18e5ac0f2f03f4f518d3e23db0f0cad7faa1da8620e9c09461d443bbf6e6692", size = 186360, upload-time = "2026-08-03T21:21:13.636Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "channels"
|
||||
version = "4.3.2"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
dependencies = [
|
||||
{ name = "asgiref" },
|
||||
{ name = "django" },
|
||||
]
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/74/92/b18d4bb54d14986a8b35215a1c9e6a7f9f4d57ca63ac9aee8290ebb4957d/channels-4.3.2.tar.gz", hash = "sha256:f2bb6bfb73ad7fb4705041d07613c7b4e69528f01ef8cb9fb6c21d9295f15667", size = 27023, upload-time = "2025-11-20T15:13:05.102Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/16/34/c32915288b7ef482377b6adc401192f98c6a99b3a145423d3b8aed807898/channels-4.3.2-py3-none-any.whl", hash = "sha256:fef47e9055a603900cf16cef85f050d522d9ac4b3daccf24835bd9580705c176", size = 31313, upload-time = "2025-11-20T15:13:02.357Z" },
|
||||
]
|
||||
|
||||
[package.optional-dependencies]
|
||||
daphne = [
|
||||
{ name = "daphne" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "charset-normalizer"
|
||||
version = "3.4.7"
|
||||
|
|
@ -360,6 +593,15 @@ wheels = [
|
|||
{ url = "https://files.pythonhosted.org/packages/d1/d6/3965ed04c63042e047cb6a3e6ed1a63a35087b6a609aa3a15ed8ac56c221/colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6", size = 25335, upload-time = "2022-10-25T02:36:20.889Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "constantly"
|
||||
version = "23.10.4"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/4d/6f/cb2a94494ff74aa9528a36c5b1422756330a75a8367bf20bd63171fc324d/constantly-23.10.4.tar.gz", hash = "sha256:aa92b70a33e2ac0bb33cd745eb61776594dc48764b06c35e0efd050b7f1c7cbd", size = 13300, upload-time = "2023-10-28T23:18:24.316Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/b8/40/c199d095151addf69efdb4b9ca3a4f20f70e20508d6222bffb9b76f58573/constantly-23.10.4-py3-none-any.whl", hash = "sha256:3fd9b4d1c3dc1ec9757f3c52aef7e53ad9323dbe39f51dfd4c43853b68dfa3f9", size = 13547, upload-time = "2023-10-28T23:18:23.038Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "cryptography"
|
||||
version = "50.0.2"
|
||||
|
|
@ -430,6 +672,21 @@ wheels = [
|
|||
{ url = "https://files.pythonhosted.org/packages/ca/1d/1271f287ff7170ddafc2aad36260c4eec20ccd2fea70f38455e9d56d427b/cryptography-50.0.2-pp311-pypy311_pp80-win_amd64.whl", hash = "sha256:7b75de3c8b3be1cdb1052747c929440c3eea46c1bc2cb8a6e3a48388e9b7b452", size = 3805376, upload-time = "2026-09-30T15:29:58.729Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "daphne"
|
||||
version = "4.2.3"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
dependencies = [
|
||||
{ name = "asgiref" },
|
||||
{ name = "autobahn", version = "24.4.2", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.11'" },
|
||||
{ name = "autobahn", version = "26.11.1", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.11'" },
|
||||
{ name = "twisted", extra = ["tls"] },
|
||||
]
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/ed/23/81d442839029f3f343e536650ee49dbfb5a444520876fadb5b5f19f33c02/daphne-4.2.3.tar.gz", hash = "sha256:1c458f81926b37301cadc8ec1b6316d9a5db53fba061fc4826610395fe5d5c81", size = 47898, upload-time = "2026-07-21T13:15:19.753Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/bd/0c/59e966c167880904f2e6a235c63169760dce58ba8062a7a153a6183539cc/daphne-4.2.3-py3-none-any.whl", hash = "sha256:34442c539a98111f4d8cac98a7204aeeb53811229bd96063e6fbe740e97078c9", size = 29715, upload-time = "2026-07-21T13:15:18.588Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "django"
|
||||
version = "5.0.6"
|
||||
|
|
@ -496,7 +753,8 @@ name = "dnspython"
|
|||
version = "2.9.0"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
resolution-markers = [
|
||||
"python_full_version >= '3.11'",
|
||||
"python_full_version >= '3.11' and platform_python_implementation == 'PyPy'",
|
||||
"python_full_version >= '3.11' and platform_python_implementation != 'PyPy'",
|
||||
]
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/ef/4a/50822184bd67cc6493f0fb6a880749158fcd31ab3fa07409acfd91f9fc85/dnspython-2.9.0.tar.gz", hash = "sha256:b44dc6b18f07a8b1c56676a19fbfdb5209415b046a9cece286baafa87ff3f7f1", size = 423560, upload-time = "2026-10-09T00:07:24.352Z" }
|
||||
wheels = [
|
||||
|
|
@ -529,6 +787,18 @@ wheels = [
|
|||
{ url = "https://files.pythonhosted.org/packages/8a/0e/97c33bf5009bdbac74fd2beace167cab3f978feb69cc36f1ef79360d6c4e/exceptiongroup-1.3.1-py3-none-any.whl", hash = "sha256:a7a39a3bd276781e98394987d3a5701d0c4edffb633bb7a5144577f82c773598", size = 16740, upload-time = "2025-11-21T23:01:53.443Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "hyperlink"
|
||||
version = "21.0.0"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
dependencies = [
|
||||
{ name = "idna" },
|
||||
]
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/3a/51/1947bd81d75af87e3bb9e34593a4cf118115a8feb451ce7a69044ef1412e/hyperlink-21.0.0.tar.gz", hash = "sha256:427af957daa58bc909471c6c40f74c5450fa123dd093fc53efd2e91d2705a56b", size = 140743, upload-time = "2021-01-08T05:51:20.972Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/6e/aa/8caf6a0a3e62863cbb9dab27135660acba46903b703e224f14f447e57934/hyperlink-21.0.0-py2.py3-none-any.whl", hash = "sha256:e6b14c37ecb73e89c77d78cdb4c2cc8f3fb59a885c5b3f819ff4ed80f25af1b4", size = 74638, upload-time = "2021-01-08T05:51:22.906Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "idna"
|
||||
version = "3.17"
|
||||
|
|
@ -538,6 +808,19 @@ wheels = [
|
|||
{ url = "https://files.pythonhosted.org/packages/de/a7/f76514cc40ad6234098ecdebda08732d75964776c51a42845b7da10649e2/idna-3.17-py3-none-any.whl", hash = "sha256:466e48829084efe2548012b855df21540b96f2e20e51bd124c851536556a592c", size = 65316, upload-time = "2026-05-28T14:32:37.035Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "incremental"
|
||||
version = "24.11.0"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
dependencies = [
|
||||
{ name = "packaging" },
|
||||
{ name = "tomli", marker = "python_full_version < '3.11'" },
|
||||
]
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/ef/3c/82e84109e02c492f382c711c58a3dd91badda6d746def81a1465f74dc9f5/incremental-24.11.0.tar.gz", hash = "sha256:87d3480dbb083c1d736222511a8cf380012a8176c2456d01ef483242abbbcf8c", size = 24000, upload-time = "2025-11-28T02:30:17.861Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/1d/55/0f4df2a44053867ea9cbea73fc588b03c55605cd695cee0a3d86f0029cb2/incremental-24.11.0-py3-none-any.whl", hash = "sha256:a34450716b1c4341fe6676a0598e88a39e04189f4dce5dc96f656e040baa10b3", size = 21109, upload-time = "2025-11-28T02:30:16.442Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "jinja2"
|
||||
version = "3.1.6"
|
||||
|
|
@ -717,9 +1000,107 @@ wheels = [
|
|||
{ url = "https://files.pythonhosted.org/packages/92/f9/ecbde7149e95b8a0f18e16d5d747f7dc06049d5da2e4f77f6f5e4a1f46a8/markupsafe-3.0.4-cp315-cp315t-win_arm64.whl", hash = "sha256:39dbacefc411633db5b4378b066a9aca70a3d7e2922c9e578d825f844026eeba", size = 14417, upload-time = "2026-10-02T23:06:56.246Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "msgpack"
|
||||
version = "1.2.4"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/cc/52/1ec7ead2c7528bf3d1db73e886fa4df10f9e6f0eb7854a448b7090cfcef7/msgpack-1.2.4.tar.gz", hash = "sha256:475c44e12f2a5de766a8448783f149c9b33f3f49b88953c6cd739a77d93c732c", size = 197764, upload-time = "2026-10-26T17:55:48.593Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/a3/d0/68889d2fcead0e81470cf28346a0fce80c451a3e7df9d74b0837f517027e/msgpack-1.2.4-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:2a4e141a9c91d1502cf98f9ca9f87af222c7857e2bfa49c1d81343157c38a28e", size = 91412, upload-time = "2026-10-26T17:53:31.652Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/cc/40/6d7a9b886df357e86f48c82470e281333477eea80aef23c33e87e8244ab5/msgpack-1.2.4-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:0626ea840cce866237c4da08439e9faa9cf79e6e4c62358978ee055961e8cff2", size = 90295, upload-time = "2026-10-26T17:53:33.169Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/86/16/bbb47e6732a2b812dca695dc8f6f5eed69219422ef946088295e1cb7f865/msgpack-1.2.4-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:25e1f2466c4ea0fb9b694a922f75eb92d7ce6262eda8cb8a5dada34fe990d486", size = 451054, upload-time = "2026-10-26T17:53:34.598Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/a8/f3/d215252efd2befcac420b01889bb17a816194a2c59501a15f7b1136f6591/msgpack-1.2.4-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:85b79ed643cfde70672152b3d1aee438ca647c5d2ffb7dba7226689ee9f6f44b", size = 461803, upload-time = "2026-10-26T17:53:36.231Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/d0/2d/5063d98e52b2e5252b8fcfaaa99438c1994bedac6ce7761fb9ded8bea810/msgpack-1.2.4-cp310-cp310-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:c1119e840d2c9164120f067740d99c9608d21d4ee9a172cf0f00dcafdf5624a4", size = 425474, upload-time = "2026-10-26T17:53:37.841Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/40/39/4077628b0c593d09d838de00f80eb726f66c20e83dfc3639b6a70dbfa80c/msgpack-1.2.4-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:ce22584c8b12aa7e424dab08c481afd95ad4bd3007829fd1767d28b4dbbc3167", size = 445334, upload-time = "2026-10-26T17:53:39.448Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/80/19/77a05f14d57c2dfeb85a627d7eb31d54b0393fcb0a4df1a1686d81a95fe4/msgpack-1.2.4-cp310-cp310-musllinux_1_2_riscv64.whl", hash = "sha256:8ab62a50cab6f786d49f3584914c1088b0ed8de76bfe675b26a60c7bec426380", size = 422467, upload-time = "2026-10-26T17:53:40.979Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/89/07/7861755bd759030c051ae238f578806e975dba0c9830be0c7f8998fbf26d/msgpack-1.2.4-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:429329799c72335b0e37be65964ec5b89062e57fe7ad9ee779b886df5e34ddaf", size = 463319, upload-time = "2026-10-26T17:53:42.767Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/c0/c9/873fbd651d977717a2eee58d5c9277a7999f615d997646c8fb1e68cdc3f0/msgpack-1.2.4-cp310-cp310-win32.whl", hash = "sha256:1cdb51af4f8f8d20af66ea9384883bf99b8ddb3cdf05f09eecda921646e15135", size = 68431, upload-time = "2026-10-26T17:53:44.134Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/7e/28/42c874635d34b35b76011dff6067f986a9c87d225c52347308e97b3409d1/msgpack-1.2.4-cp310-cp310-win_amd64.whl", hash = "sha256:d626fcacecaf3a5bfcd57e35709ce59a56a39cd4a3cd201d1b43c00d20bcbcda", size = 75871, upload-time = "2026-10-26T17:53:45.33Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/64/cb/a3bd4d234c0f2f7e646b9be259b801c5d6a35c97f93dded4f722e6b80acd/msgpack-1.2.4-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:1095b1ebcc8c9d3e70c51240b7160d8e9da66044e0a45c3ef8403d3a9ef0c5ad", size = 90935, upload-time = "2026-10-26T17:53:46.588Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/56/3c/fc87d06bdfc99b302f4379f0eb34bb8695b6ecd90b965652d0a3195d1acd/msgpack-1.2.4-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:a4b47ec7422bef149223786a87df80067ac65bfc7c0565e5cf1dfbdc40acee50", size = 90187, upload-time = "2026-10-26T17:53:48.151Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/05/a3/abebe12c1b589b7eeab60cb87dd5eb398fcf549bdafca8c30d8d73e48493/msgpack-1.2.4-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:0c75cfda0d3ccb1f6abc20e0608ad6b226e11f317b5ac297721504d2509e2bd9", size = 466911, upload-time = "2026-10-26T17:53:49.536Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/03/41/ed5517a107628f6f7f3a1f46f19de3aca979bd1fc95861cb56ce0e4bcc02/msgpack-1.2.4-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:a45ceb5f199d5e388f28b550ba881096a3740d4bda10e661d77f59d9a2e8187a", size = 480247, upload-time = "2026-10-26T17:53:51.211Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/31/71/14c39858380e11408fcf75aeab1cda0afb253cd8f62a01fbe4ae1838b66f/msgpack-1.2.4-cp311-cp311-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:7ca62b31a873c70b73f367bb2c1efec1d143016642c5191405549578184ff6ff", size = 438298, upload-time = "2026-10-26T17:53:52.919Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/3b/73/ba40b91632e011851e1a397d53e0bd031848751902424a5b37c33f7de412/msgpack-1.2.4-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:f641971d3eec89ffca57fa36d151ad1cf1b6a214b47faca16cb165c7d45ef8be", size = 461600, upload-time = "2026-10-26T17:53:54.8Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/51/f0/c13ce7e7a7d8dabc1a48eecf61eb789084dbcc64374a7f19770eaf96f2c3/msgpack-1.2.4-cp311-cp311-musllinux_1_2_riscv64.whl", hash = "sha256:b9eff629190a4b118549b654df32a56ed535351819f690d0c935d185500cc90b", size = 435020, upload-time = "2026-10-26T17:53:56.433Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/b4/d2/2a4e254f8ee5d5dd5019bd9f99164d79704788dbe16d9d6de77fda4e6727/msgpack-1.2.4-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:4e22c6571ab6ac9036da87d8a6fddb4baf86981844b480c0c60a4a4be417ee48", size = 479138, upload-time = "2026-10-26T17:53:57.918Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/70/b6/28f7eb3f38e3b6ea1f87f36c44cc25ab0eeb451147b5ff61637ce3d0b839/msgpack-1.2.4-cp311-cp311-win32.whl", hash = "sha256:5d7d4d2a5fc6a604f20c546ee1e8327bed1e9329be2417cef9af1f799f3e55e0", size = 67926, upload-time = "2026-10-26T17:53:59.172Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/b9/9e/67a97d5caa41bcbdbb4fae7bf5009b60222c72d0748364ac9e32de334a4e/msgpack-1.2.4-cp311-cp311-win_amd64.whl", hash = "sha256:9db832747bd05834530189e564a3fe31e2617547dc1f3a005f835eafc2b8e048", size = 76117, upload-time = "2026-10-26T17:54:00.403Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/32/43/890b028b2cdb6b75fd56bd9388466c9fea9f10a31ebb685c489c5cb32fa9/msgpack-1.2.4-cp311-cp311-win_arm64.whl", hash = "sha256:deb1730c4c0c1a8c975be2f43efea6ee4834d35031a39075f78917d0ba8b3c04", size = 72632, upload-time = "2026-10-26T17:54:01.798Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/27/fd/45f6cd13cefbb659a8e0128ea64d51b349571163fec3c9c20f99792dc42a/msgpack-1.2.4-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:90cba4996b18ec1201fcaabd01ec48ff4b9755416bcd52105ded2f89fe145c49", size = 91903, upload-time = "2026-10-26T17:54:03.097Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/7f/89/169c2a0b1ffeafe68a4f13d8d96b6ed1cd8d40d8262b3a6690851da7eda1/msgpack-1.2.4-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:112933726919f4239646cca9572e2c2fa5626358c670da8440aac09403100a48", size = 90573, upload-time = "2026-10-26T17:54:04.383Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/cf/8e/272a384f2a001cfced1baab0a8abdd912d6281432670f4609d1aab718d7b/msgpack-1.2.4-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:9ca1e78106675f2aed07dc37b842ce19be70010ab22c5c5c04688f0840d48539", size = 461057, upload-time = "2026-10-26T17:54:05.821Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/1e/d9/f59bd841fc2fd2b74dc50ce85860a6a25f58e588dd48946aeaf2862cf990/msgpack-1.2.4-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:c4d5bbdbea8f5669b3a734d6c226772804fb120848f99cbe63a0ddee63b049c9", size = 475652, upload-time = "2026-10-26T17:54:07.414Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/00/03/afd000e1b1e28fd535dc8c7bc21ebb88923bc1964a2429fe660fb313ace3/msgpack-1.2.4-cp312-cp312-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:0d9ff7f3aaffd84010f1c501b05406a497584f5cab2f732eb9d89bf960e12f6f", size = 427082, upload-time = "2026-10-26T17:54:09.1Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/f7/7a/e2890b272883c496faad777324ddb70e9cc4a6c63731962a4a39a6a40f44/msgpack-1.2.4-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:aa10dc04c03408f31948ac1896a942141fd8d7a954b3612edac79f19663e4076", size = 451956, upload-time = "2026-10-26T17:54:10.476Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/c2/46/0c1b240b8a580af3e72139c33b018025440a1a42c2579e82e39b1195ee36/msgpack-1.2.4-cp312-cp312-musllinux_1_2_riscv64.whl", hash = "sha256:472a25463678f2795143a7cb42e88a1b59cc2375e9881917e69a9323bde42114", size = 423833, upload-time = "2026-10-26T17:54:12.195Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/80/8e/851415b1a9264e6abf64d8a9617d856769d59e247fb9470106f133aedbae/msgpack-1.2.4-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:cbb8a677da3e845713925e9a203b8a120b1e9da9989836890ba4a4a187902701", size = 470951, upload-time = "2026-10-26T17:54:13.764Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/c9/74/d75bf61aab9cb88b84f7d3a8eca8dd92e19a742b77ded300a1177e88d031/msgpack-1.2.4-cp312-cp312-win32.whl", hash = "sha256:2b0b7dff5beddc10f16ecea6b28c6b98014d1135d7015bd83adff5037f35848d", size = 68786, upload-time = "2026-10-26T17:54:15.049Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/81/c5/dd0e78eb04f9a0773a810d25ef2cd8f16bb941487567d0c63f814881133c/msgpack-1.2.4-cp312-cp312-win_amd64.whl", hash = "sha256:6e38b123681df22373d545520f54bbeddc4706d9235a1161061f12bd6648497d", size = 77272, upload-time = "2026-10-26T17:54:16.491Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/65/e7/b38f63ae82777c0077daa56c4b09af39d29dcb8927ab2ff59268094069c5/msgpack-1.2.4-cp312-cp312-win_arm64.whl", hash = "sha256:6795c588b210b2f13d62c8fcc23bf779b509b839ec5c197a7ab4f5191459e126", size = 71884, upload-time = "2026-10-26T17:54:17.995Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/2d/26/16eaad5fe6e199334fa5bd66070778665717c86e9a273525dc706ddb06a7/msgpack-1.2.4-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:fb811ac3d463a75013b234d2aae56b9f0bdb0105caf4dd2ee65305b6a8a6078d", size = 92057, upload-time = "2026-10-26T17:54:19.616Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/9c/b8/9660be6d120820bc05106f291e824c73d35f4ab77d927788ae67ea80889c/msgpack-1.2.4-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:36258fd0909e1bf26e94604439108846432abe4ffa9a23c9dc2f6f1c60f94b60", size = 90542, upload-time = "2026-10-26T17:54:20.965Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/6c/10/cd55a69fec29df26884b178dc4b1803442ec82abf929604aac619881917a/msgpack-1.2.4-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:e9c5ba0f053a7e98f013f083c9d1b2dffb26cad8c897c533d8286e44ed24c669", size = 455798, upload-time = "2026-10-26T17:54:22.434Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/c9/94/562e0733593a780c70b0b18994f30c205149f7f9f4efbe3e9b00b88612c5/msgpack-1.2.4-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:7fabd415c41e62006c6641fcdf5b3e866f581c4e11c58328c0d0f69584b9577d", size = 469262, upload-time = "2026-10-26T17:54:24.043Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/bb/92/76d1a5c597e04e1d360b05573d150bdb4502f5a014e6e9cf089c9537c156/msgpack-1.2.4-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:7433d340de45003db3ed909a642c9469b598d175530f7a707cbaba64287d27ce", size = 420789, upload-time = "2026-10-26T17:54:25.587Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/8a/c6/b72b8d8022718380db459ced8ffbabc7570ad2d22c7f2fa659c872cb6734/msgpack-1.2.4-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:ccd6e4af5347eb9828147320449bcd30e3321f6397d4583ff16047485dd8be3d", size = 447068, upload-time = "2026-10-26T17:54:27.721Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/cb/dc/f378ef1def4aa135e70325c09e22457f3203ae2a390a192e892267906f33/msgpack-1.2.4-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:23d1459a1d0b4c9f6629df072d592eb74424b3ed3656b69af507bc9023cc027f", size = 418896, upload-time = "2026-10-26T17:54:29.325Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/62/93/a7e507378f43e91415cb6fda47e0ded0c9de1618a1f4ac4f2887912a92dd/msgpack-1.2.4-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:9e73761fe9fc55a4e9d2df8e8f59b0979231af4dbf80b8bf90cd64c74173d779", size = 465764, upload-time = "2026-10-26T17:54:30.719Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/60/76/7f39f49cbcdaa4aafe64b4941b2640772dbdc1cac3a9332f4c9ba6994da9/msgpack-1.2.4-cp313-cp313-pyemscripten_2025_0_wasm32.whl", hash = "sha256:d088d1f552e129859db830692268747aba0a1ee3e6e0fe6344dbb3aab1df9f6c", size = 53615, upload-time = "2026-10-26T17:54:32.213Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/67/9b/85b93350dbd7b52b358882f7f17a88a03664a7a59a359406e6315c162634/msgpack-1.2.4-cp313-cp313-win32.whl", hash = "sha256:892d4f17d7962bfd2c2928b0a47542bf2948f074a7c04721b73d4138b70481e4", size = 68724, upload-time = "2026-10-26T17:54:33.484Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/02/4a/a7e2778ce09a943c17b6f91c7acb2f9488357657c01f2cccb278297621c4/msgpack-1.2.4-cp313-cp313-win_amd64.whl", hash = "sha256:318d4e634d2b320be10decd9968ad1ae0be1d80cba23b5528c37b429eeb0e3e0", size = 77039, upload-time = "2026-10-26T17:54:35.016Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/64/16/9ff7495a9853e9d7de74965fdadce15017e7213ce564bb5dafc5403c9108/msgpack-1.2.4-cp313-cp313-win_arm64.whl", hash = "sha256:bec3e34749b90cfcf116149aad11295c720ff4a74a7d0a35abdb968a396c1524", size = 71873, upload-time = "2026-10-26T17:54:36.19Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/86/34/747f9ea2b428088201c73fcb3a885cebcbedcd71def0f1f3c36896294b27/msgpack-1.2.4-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:895e9369185df4a874768849405c30cba7990caceb3fcb1692ebe62bb050f55e", size = 92449, upload-time = "2026-10-26T17:54:37.503Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/83/7e/52d208cb1561f869762c17be0e2c004e4d34f2842d239a450492d6246d62/msgpack-1.2.4-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:c97f5f17407e1761f23f1944be33cbf1d5ce67017db32544dcd5e16e0b1b4a3b", size = 91202, upload-time = "2026-10-26T17:54:38.797Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/2e/58/5516cabb60da83506024015c669622a0277979aef51eb611308cebaf4cc9/msgpack-1.2.4-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:2444a4e04f924630d059ae6eae8f91fdfcd28ed9fd17b21bacf4e74550a091f7", size = 455185, upload-time = "2026-10-26T17:54:40.213Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/39/8f/bf975b5d2111e4954a0f8567fc6b60bab22c8766dd4fa509af1334c91a4f/msgpack-1.2.4-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:5d65b791ce4283e02b6267742ad540899155e1b32887b9cbdda47f38f5a076b5", size = 465078, upload-time = "2026-10-26T17:54:41.971Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/32/2f/c74baeafc53d1c1fadfbeb774444d0e6354778d12b40b827e437a7a35856/msgpack-1.2.4-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:5e4c67dbac05dce90a3fa1d845137617383c415e6b319062baac9734540706ae", size = 420144, upload-time = "2026-10-26T17:54:44.994Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/b0/f2/bdf2ce9e284821397dc5549101824c7607ee6ba6e0635390d168a77ac49c/msgpack-1.2.4-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:781e856db4f2cb398e4992e2a74305295d3ebf694eec26fa0f4bc766eb9fa0a0", size = 446479, upload-time = "2026-10-26T17:54:46.484Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/76/8d/b4572d24bb75d98bcbbd031a934a3a1d03494ea88a100cd51ab16c4c7d57/msgpack-1.2.4-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:cfc1cc237792f9a5664002b66acb961027d4184528ec9d10e0e42330f7972383", size = 418780, upload-time = "2026-10-26T17:54:48.04Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/55/8e/4493bef4422730cfd3420b84094652fabd27ef8aadc8b443a8995b524d08/msgpack-1.2.4-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:f60de6ae13d4d2a12a483f15c5e47cb6fa2731aa32d92fb31178e2017d6574a8", size = 462009, upload-time = "2026-10-26T17:54:49.433Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/41/29/efdc3d1d09e4e0e45955b0aad559b4c1f5d908767c9fb1021990c52182a5/msgpack-1.2.4-cp314-cp314-pyemscripten_2026_0_wasm32.whl", hash = "sha256:06a0657a4110d563255006b7cb7147432f67827144e429c2cdb1c967548d1817", size = 53714, upload-time = "2026-10-26T17:54:50.753Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/df/0b/08794c65e0a752acf20aa44e193e61dfb552b48fe6c27ba6023c146f9e77/msgpack-1.2.4-cp314-cp314-win32.whl", hash = "sha256:727a65b35db9f5ef516fc0229c4b05cab983092b1ae274a8a769b2d517fb0499", size = 70726, upload-time = "2026-10-26T17:54:52.397Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/b5/da/e2cc63ec61e7ac05595b391cba01c10cb4657f4e517da1512e4a75d2d12e/msgpack-1.2.4-cp314-cp314-win_amd64.whl", hash = "sha256:80f5d4fda1ba373d95933f98e6c1d18247feffac839fda3930bdd85e6561bb5f", size = 78346, upload-time = "2026-10-26T17:54:54.662Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/93/e4/1b0eb49887009dc2c530171d659cf2aa37202b5f79c0b784e63777554b37/msgpack-1.2.4-cp314-cp314-win_arm64.whl", hash = "sha256:e5f67f0286f2ba2c6dbb4998404ed880112ca204ceda729cf239879cd89d3acf", size = 74152, upload-time = "2026-10-26T17:54:55.915Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/d0/4a/6defc8fd0270c4ba675e6625f4f76ce936fd0c48733395fd7ba912cd423e/msgpack-1.2.4-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:45506bfb902cde24a0d33fb0581f58497ddb2682686dd1f6aa07e7b769df7ca4", size = 94083, upload-time = "2026-10-26T17:54:57.108Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/c8/e8/59f7e076739048864710a4de3403ae1c1b43ed5077b796cd9e8cbce9b3f6/msgpack-1.2.4-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:dc9dc681958e69f46b9f37def3e7fd6cc5dcfaa5943fb00bfe9c223a1a1052f6", size = 95037, upload-time = "2026-10-26T17:54:58.489Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/2c/dd/dbae250b23b831cd0571eb664089f80de3249a39e98c6ef55f9a0efe928d/msgpack-1.2.4-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:0bef691e2a95119cc6bf3ded29325dbd89c4b6f8ff233070431948ed70902421", size = 472722, upload-time = "2026-10-26T17:54:59.924Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/a9/e2/383ece1c1b27c1ed322055fce8ab8972bc6d529ede881592065ce0c461bf/msgpack-1.2.4-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:55e6106d2d085af42b2de72efeb38ed255241a24b32295ca889707c1d679c442", size = 468726, upload-time = "2026-10-26T17:55:01.492Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/37/2f/5410a8815ae74a824ac87543c612e40cb6674851b70a6ad858bb32813203/msgpack-1.2.4-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:996dfc4774c240c8e6adf1166ae102141cfbed33c8856fde821bd6c0bd35ee41", size = 420488, upload-time = "2026-10-26T17:55:02.848Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/39/8e/16fdf02b4f91dff9c1480433c1bf80756c2fedc0b74fc6a231f02dfed007/msgpack-1.2.4-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:efa1357fb0c7201e833de28638be371ee127476f7ccff9e7a94211b0afc33ddf", size = 455541, upload-time = "2026-10-26T17:55:04.564Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/c4/76/2454ef54d780a167667552d02e7bc977a3d419943bcbdf6a96a4da6786ad/msgpack-1.2.4-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:b9270b63409e70c8c6deb5faedc81fc27c6bd0196b38084a8773f68286abf034", size = 419514, upload-time = "2026-10-26T17:55:06.257Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ac/8b/2af9bf378def33c24875f250421b0d0b1b06f72a1c2c3f964749fc4cdee1/msgpack-1.2.4-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:2b597bb01aff61d65e305c2cf2589c93c86609929d42d575bfc359f3c54ea8e1", size = 461910, upload-time = "2026-10-26T17:55:08.05Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/0e/46/a133ac6c4cef4d3939383c00cc19baa16ee85fd70af0c5990e7a9ca8767f/msgpack-1.2.4-cp314-cp314t-win32.whl", hash = "sha256:ad5bc540cbc34db236f8535721a9a872d12a9d88d1322470f1fc7c5e9dadfdb2", size = 76441, upload-time = "2026-10-26T17:55:09.711Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/d4/f5/8d22ec454c188f1795107a3fd9f68ada485076ebf394a4aaaa5fbb6093e7/msgpack-1.2.4-cp314-cp314t-win_amd64.whl", hash = "sha256:287e52c2ebaa94f8eca045628374859f51584e77bc07086e6835a9bb2204c774", size = 84321, upload-time = "2026-10-26T17:55:10.947Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/41/52/1390514aee47d14ca3fe6ea0cf236fddc55021867ace30daf8761deba36f/msgpack-1.2.4-cp314-cp314t-win_arm64.whl", hash = "sha256:f3f19fe5decd348b35b003ae5f32d3fa90877413a0183da676f748a3a7ab9270", size = 78589, upload-time = "2026-10-26T17:55:12.425Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/d0/d8/0465d475c1a7063af1a1fb4f8c69e0dd661c4dd172055c9757a343a07d5d/msgpack-1.2.4-cp315-cp315-macosx_10_15_x86_64.whl", hash = "sha256:765584b93ed6f0b561f0c56e9735f24945c0682f857c9b3ee3b4caad9c32f66a", size = 92449, upload-time = "2026-10-26T17:55:13.665Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/b2/d0/5220a8a53579dda39f3526394ba5b7eafc28736085f2626deda7fcd22cd1/msgpack-1.2.4-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:0221748c30ace75fde0dec8c470abe65fb5374cd4f37adb9db6aca7a3c362c0a", size = 91209, upload-time = "2026-10-26T17:55:14.913Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/b2/98/f151742eba413503074a10d8f636bf03dd4f3f7cba29689767a35d19bd1c/msgpack-1.2.4-cp315-cp315-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:c5917972ce1bf5f85f761031e00dab6fe0ad9f880cb3d2d43ed74b330c850400", size = 455713, upload-time = "2026-10-26T17:55:16.406Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/b0/54/890510a2c9841aff63258e085d15d4e140c7eef559d4da81ef2d2d867436/msgpack-1.2.4-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:e7ae8cf6012372cecb43016132d1b87ccc2ebb8ae5ab5078687399e82423386a", size = 466177, upload-time = "2026-10-26T17:55:18.351Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/3d/41/a6f20d7c2c380fb072b95ffc5b865a1d62eaf49d77fbee44466c45a1a8de/msgpack-1.2.4-cp315-cp315-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:e78c66cf97ac5675037f705ca433ad98ac9177f9523e7fdbb34e486ae29044c8", size = 424398, upload-time = "2026-10-26T17:55:19.979Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/89/86/fa9559961f2b0d498e6cefa226298ddee2b896cb223449c211702bc34071/msgpack-1.2.4-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:59887281c3c163a7afff7dffaaad2f78cd2b513b7e1a7843f1ee8e7cd6a94231", size = 445686, upload-time = "2026-10-26T17:55:21.775Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/39/23/5a9d94036cdd77d4310bbb7cfaf3ccd1f087c4a5d5a4befec4361c5fc0dc/msgpack-1.2.4-cp315-cp315-musllinux_1_2_riscv64.whl", hash = "sha256:9f46e70c8d22e96856967ab9d80c51dcf5bc63133e4da2d66fab64c0d4119b82", size = 422096, upload-time = "2026-10-26T17:55:24Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/6e/4b/86a5384112509a94ff6e20028aba6845138743effb7c6617e959ad1256ab/msgpack-1.2.4-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:0a1fd6c31952155b7cd01061288c70303e6554ae855244dfb38a897fd94f8749", size = 463407, upload-time = "2026-10-26T17:55:26.146Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/f4/cf/14db289e0ad531e22ce0f03284865f81d14fbc80bf3f79d3b1714bcf76cf/msgpack-1.2.4-cp315-cp315-pyemscripten_2026_5_wasm32.whl", hash = "sha256:b1f08ec826417e3c8dc3edadb50f38debba033af6cb849229f0eac72f80f2342", size = 53743, upload-time = "2026-10-26T17:55:27.497Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/46/72/a76fc90b51503c0bdacbc7fc823aa6fa62d40596ac47f9ea8492d6f95a34/msgpack-1.2.4-cp315-cp315-win32.whl", hash = "sha256:e8ba23c838739fe929e868095171e71f2f38d6ce0fcf5840b576fb82648e58e6", size = 70780, upload-time = "2026-10-26T17:55:28.705Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/58/a7/fa9d4a1b5dfead83ea6e03b4007041a5da988c25eb941d42612e0211d3c0/msgpack-1.2.4-cp315-cp315-win_amd64.whl", hash = "sha256:67310606cf2528a6dc3ece1298dcd5cc6c57add148b16d22c5111138aa84820c", size = 78288, upload-time = "2026-10-26T17:55:29.928Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/b5/f3/8163d7938a8fe003952fe2719ddb31da71998559bbe290c55ffe622b886b/msgpack-1.2.4-cp315-cp315-win_arm64.whl", hash = "sha256:ce76e7a7c11459157887a8dadf07c107ff74eca98cf914f0de6ee7ab4b47104d", size = 74235, upload-time = "2026-10-26T17:55:31.112Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/b4/fa/37c3219b250d81bee788c0dd78ae2fc673db2da1c21ae51f7982d85698f7/msgpack-1.2.4-cp315-cp315t-macosx_10_15_x86_64.whl", hash = "sha256:fb9ddbf23b8c6e89752af399fcf4daed60055e239cda44c6acfaa76d19331e8c", size = 93793, upload-time = "2026-10-26T17:55:32.304Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/83/9f/b8afcd20d32cf4be1fa3c327e997656d6d446e667452b0fcc66b91710e82/msgpack-1.2.4-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:e283cf563166c21762131b88e3870ee2ec57757b08a8736929757b5a67541061", size = 94746, upload-time = "2026-10-26T17:55:33.624Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/e6/4f/03348d381fcbbc2685356833408cc7e9d2af0fe0775926935a2889650f64/msgpack-1.2.4-cp315-cp315t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:40e91bf8325f492e8eb3c3aa6de06b20593c225336bb52b585c913d7c1da025b", size = 468480, upload-time = "2026-10-26T17:55:34.991Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/16/46/e54af8d9a51fb562e068e69a0d75a51e9c2fedec49f911f888515f5477ab/msgpack-1.2.4-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:cfa86432bf329d6b976f5a00ad4c9064fd51736e4967a52526750236345cc2da", size = 470064, upload-time = "2026-10-26T17:55:36.615Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/74/f5/8f9a6b3af1d803e832b11017c8dad44d761fefdb91dba04ee58cb51838da/msgpack-1.2.4-cp315-cp315t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:42e0a7dc26df739149478585d4264338b4d330f24b3e3b57d5aa89e48866e8ab", size = 421267, upload-time = "2026-10-26T17:55:38.076Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/4b/8f/7302b0d18eadbbfef9be1dbbdc49905f7f3b847200c3e47068d093976be4/msgpack-1.2.4-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:8e680367090a58c966052d61418cc943111863538fd82471d61fca5271d911e1", size = 451244, upload-time = "2026-10-26T17:55:39.639Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/36/c6/05717fb56b510b5e974446f2cb8e9b26fa4347fafc0c5927745b176939b3/msgpack-1.2.4-cp315-cp315t-musllinux_1_2_riscv64.whl", hash = "sha256:a6c9926f8871b261622fe6b599db72c69be5bca8fdc0976886f9a531a301dee9", size = 420273, upload-time = "2026-10-26T17:55:41.488Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/05/d9/a19077d664c37319097e16ba8de14e6b3a2edcc8ee78a2069c0808e38960/msgpack-1.2.4-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:c50bac325dbf1a9c80e10da6dbd1100d7082f6b12e153084501e18e86cd3a037", size = 460421, upload-time = "2026-10-26T17:55:43.223Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/a2/bd/0e2033a7435f8d2311be37363fedc88bdfa9fd95c364ee8ac3216eb63e36/msgpack-1.2.4-cp315-cp315t-win32.whl", hash = "sha256:34051de19ae532ba47fcab5b0abd08c25c7a64ff763ad819f18764d45f3c2c81", size = 76256, upload-time = "2026-10-26T17:55:44.588Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/b3/3f/aa7265f25dafb6af7567a1a7d0a95c5566803db2226c5e084dc5850cfd96/msgpack-1.2.4-cp315-cp315t-win_amd64.whl", hash = "sha256:6ad2f0808099d4281208ff2c756efa958a55a7c8eb21fe1c7052b95c584f02f1", size = 83939, upload-time = "2026-10-26T17:55:45.773Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/bf/f2/c53904c4bc3da828fb75678bf489ece808a277affa73f8a7a91dfb7c5851/msgpack-1.2.4-cp315-cp315t-win_arm64.whl", hash = "sha256:e38d854f1c60e94f46d998765201126338bde3fe1b029be0d849094bcbef72c2", size = 77995, upload-time = "2026-10-26T17:55:47.016Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "notify"
|
||||
version = "0.1.0"
|
||||
version = "0.5.0"
|
||||
source = { editable = "." }
|
||||
dependencies = [
|
||||
{ name = "celery" },
|
||||
|
|
@ -733,14 +1114,21 @@ dependencies = [
|
|||
{ name = "requests" },
|
||||
]
|
||||
|
||||
[package.optional-dependencies]
|
||||
channels = [
|
||||
{ name = "channels" },
|
||||
]
|
||||
|
||||
[package.dev-dependencies]
|
||||
dev = [
|
||||
{ name = "channels", extra = ["daphne"] },
|
||||
{ name = "redis" },
|
||||
]
|
||||
|
||||
[package.metadata]
|
||||
requires-dist = [
|
||||
{ name = "celery", specifier = ">=5.6.3" },
|
||||
{ name = "channels", marker = "extra == 'channels'", specifier = ">=4.2.2,<5" },
|
||||
{ name = "django", specifier = ">=4.2,<6" },
|
||||
{ name = "django-ace-editor", specifier = ">=0.1.0" },
|
||||
{ name = "django-fernet-encrypted-fields", specifier = ">=0.4.0" },
|
||||
|
|
@ -750,9 +1138,13 @@ requires-dist = [
|
|||
{ name = "pydantic", extras = ["email"], specifier = ">=2.13" },
|
||||
{ name = "requests", specifier = ">=2.34.2" },
|
||||
]
|
||||
provides-extras = ["channels"]
|
||||
|
||||
[package.metadata.requires-dev]
|
||||
dev = [{ name = "redis", specifier = ">=5" }]
|
||||
dev = [
|
||||
{ name = "channels", extras = ["daphne"], specifier = ">=4.2.2,<5" },
|
||||
{ name = "redis", specifier = ">=5" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "packaging"
|
||||
|
|
@ -920,6 +1312,19 @@ wheels = [
|
|||
{ url = "https://files.pythonhosted.org/packages/4b/2d/69abac8f838090bbecd5df894befb2c2619e7996a98ddb949db9f3b93225/pydantic_core-2.46.4-pp311-pypy311_pp73-win_amd64.whl", hash = "sha256:d51026d73fcfd93610abc7b27789c26b313920fcfb20e27462d74a7f8b06e983", size = 2193071, upload-time = "2026-05-06T13:38:08.682Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "pyopenssl"
|
||||
version = "26.4.0"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
dependencies = [
|
||||
{ name = "cryptography" },
|
||||
{ name = "typing-extensions", marker = "python_full_version < '3.13'" },
|
||||
]
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/3f/e8/7325d258199b159eb2c03fe32107533e2832e70e63f4fb88a6aa00023201/pyopenssl-26.4.0.tar.gz", hash = "sha256:28dfcce0162b9211413e26dfbfdf1d24317fbeba18fc93c12400a1856b2a0bc7", size = 182046, upload-time = "2026-08-01T19:50:50.512Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/51/ad/2cf6d3fa2fae5c79e1ed9960c0d42badd0f94d81dd12b50604cdc839e648/pyopenssl-26.4.0-py3-none-any.whl", hash = "sha256:f0eb0cb2d581d3ad2b9c489468485e7f2ab6727d08401bcf9d824c3caddf3c1c", size = 56026, upload-time = "2026-08-01T19:50:48.94Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "python-dateutil"
|
||||
version = "2.9.0.post0"
|
||||
|
|
@ -959,6 +1364,28 @@ wheels = [
|
|||
{ url = "https://files.pythonhosted.org/packages/a0/f4/c67b0b3f1b9245e8d266f0f112c500d50e5b4e83cb6f3b71b6528104182a/requests-2.34.2-py3-none-any.whl", hash = "sha256:2a0d60c172f83ac6ab31e4554906c0f3b3588d37b5cb939b1c061f4907e278e0", size = 73075, upload-time = "2026-05-14T19:25:26.443Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "service-identity"
|
||||
version = "26.1.0"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
dependencies = [
|
||||
{ name = "attrs" },
|
||||
{ name = "cryptography" },
|
||||
]
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/61/87/ad52e2c582c0f0e7f0a1b86950494c38d67422dc0f5ed9044a5fb9569a49/service_identity-26.1.0.tar.gz", hash = "sha256:6358c52882c96e66ac4a55eb3a72c7dd4a70763f8cc6fa4e70abde2656f4bf3b", size = 42898, upload-time = "2026-05-30T12:04:55.184Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/93/eb/2433e1af4ff903499144de4846569fb3300b816179ae99a03c2f011b666a/service_identity-26.1.0-py3-none-any.whl", hash = "sha256:68c32dadbb69135fb951077677e07cd7f6031020f3a8c8f47a28cda8a0742118", size = 11370, upload-time = "2026-05-30T12:04:53.911Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "setuptools"
|
||||
version = "84.2.1"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/70/b3/c19426f783614d625699a4b247faf628ea9ab1db228674491767b417f9e1/setuptools-84.2.1.tar.gz", hash = "sha256:3ff8b3b5492a0aa66960f4419365a86b84e013070d4313e4d4a6894f5d64d6bc", size = 1230289, upload-time = "2026-10-20T19:01:37.742Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/ef/55/6dc6d6bb953bdfc52519a0059592c52b6e3b8ad51cf8256dffceb55b0610/setuptools-84.2.1-py3-none-any.whl", hash = "sha256:ca140b45d5325a9478f880e351484f62fef15f336462e449ca0c03c873d589c2", size = 876263, upload-time = "2026-10-20T19:01:35.678Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "six"
|
||||
version = "1.17.0"
|
||||
|
|
@ -977,6 +1404,129 @@ wheels = [
|
|||
{ url = "https://files.pythonhosted.org/packages/49/4b/359f28a903c13438ef59ebeee215fb25da53066db67b305c125f1c6d2a25/sqlparse-0.5.5-py3-none-any.whl", hash = "sha256:12a08b3bf3eec877c519589833aed092e2444e68240a3577e8e26148acc7b1ba", size = 46138, upload-time = "2025-12-19T07:17:46.573Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "tomli"
|
||||
version = "2.5.0"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/b0/78/9ad63712633ed3ab5cc1a648d863d7e7da371e9425e209555a0fe711b695/tomli-2.5.0.tar.gz", hash = "sha256:264507556cd8b8c8e7c6ee037cdf443a463f03f4c958e57195e3d369711b8ff6", size = 17662, upload-time = "2026-10-07T12:23:37.892Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/22/a6/ab99b60ee52acd949684febabc3005d0045d0f66bebd9cdebd67372d26dd/tomli-2.5.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:c4dc1c1781f2f716de763d1e9a7b34c6a894e167e291c7c5d16c72f7a9538545", size = 163901, upload-time = "2026-10-07T12:22:15.601Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/bc/00/ee01b7ed4579180fff07142d290257f25ba786f23f3ec6005f620933c2f5/tomli-2.5.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:eff8babca5a7999bc137acbc7482a8b7e17ffca5075ab41f5d770ab408c7bfef", size = 163756, upload-time = "2026-10-07T12:22:16.957Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/72/c2/4efebf65372f6583185f79799312109dddb61102d47e5c33dcfd1a297aca/tomli-2.5.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:86665cee9c4835b7a7f1e8ec2c719b5258d4dc782887aded5a8ae7352a96843b", size = 268038, upload-time = "2026-10-07T12:22:18.135Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/53/07/5850468e925d898abb36038666f9c333a94d2a223e802a8ba5b6d319d23f/tomli-2.5.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:d7e369fd63331746182360977b1892bfc215476a30d61612d732425311639f56", size = 276422, upload-time = "2026-10-07T12:22:19.567Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/b4/87/f293984cdcf83c054196d4fd3dad44fc68ae55b4b8c44bc76cef360c3150/tomli-2.5.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:7ad1ea345759240d6463efa0ed1c704402752e49aa21476620738d74d72d8aa1", size = 272616, upload-time = "2026-10-07T12:22:20.794Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ce/ce/db582886b3c1219d3fec93ebd669332482e5aee7a91e0f7838d84f2d1759/tomli-2.5.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:96243987194634bd411066ce40c952e108f86af04db533ecd8ac3ff2a85b1885", size = 276593, upload-time = "2026-10-07T12:22:22.12Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/bf/72/7619b87dea4261fc27dd7b54c4461c129c1f7d9bb7ba3aec89c797a431b8/tomli-2.5.0-cp311-cp311-win32.whl", hash = "sha256:610b27d99f28ec5f191c7064a48f3ddb179a1fe6ca73d571483ae859f57b605e", size = 101830, upload-time = "2026-10-07T12:22:23.651Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/1e/74/220106da34502304b6751a2a9b8a9fbca6c3fd47e737a2e2e3da7c61c9db/tomli-2.5.0-cp311-cp311-win_amd64.whl", hash = "sha256:c804ae44fe7b4bab5da295e4f980a1ff04670bca9d23fe0a4e887e08ebd741a8", size = 112742, upload-time = "2026-10-07T12:22:24.972Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/27/99/7d9c8b41837a7773613e169504147375c157a290167aa59ad74a085f521f/tomli-2.5.0-cp311-cp311-win_arm64.whl", hash = "sha256:cfac177ebd6236003846ea339981f71457cb6eb748f23381eb257e45092e3980", size = 109332, upload-time = "2026-10-07T12:22:26.117Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/52/ed/7baa86f87493646a594de388c7c1c40a39dd0461f7e9c0359cbeefc91fe8/tomli-2.5.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:1f4a40d03fb9f63424f0979855bdeaf44dd7696b8d59501822c10ed30ba532df", size = 164854, upload-time = "2026-10-07T12:22:27.444Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/a5/b1/44c0341f2224397855723c7a8a39f718ea6fcbcc3dacc66e5aeca0f334e3/tomli-2.5.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:9ebf8d19b17bd0daeb7b7dec81a946a439b753942fd0210d6e96c532249eea6b", size = 164074, upload-time = "2026-10-07T12:22:28.679Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/23/04/e2d5b7d3fba47adedb23de616c16d428ea076c79a3d8e1d95d649ffe197e/tomli-2.5.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:bf0b5e8e0f68ebb494356e577c06c139161efd8d3b9050f93b39b7c26cc54ff0", size = 274274, upload-time = "2026-10-07T12:22:29.804Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/43/90/6090e706ff27a6f89f4a40578e3324b95c3cd8c4150868aabf33a8f414c3/tomli-2.5.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:6cf74416bdc94ae458b14e37286c1073081850ac8459a00d0c5efef5d44294c6", size = 286435, upload-time = "2026-10-07T12:22:31.297Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/0a/9e/a2c40768df16c408f22430afb0a73e9d7e5f79c950884954649d1146b74d/tomli-2.5.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:61ea1ebe1e55a34ea8199cc8dbff398d35027b82271c8ac4802fd3a1fd5b1bcc", size = 278119, upload-time = "2026-10-07T12:22:32.601Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/12/25/3c0cb485b98e9cfac495629b1c93c87ccf0b72fbe9d2689fd8fe62c6d5a3/tomli-2.5.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:ed53f7e89bb04f6d9e8e7799112360b0c4d5cbff067de0814c98c37c39b920f7", size = 286177, upload-time = "2026-10-07T12:22:33.745Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/77/8b/0144c65f0e37e51c18d04ae15c21b19431c165002d0131fe9aa8b0b8b1e8/tomli-2.5.0-cp312-cp312-win32.whl", hash = "sha256:e7ad033e27a516a233bea839cdb77b80146facb3b4f40bf02cd0cac165cdd5c2", size = 102760, upload-time = "2026-10-07T12:22:34.887Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/de/32/5d6d8f42fc9a05fce69354e00ff256484192f5f2fc9a2165718fa0de61ec/tomli-2.5.0-cp312-cp312-win_amd64.whl", hash = "sha256:bd05de8c1698f8413dd7d869492693a0bf2211543b787ac78cd5e7536af1a6d7", size = 112722, upload-time = "2026-10-07T12:22:36.162Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/30/65/df18032218db0fb9b769fb23c8039a051f15c811993995ea04c350273a32/tomli-2.5.0-cp312-cp312-win_arm64.whl", hash = "sha256:069435bd5480429b98c5e5afb02ab21c219b6f0064680671c6dc0d46817346ea", size = 109534, upload-time = "2026-10-07T12:22:37.296Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/42/e5/51736d70da209350969e15aca5c5ab6e2ce1ea87a0a892a6c13aec172a86/tomli-2.5.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:943276cf269e0071948d9ff697159c1735e623c1151d88abb09b74659ef0cbea", size = 163328, upload-time = "2026-10-07T12:22:38.373Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ec/55/086f80dab4ab497602644274e6dea7ec5dd0b4e262e443a8ad3bb7edee2d/tomli-2.5.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:463b16086865b97facd8d0b3fb4cb7c544e3f58d2a69dc3113d6db9653fdb043", size = 162246, upload-time = "2026-10-07T12:22:39.673Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/aa/eb/3ecc94459f3635c92321f4e7bde571323fdb2267c50e19e3188a281eae3b/tomli-2.5.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:1245a6638fc4bb0a60af38a7d45413db34a13842027c77597c712c998c62fdf0", size = 272655, upload-time = "2026-10-07T12:22:41.08Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/c0/d7/494fd1f0c37a621f1ad9975c2efadb523e8101f144ed6edb2e7fe64738f2/tomli-2.5.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:5d8bac3d603c97e6854424e5b2b5b741bdbde387e09f162fb0446812b4a8362b", size = 283595, upload-time = "2026-10-07T12:22:42.222Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/70/51/bb8d62b1317e6640866f6949b2d5855e5300f2c99d46de1cd245570bba65/tomli-2.5.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:21e4cae4114aba25aa0d4f85cdf486d290fb35c0954d7bba536248da64d43066", size = 276253, upload-time = "2026-10-07T12:22:43.625Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/66/f4/f46bd7f0763cd47de2db697dca9257c6a4adfd1a93b018cc75c8190ed5a8/tomli-2.5.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:bbaefc84548d754be821bba7c4141c4787dda182f9e77f2f87b71213529efa7b", size = 283582, upload-time = "2026-10-07T12:22:44.983Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ac/03/70f2bcb2923a6db37818d917e124270a7f4cfd38ea576f5aa753a91c0ef5/tomli-2.5.0-cp313-cp313-win32.whl", hash = "sha256:abdbf6313b8d9efe157edeb7ab6eae4de064b1300ad31abf73755154b30abe68", size = 102628, upload-time = "2026-10-07T12:22:46.508Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/dc/98/d52024bb5b0ff68b4f0d276d867f634c84a67319a7e9f6b7708a37742333/tomli-2.5.0-cp313-cp313-win_amd64.whl", hash = "sha256:fd4dc129784e0c5335bd4e61dfcc4487499a013419e655cf2da1d091b7e0efdc", size = 113301, upload-time = "2026-10-07T12:22:47.647Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/6f/f2/540db3a70572a8c23a28aba3e9c358ce0ffffbafc990905c1343aa265b31/tomli-2.5.0-cp313-cp313-win_arm64.whl", hash = "sha256:69491c143d2fe063046e0301e62a810bed338fa4d1ce0fd870c27dc1e09b0d84", size = 109744, upload-time = "2026-10-07T12:22:48.925Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/e4/49/caf6b307766eb9567664a8707e9d6be5fcc0e8903f18781c6677a60d80c7/tomli-2.5.0-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:d3182ee2d887e507bd67319a0a61105d1dd33facc111329559a233b772c1a105", size = 162899, upload-time = "2026-10-07T12:22:50.088Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/d3/c8/68cfce773a2733a49c74f99d627fb461bd990756860099eac25617889585/tomli-2.5.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:521345fd1f19d45b8df87657aaa38b6f2ca3800059fadf428e7ebf479a383646", size = 162080, upload-time = "2026-10-07T12:22:51.558Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/7e/b2/e5bb8651fdad593f670501a7d718b1a7f73f064d44dea15e04c04dfef45d/tomli-2.5.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:6e95c7614e705bfe2b04b27aa124adec59752d15813df37e2156747cab3a006b", size = 273380, upload-time = "2026-10-07T12:22:52.918Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/8d/d2/9e2d7f8b1dfe0e2b34c245986ebd55c4c553ea4ce6c47c443b332673253f/tomli-2.5.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:7ac2027d37c3afbdf4bdd377f2676f6f1d2122a5be1f1137b49dced590b37e75", size = 283228, upload-time = "2026-10-07T12:22:54.173Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ba/df/ec7b876b7b1a2718bd74a3743c076fff565b04029ba33e8f61fac262739f/tomli-2.5.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:c414be4ed9d3cac80c42e348fa5a956117d1a48227f48026e31f59cb4a7671eb", size = 277189, upload-time = "2026-10-07T12:22:55.342Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/7d/7b/e192d9eed0b9cb80da799f4d77052297fb9a2c3cc9b19f571f56ea88add6/tomli-2.5.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:9b03d7dc168353b4132965bde20feceabaa470e570c6f59660dfae59b1f9eeb3", size = 283632, upload-time = "2026-10-07T12:22:56.735Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/84/50/ff94454e75461d75623e47401ed323d65c10aab8fe9033242c20cd2fdf32/tomli-2.5.0-cp314-cp314-win32.whl", hash = "sha256:6f041843c4d3a37245c0c056fd955b186bf8b1fb85690cbe40b81230891dc34b", size = 103535, upload-time = "2026-10-07T12:22:58.084Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/54/0b/bdacf05f963bd6026ebf6eeb0beda847d1d60e03e440725c64a4e08a0afd/tomli-2.5.0-cp314-cp314-win_amd64.whl", hash = "sha256:f4b653094e18f9031102d3a1da5c729c8f222d85225b18037dac621695e46e1a", size = 114621, upload-time = "2026-10-07T12:22:59.2Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/61/99/53f438fa6ae4f9d4ed0ddde3e7242b3bdc34b48c8f9948b72b9e9b127676/tomli-2.5.0-cp314-cp314-win_arm64.whl", hash = "sha256:3f89d10c1ff6a38d992c27fc8a4816af71a909e08a40ec66934240b1e74347c3", size = 111572, upload-time = "2026-10-07T12:23:00.479Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/b9/20/1f88f19427d380a40e90a770e087489eaafe4aeee070ae88ed2bbec00acd/tomli-2.5.0-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:e9e15b4a6c7dd6b85b5fbab29488a73f1f70de516942308daa266bf0e0aeb0d4", size = 171814, upload-time = "2026-10-07T12:23:01.914Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/d0/56/cbe5079c9f9a54b9b3e27fc82f08f3cb36edee75561679f53d2380c801d6/tomli-2.5.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:e12bbcd32897272fb05929110362ae9ff4c1b9bb26bd9e971e71dcd3275b4c3d", size = 171324, upload-time = "2026-10-07T12:23:03.18Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/2b/30/1d53fd3b0f1cb3ba542e345ec32c26aefdddc4e829e4f3429af8a4f27782/tomli-2.5.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:20aa36de8f2cf87237143bc1fa1aae8d6612c09118f4da21c6a684db5dd1f6f9", size = 297441, upload-time = "2026-10-07T12:23:04.345Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/66/d9/0800acb6a111686f764c1b91ef15cc42a20a66a46013bb42220f1d2c61c1/tomli-2.5.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:22185fad8a1e622f064e78008018a0dd3323550dcb479cb7a1d296888d74024f", size = 307476, upload-time = "2026-10-07T12:23:05.671Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/e8/63/30a8f3cd51b5bec37f04744bad0b0dc6160df84aad4f27b0e9283d66f221/tomli-2.5.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:984012f71908165449a951de2050d52f276bfe3aa5d5f570f63ddad814370374", size = 296113, upload-time = "2026-10-07T12:23:07.202Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ab/18/0b9ffc597e69c5a1e20a7823cb60d54b39a9f54e91edcb8574f022186758/tomli-2.5.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:f79203b3965b4000e91808aaa7c040206093f2b8bf86f455982f2274c9ccf442", size = 307725, upload-time = "2026-10-07T12:23:08.508Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ab/c7/18f8baae0b5607a60e8e19b4a7fedee43a8ff6458e3896dcbbadeeac9c22/tomli-2.5.0-cp314-cp314t-win32.whl", hash = "sha256:91294a9fb94a75542f6e46e4a2ae709bd8d9b51134098cae5cf3bea5478b6d03", size = 108546, upload-time = "2026-10-07T12:23:09.956Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/72/34/4cca9739254130627bde87500b3f2b512154fe2f278efa7e2a5e10ad4bcb/tomli-2.5.0-cp314-cp314t-win_amd64.whl", hash = "sha256:f15e3e0b835a6d68b10c86bf80a3149780498d6911c93c3ffd1861d19f9200f1", size = 117814, upload-time = "2026-10-07T12:23:11.486Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/7d/fb/afa530d47dd80a78fce43beac6bc6e00f84558eafcffbc6f37b21e80d056/tomli-2.5.0-cp314-cp314t-win_arm64.whl", hash = "sha256:6664b7ae7af7294256c53960a6103077f4914cec8ff98479c352f622c6f6b2f0", size = 115188, upload-time = "2026-10-07T12:23:12.728Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/66/98/316fdc00f8c0939e6fe50461dd343c162d3ad51d1286eb25b7db54361d50/tomli-2.5.0-cp315-cp315-macosx_10_15_x86_64.whl", hash = "sha256:a525685c2f97da40762b8695eb7aa0af4c8344ca1905c73e4e29cb04d34607dc", size = 162775, upload-time = "2026-10-07T12:23:13.941Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/c5/22/7b10fa5bb01c9539f53f69b619361b19350acc73657772ea7ac70ba309a8/tomli-2.5.0-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:9dbb18c1cfb2f6517942fc9314437f66aa06d94436ffb1f06102ef3572f35276", size = 161406, upload-time = "2026-10-07T12:23:15.215Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/9c/e7/1a069d86dfd20f1f84f71c63faed9f83c1d890bc06c27d82dc7d888fb573/tomli-2.5.0-cp315-cp315-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:752e8b1aa6a4367ef8bf6a1a1e005540f7ed055ba36d7193796812ca5404eb52", size = 273855, upload-time = "2026-10-07T12:23:16.471Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ae/83/d1ef43d1687d092ab9c235455c76e6e709483b346b056f086095c7c263a5/tomli-2.5.0-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:c47300f9bf791808f77d82747691c4bb09cb14bdf3060cca99b42cdc4361d5a7", size = 284910, upload-time = "2026-10-07T12:23:18.166Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/cc/05/f4d9cf7de61822ece0c3873f30d291e324911c71a378b8bfe5ced13fd9f5/tomli-2.5.0-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:19b0dd8749f4ea2f112c5fcfb3c5248390c899d7e2e173f1d91abee1fa0ff391", size = 277723, upload-time = "2026-10-07T12:23:19.355Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/42/28/78262493141fa543151cf005760c3cb01d09fc28a11f993c05109902cb8c/tomli-2.5.0-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:57b1c3b01fab802e2899bc3d168dca320e14165e2fd9fd584760fb4ca5826859", size = 285115, upload-time = "2026-10-07T12:23:20.698Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/1a/b9/e1dab9a30bcb677b5cc5cee810609cfd64f24306a3055767dd3fda00b1e0/tomli-2.5.0-cp315-cp315-win32.whl", hash = "sha256:667e521b37a6c5ccaa044202c235b530f90177ffe2cd4a64ecc213c7dd535feb", size = 103475, upload-time = "2026-10-07T12:23:21.941Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/4c/bd/31a3790c11d6ea95fcf5e6022ac0f8d0543c9b61120b730fc481bd43d3b4/tomli-2.5.0-cp315-cp315-win_amd64.whl", hash = "sha256:d747252933c8a65ef6bd8da0fbb7ce28a90eb6119d8cd00772cd528aa07b68d5", size = 114589, upload-time = "2026-10-07T12:23:23.098Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/47/a2/4f6310fa699364f0e3af7ee3af88dddd9af066d33e716a0265bbe2b3ea84/tomli-2.5.0-cp315-cp315-win_arm64.whl", hash = "sha256:75dbcde8751b0a960aa3de173aa5e894d590755c6d7758b7e774c06f1dc3cbdd", size = 111493, upload-time = "2026-10-07T12:23:24.233Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/68/14/00853f0b396d8971107ae1921bb5b322fdee1650d2f16bf06c20adb532e5/tomli-2.5.0-cp315-cp315t-macosx_10_15_x86_64.whl", hash = "sha256:2419c2a189551987b59d80e63ec355671283336f41c6b9b89462df679c7d0c57", size = 171380, upload-time = "2026-10-07T12:23:25.512Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/89/ad/fa6949321dadee46b27363974fb197b94c911c3b0f7a5fd26d7dc18fc2a0/tomli-2.5.0-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:0dc598040da8d42cf20f0be588ed7004f46db12a0ac6c32e03a59dccedaaadcd", size = 170553, upload-time = "2026-10-07T12:23:26.855Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/53/aa/3056c919eb3e084df3752b2cf5f865dcc04af0b27dba2f66d7b28af4633a/tomli-2.5.0-cp315-cp315t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:49096930c8d886c9bbdab62d2d0d17ce823ddeea522309a190b36245d5b49e01", size = 294428, upload-time = "2026-10-07T12:23:28.132Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/96/b2/faeeb5d8769ea3832021d73e892c8391eae7b4b4f8b55a789127bd8b18a9/tomli-2.5.0-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:b8ade5023067f99fe72b88accd30d0ea05a158e9e32a11f124e731ea9695313f", size = 304909, upload-time = "2026-10-07T12:23:29.381Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/f6/52/f094c09e73fb654b621716d019acb5d29bdfd1be01df80c281d552bda48d/tomli-2.5.0-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:b69564772b5c8f22ea5f498dff08cfa825045b4d4c4400529000bdf818aa3b2a", size = 293220, upload-time = "2026-10-07T12:23:30.608Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/86/f5/0c30541078ca4b505ce3bd76ed931facbfec524dd018535d691d1af0a6d2/tomli-2.5.0-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:8ff3a2ca028c7eee0c777f9a092038d0a594a9fa04e215f929a22c329e2cb142", size = 305705, upload-time = "2026-10-07T12:23:32.181Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/05/74/590e7d19d6a118fc5cc5704ff358e21d95b8573f6b9443b1519f29ca8825/tomli-2.5.0-cp315-cp315t-win32.whl", hash = "sha256:62fc1bc8eb03e3a9cadfca713d65614ed8e09d974a283295ffe3a831976b4dc5", size = 108432, upload-time = "2026-10-07T12:23:33.496Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/1c/b8/63a75cfb27a17c38550e44025d3a6e7be64516fd8608a3b75703bf37d81b/tomli-2.5.0-cp315-cp315t-win_amd64.whl", hash = "sha256:f3fcbc57b1791fa6cbe5d8434179d51de12be1a4811469529f47f6e7487a2571", size = 117281, upload-time = "2026-10-07T12:23:34.648Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/72/01/e8c1debb2173973372934c68fc8e46170ab60ef23ed4592dff4dec6e8993/tomli-2.5.0-cp315-cp315t-win_arm64.whl", hash = "sha256:d2ba24db8a9376921b5e87b4762b9adb0f3f1deaea68f2b8b0bb2c11efb9c3e7", size = 115069, upload-time = "2026-10-07T12:23:35.77Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/60/3f/3e3f8fd0919249b0200c80fbc4f9a1e70be19f9883da71dfb7f8b9ab8aca/tomli-2.5.0-py3-none-any.whl", hash = "sha256:32a7b79ac57a2e83670ce329ccf675798bc5a2094783a63676866b70503f2e2b", size = 14765, upload-time = "2026-10-07T12:23:36.875Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "twisted"
|
||||
version = "26.10.0"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
dependencies = [
|
||||
{ name = "attrs" },
|
||||
{ name = "automat" },
|
||||
{ name = "constantly" },
|
||||
{ name = "hyperlink" },
|
||||
{ name = "incremental" },
|
||||
{ name = "typing-extensions" },
|
||||
{ name = "zope-interface", version = "8.6", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.11'" },
|
||||
{ name = "zope-interface", version = "8.7", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.11'" },
|
||||
]
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/fe/31/a5f99ae7f1550914b0702b8f78118d95a79da20525d26fbc1b2ab42bc8ae/twisted-26.10.0.tar.gz", hash = "sha256:5f0355403e507fc23ceea85e9dbb4bc59335aabde41dd324e8b8cea180dd38de", size = 3603405, upload-time = "2026-10-30T09:24:56.871Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/10/93/fdfa79229fdc19a6542086d46b5c5d424ee62a6408d25657e8690e0a745f/twisted-26.10.0-py3-none-any.whl", hash = "sha256:3732f42af218925a0fe78d6668db55853f7fb532245a89a2669babe7d3000fa8", size = 3251703, upload-time = "2026-10-30T09:24:53.864Z" },
|
||||
]
|
||||
|
||||
[package.optional-dependencies]
|
||||
tls = [
|
||||
{ name = "idna" },
|
||||
{ name = "pyopenssl" },
|
||||
{ name = "service-identity" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "txaio"
|
||||
version = "25.9.2"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
resolution-markers = [
|
||||
"python_full_version < '3.11'",
|
||||
]
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/2b/20/2e7ccea9ab2dd824d0bd421d9364424afde3bb33863afb80cd9180335019/txaio-25.9.2.tar.gz", hash = "sha256:e42004a077c02eb5819ff004a4989e49db113836708430d59cb13d31bd309099", size = 50008, upload-time = "2025-09-25T22:21:07.958Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/7e/2c/e276b80f73fc0411cefa1c1eeae6bc17955197a9c3e2b41b41f957322549/txaio-25.9.2-py3-none-any.whl", hash = "sha256:a23ce6e627d130e9b795cbdd46c9eaf8abd35e42d2401bb3fea63d38beda0991", size = 31293, upload-time = "2025-09-25T22:21:06.394Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "txaio"
|
||||
version = "26.6.1"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
resolution-markers = [
|
||||
"python_full_version >= '3.11' and platform_python_implementation == 'PyPy'",
|
||||
"python_full_version >= '3.11' and platform_python_implementation != 'PyPy'",
|
||||
]
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/49/de/52729cab9d2c8de679ad015e87f11f69e092d6fb3084eb9a39735df09ce7/txaio-26.6.1.tar.gz", hash = "sha256:3ee900b2331c93457530fddbccc1a320c4e2d7ac8f9073d01c3fbe87762ccb35", size = 134555, upload-time = "2026-06-18T14:38:59.096Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/91/68/075bf851e11c9ef65bd6a0426791f0d9a0c7dae0e7f6e0b16ca67334b456/txaio-26.6.1-py3-none-any.whl", hash = "sha256:91a84a7825485a367c0b070c7399824c0e1a1e8c071cbdf3882dd3146dab587b", size = 31399, upload-time = "2026-06-18T14:38:57.774Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "typing-extensions"
|
||||
version = "4.15.0"
|
||||
|
|
@ -1019,6 +1569,147 @@ wheels = [
|
|||
{ url = "https://files.pythonhosted.org/packages/c2/14/e2a54fabd4f08cd7af1c07030603c3356b74da07f7cc056e600436edfa17/tzlocal-5.3.1-py3-none-any.whl", hash = "sha256:eb1a66c3ef5847adf7a834f1be0800581b683b5608e74f86ecbcef8ab91bb85d", size = 18026, upload-time = "2025-03-05T21:17:39.857Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "u-msgpack-python"
|
||||
version = "2.8.0"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/36/9d/a40411a475e7d4838994b7f6bcc6bfca9acc5b119ce3a7503608c4428b49/u-msgpack-python-2.8.0.tar.gz", hash = "sha256:b801a83d6ed75e6df41e44518b4f2a9c221dc2da4bcd5380e3a0feda520bc61a", size = 18167, upload-time = "2023-05-18T09:28:12.187Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/b1/5e/512aeb40fd819f4660d00f96f5c7371ee36fc8c6b605128c5ee59e0b28c6/u_msgpack_python-2.8.0-py2.py3-none-any.whl", hash = "sha256:1d853d33e78b72c4228a2025b4db28cda81214076e5b0422ed0ae1b1b2bb586a", size = 10590, upload-time = "2023-05-18T09:28:10.323Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "ujson"
|
||||
version = "6.1.0"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/e0/60/ad782f70ce03d12ec23288292a17549ca537f9d188227340ac0d082421b3/ujson-6.1.0.tar.gz", hash = "sha256:aef7ea4cd9e2e9f8a35c4538a9780d58c80d76c5da66a8dad269b4cc6d930c29", size = 7264943, upload-time = "2026-11-03T11:37:51.182Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/5e/60/2741681694884bda0b68c6a684bdc51da3ad11440e8cb9760b72b1700cbb/ujson-6.1.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:82c5182ab7d0cd446145da29145908f740578c446b668f1c4c6a51650143b2bc", size = 54947, upload-time = "2026-11-03T11:34:45.972Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/c5/34/8987ae00d4852ef3060596b3596e5e22f3ee1c6dfcb967d71c3f0e065b55/ujson-6.1.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:0fbb5cdc39d7d224fc0d0dad20c1d1709c41512b5ebb5bf8bb7b53a7776de489", size = 54233, upload-time = "2026-11-03T11:34:47.828Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/c9/3a/e84188b43a69407ee2378a21315d3f084e49e7291226cbcb18166ecefe1c/ujson-6.1.0-cp310-cp310-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl", hash = "sha256:ea734b60682088e1ab313a9b305d67401c3344f9f13cdb32f9cfa61620a30a50", size = 58296, upload-time = "2026-11-03T11:34:49.109Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/be/f4/018d7f5c736f176c68725e06844b8c15f92f99f580ad5e9a3f5f48630a8e/ujson-6.1.0-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:0de51d6a0687f0bbd0196dfe6bf323e2de7a839eb02800c718c9df2f7cdec494", size = 52394, upload-time = "2026-11-03T11:34:50.512Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/86/7c/e2aba7db4ee72aa2cf704b9452d1f4eb3ad7af2b51ef44a30177676523c2/ujson-6.1.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:6dc2e1ce22b6fb9f6fccc3230c43ad3d72077616f630f708f2e43d307a919cf9", size = 53491, upload-time = "2026-11-03T11:34:51.666Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/00/4c/9c40acd512e4ae879b90089e8302178b4710d243780cb769c4cf2f9ded3a/ujson-6.1.0-cp310-cp310-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:6aa8bed41cfe3b558c734aba1f768853372b64c11b97b5410623126bdebc06b0", size = 57177, upload-time = "2026-11-03T11:34:52.896Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/be/b9/1be3f94a1a54c984a4d57d6304cf0a3b908891b29ad28291f73c347feb44/ujson-6.1.0-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:67685972c2d58ae66c8d2382fe458da0c8ba94fa4fe415301ca4c237959431d1", size = 56230, upload-time = "2026-11-03T11:34:54.392Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/cd/c1/7a8edda074bcc77ea2a0fded45a47521b801d59c685b6c6f74b327d7f2c0/ujson-6.1.0-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:4d81eb3d2402e43c5c2da387e36da774742b6b83d253471e69bd42168e41b213", size = 1040201, upload-time = "2026-11-03T11:34:55.975Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/56/45/972a499fc94614898affb3619f9c12826af8b70308fff885012e4e0f3414/ujson-6.1.0-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:0a14a1709b6b1832666138fa0a081705cb29fbe80a55dc490c60d9b01f3f6f89", size = 1197250, upload-time = "2026-11-03T11:34:57.687Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/7c/4f/e34824e602c27ff6ecbe6e53a1df81788f85bad0a2059156f4cd5bb0173f/ujson-6.1.0-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:ab21dcfa0adc7e736969cba8b88cf32242ba3a234a0d9d174d5eaf6c314f36f9", size = 1089510, upload-time = "2026-11-03T11:34:59.179Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/93/86/d31eb618407c4e728ff82b39fc7a46ab875a96225b4c7abd747497d462ef/ujson-6.1.0-cp310-cp310-win32.whl", hash = "sha256:0454d3d50d47d57fd3577d0fc369f03a64afd1322b8b4198eb6f622664401497", size = 229053, upload-time = "2026-11-03T11:35:01.023Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/d9/38/152f70833c035e34ada4903b985e5fce17d1993ddbf85b4d1068f8689961/ujson-6.1.0-cp310-cp310-win_amd64.whl", hash = "sha256:ab2c68450c5bdd12a3bbe36a5fc4426e12e11f23d36cc51e290a916daacd7ac2", size = 227241, upload-time = "2026-11-03T11:35:02.787Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/f0/dc/237028afa513a620e739f49e553e124f898081c582a8c80a978a47ef8628/ujson-6.1.0-cp310-cp310-win_arm64.whl", hash = "sha256:45c106e5781e2d16d72574f6df404150d43ed7d5a064f0b1f30484354477c421", size = 398178, upload-time = "2026-11-03T11:35:04.337Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/70/09/321c6e7a23f0b11cf37e0d9e4a92a89fe1167c51f412a5e616d46a71b7a9/ujson-6.1.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:dbcbff58a8994a76f92724198022d78fbb768098b977680fd36fb57238bd55fc", size = 54939, upload-time = "2026-11-03T11:35:05.707Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/6e/b9/d6476fbeba2af3eeee36956f138b362daf29e8a64328bea8b184a991c7f2/ujson-6.1.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:e6f1553812fbcf31170910c3a0859dae6f11c534f7462501e2df8499337e487f", size = 54231, upload-time = "2026-11-03T11:35:06.908Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/42/c4/316703b9754839830122d9021f276e8190296ecb06e7e87c0fbff87a1a35/ujson-6.1.0-cp311-cp311-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl", hash = "sha256:4dd210edb6a996afc4291dddad34b0ddf2d5174f67baa844eb8529ec85089a8b", size = 58319, upload-time = "2026-11-03T11:35:08.147Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/24/f5/9f59ba8f0d20944a3bf8c1d72cf3fe073e005a23eee1096ce735bc5e78d5/ujson-6.1.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:716d2c908d2f7084462d259e93bf173a87ca624bb918474b8372d67185387fd6", size = 52429, upload-time = "2026-11-03T11:35:09.597Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/75/33/d37148c498a55bf8b6d8d993acb238209330455e235bb757878652c707b5/ujson-6.1.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:11962fe4b1acd459cdcc92de6a2c686c569fbf2ad5346078dc8414fe571a6ba3", size = 53502, upload-time = "2026-11-03T11:35:10.774Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/44/14/1f74ced3d5efaf39e3af4b348acb85e5cd9cef1b3057b5bfa2e27e263e1b/ujson-6.1.0-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:ddd2286869cfeeb2d361a2b16056d362310d2d177b2057a88b3c7f2bf998aff8", size = 57183, upload-time = "2026-11-03T11:35:11.954Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/a0/36/3ee1f0a5912cce901146545db092bfb4156ca80cfa9f6ec2074979e570c7/ujson-6.1.0-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:1134719e111d00d81f185972a1180f35219027b05683d8999e2c893edd849c1b", size = 56248, upload-time = "2026-11-03T11:35:13.177Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/3c/75/d04c9e4f6b63c0545400c44002effae7571f7eb408932a9a13f1f47ca00f/ujson-6.1.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:692f0784d87b7e63dd8997d5265d5555c909d7c283dcb587ced4fe98838a96c1", size = 1040222, upload-time = "2026-11-03T11:35:14.688Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/2c/25/5749bb463a5f752addf24361131fdb959bd09413e82fd0ec196fe8d7f869/ujson-6.1.0-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:8e9305b1a935243491a2ab666f5e0c1ab2a283a17d8d0eb6f4b43680c7057e8c", size = 1197279, upload-time = "2026-11-03T11:35:16.331Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/f7/8b/93e9c21a4049e33595c1583b29b52e24bc0d99e7258b92f0131bfd886db2/ujson-6.1.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:1b2ee2c405956300fab3aa6aeb390e214058c4dec9b490d7ec5d9d612c621872", size = 1089533, upload-time = "2026-11-03T11:35:18.118Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/e9/50/08d37d81552fb262a45632986034c639817194b4e17b6f4171522661df6a/ujson-6.1.0-cp311-cp311-win32.whl", hash = "sha256:5213f520ac9b05296aa847790ecb310f790d5721fda3a9d8b51b5bbc90895e0c", size = 229049, upload-time = "2026-11-03T11:35:19.711Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/f0/52/e91e9834cd3f90067e5ab69da0f92fbbebc379cb7a4877b6b7db0c322dc0/ujson-6.1.0-cp311-cp311-win_amd64.whl", hash = "sha256:637a4f7e720275f3aacd783ccca5c68b6e9abeeb91a4c6d723d0310838fff40a", size = 227240, upload-time = "2026-11-03T11:35:21.097Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ec/92/2cb44ea91cb55fa5a9b17eca5e0e339c705de11c77ce8492aaa4817acd15/ujson-6.1.0-cp311-cp311-win_arm64.whl", hash = "sha256:f9841fb9db3eeda914696a704d74f1b241839f9302c6e4770d16b0af168bc7b9", size = 398172, upload-time = "2026-11-03T11:35:22.582Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/83/69/5518613a977d0b7bef16a1b9daf221fc4c936e78e17c54fcfdfc8aef3b95/ujson-6.1.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:d2ca5a89ab3fe08efef4addc5dd553b7c17441c0c92fdabd3cfe47a66090430d", size = 55109, upload-time = "2026-11-03T11:35:24.076Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/36/48/e8ce274450e7a9ac64f5fa4e6407695c62baf5b7909ff6aec72419adf680/ujson-6.1.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:dd11ae29a61d0e2844937047eb14a970a790e76d306affc70d661446af4707f9", size = 54244, upload-time = "2026-11-03T11:35:25.247Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/56/99/8ac27a65f03b697f8035a5b89d664216e9cbab6ea31e2ddef895e456bcb3/ujson-6.1.0-cp312-cp312-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl", hash = "sha256:a59b575e4f2feea944b0b771768bf4b5a07bf4adb257cba70716f51d952d4a62", size = 58490, upload-time = "2026-11-03T11:35:27.03Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/84/9b/d69ed0eacb7279035300d7f680a284d6b5b6a280719046d7af031449a4e3/ujson-6.1.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:0d88d64992f640593477de2e90c2b5033b5e2082abaf3d47e7b9080b1022e705", size = 52372, upload-time = "2026-11-03T11:35:28.175Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/89/2b/7bd28bb72e20638fc18bef8eac5bf3eebd8c776293b58e8e74ecd9eb746c/ujson-6.1.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:bc8678ee265df15562b382d6a446bc0e5712f41b08e5ff59fd4ae9e28c7ed4e0", size = 53716, upload-time = "2026-11-03T11:35:29.559Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/64/94/5010ada71d7c161d502ac94111526eb8ec2d481cfb3b45bf2cf7fcbe1e01/ujson-6.1.0-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:4d43ede5685ad4b155c661fc810e8ea1c045e361a8552c3c1b4c2d94815af00b", size = 57184, upload-time = "2026-11-03T11:35:30.784Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/57/68/55905e7264c99b00af466accb4a61ce4a041af96ea7e881fa030ebb6fa06/ujson-6.1.0-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:94324dab8c3918b47188b6df9fee7c013013c96d4d131c62b711ec3084c1b29d", size = 56408, upload-time = "2026-11-03T11:35:31.996Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/19/10/95b2fe426ab5d2da6aeb4ca8ad41cd1ccc5bab88334f019518f6113dd89f/ujson-6.1.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:e2fc45d7e147b0ee0f43bc184c0007e7e5b60c4ae01bb2b9b9caf7600be1ac9c", size = 1040215, upload-time = "2026-11-03T11:35:33.461Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/0b/ae/bbf8035899a9551d31bb9038bf22570bd8463d724824113bcd63b91286f3/ujson-6.1.0-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:0b7a061f494fbd13e06043df2b6da95f463d54537de407a542e306a72673dd24", size = 1197522, upload-time = "2026-11-03T11:35:35.618Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/89/4d/2d34f5655a9774e54ab4fef74b8e87deb7ad734d2cbdfcec5c295c7f4786/ujson-6.1.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:f8371bc2e5c7453f350101b0baef4f792b6f9a5d1cccf89f6a138f1d0b4871eb", size = 1089750, upload-time = "2026-11-03T11:35:37.547Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/df/82/a9fda163b92fc17ec4645810963a5ba1f552b41498d770f5ea6f31c2c435/ujson-6.1.0-cp312-cp312-win32.whl", hash = "sha256:a0da1bae7fee582e4764a3937531c509318116002da6b49ae827f998bab39f64", size = 229123, upload-time = "2026-11-03T11:35:39.081Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/9b/69/6fde228dc9b1499ac1bff695432732af2cb5001a1fa2861f7c0b80f80edf/ujson-6.1.0-cp312-cp312-win_amd64.whl", hash = "sha256:5abf10fe9d4c07f8dc069d324d211e09cd21026ec91762554a58d2ba942fb26a", size = 227514, upload-time = "2026-11-03T11:35:40.467Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/c0/f1/2a43967d344ae09ee4c06859474bdcd2f2f7fac9a04f3981d45d7088b36f/ujson-6.1.0-cp312-cp312-win_arm64.whl", hash = "sha256:d296841bca3becbbabf188ce65b316a747114101d6e1f3b57475fc0baf677e75", size = 398204, upload-time = "2026-11-03T11:35:42.102Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/23/de/8b230d418872d27240b308a5f3ff03fb88c7b2ef74c60826e7be95b104d2/ujson-6.1.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:d2796205fa75411654b7f28832c982707b8192e8849d4fc4e41667b8fc7ee9c7", size = 55110, upload-time = "2026-11-03T11:35:43.573Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/d9/03/dd3ffaab7c34e791b7be68445626061b20095059155d42e9c948c506c9db/ujson-6.1.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:ccadce44061e3f5552e393f0f47075e5f338eb6eea8ae769ae72a1550406954d", size = 54238, upload-time = "2026-11-03T11:35:44.796Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/a9/a5/4e403549bf6ec22b17645f3be8a4e6fa46fae771d4d5d1ea254fac87ff44/ujson-6.1.0-cp313-cp313-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl", hash = "sha256:1d5ffaa6b4e4e58fcf270f6ffb154bc30cd2cc32e886c721d25445930f87a98b", size = 58495, upload-time = "2026-11-03T11:35:46.079Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/42/0d/d120aeb3de500addd04079959fc2b9898d6c673b8d83fb69656aedbd251b/ujson-6.1.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:e99540a9a81b71904b3783557bdaeed15649a6b700a3b315a22e8cd3c526d520", size = 52374, upload-time = "2026-11-03T11:35:47.318Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/5d/09/03bb90bba2faed79f14d60612a670f80dc57ec712b61658d6110cfcfe73a/ujson-6.1.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:4b90c4be08dd2d0d59f61ff77204c3da0b88c582c3da944915985c35fe683e4c", size = 53717, upload-time = "2026-11-03T11:35:48.534Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/1b/27/7df525d20af8b316232dd83316c12a466ebb2e6861722769c77a734b547d/ujson-6.1.0-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:4adf3db18485b8065c18272ba5db8aee9f6672101b48d0401ad25df4381a5588", size = 57185, upload-time = "2026-11-03T11:35:49.758Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/58/32/ce259f0edc360b3b2d08921332b619847f16d45c18257843b134a4fd23b0/ujson-6.1.0-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:b6f56bd474e726627b25d245c6c7c77f74c0cc36de6c08a49036b641936735e9", size = 56412, upload-time = "2026-11-03T11:35:50.992Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/b8/57/380334920296368aa199eba2aa6cf61510d30021c65a4effddfc2ebb8d5f/ujson-6.1.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:05c620e807139a8996a29d840bbf78b57d2f086ef1b140c0b4061f6beebace56", size = 1040216, upload-time = "2026-11-03T11:35:52.517Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ad/05/e8df1a6d1927888255cbc560e6598d4693ccff6e6e27f0eee7430ac34e04/ujson-6.1.0-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:374eb13837614587d7286178ff95bf46385b7d160e4123439c8c48bf673d2420", size = 1197526, upload-time = "2026-11-03T11:35:54.335Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/91/93/258be359b1979eb8c61db144e6d1e7acc92cf9e3bfd02cc2f6acb592df50/ujson-6.1.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:6b2cf4416d97c2e457732c2b96ebcda8686a60dbe2bc1f9f2af8b20570912604", size = 1089762, upload-time = "2026-11-03T11:35:55.798Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/92/0e/184294339617be82f2184ff19f2b4e0287474016969af8b53ffc8c1936e0/ujson-6.1.0-cp313-cp313-win32.whl", hash = "sha256:2c629ed38789c01f982dceeba0f1f22e6ff1175001df1a3a6e771110fac74d68", size = 229123, upload-time = "2026-11-03T11:35:57.331Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/45/6a/1aadd4c403bf5753e673a6ad0bdc2c69745c4a28f556db6b01dbae375f7f/ujson-6.1.0-cp313-cp313-win_amd64.whl", hash = "sha256:d06b767b8bdf43cdb45f9a6e76f89b198de304b02c548fdf0580d3b679973532", size = 227518, upload-time = "2026-11-03T11:35:58.695Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/bc/40/092dd8ff8b2ede4241ddcab26204a010cc6bb4faa93d2c12fc88e7cd0f83/ujson-6.1.0-cp313-cp313-win_arm64.whl", hash = "sha256:fb99cc713a6236ceb8d8d976837861dd2927231a40a72422d0bec9569f48d47d", size = 398209, upload-time = "2026-11-03T11:36:00.187Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/76/30/d780be689df2173225a67c4bc046922a3fdc7dd64367c2b0ebefe9bc7c43/ujson-6.1.0-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:b0971356e7b928f4089eaded70e0789c8ba06fc32c269daaddfcde6eed08b8f8", size = 55204, upload-time = "2026-11-03T11:36:01.799Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/7a/53/fb59cbca5822c5d2fd8c841e2828fc5d84c22bb12e7c0e772b11b81e9a1c/ujson-6.1.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:9242c01ab5bb98b42d4afcee33410fe02d4a2aa29ace84886437988a70c27a67", size = 54298, upload-time = "2026-11-03T11:36:03.066Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/f7/ee/1b14c4a44ee11eb4fb3b32d75e24198699d31c71579aa7485d2774508cdb/ujson-6.1.0-cp314-cp314-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl", hash = "sha256:d6389ca21a226d5d505777013e9878e3a9e1f3382eda11524242ab1a6df9b52a", size = 58510, upload-time = "2026-11-03T11:36:04.287Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/16/c1/9b20c828cab9641be286118ef8428de2eff13dd217c1455c84b523bfd9e5/ujson-6.1.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:f69916aab2d1867a926328acad2c0cb123d891a6abb0ffa55ffb0c42cc2e28a8", size = 52417, upload-time = "2026-11-03T11:36:05.584Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/28/30/b4f7bd695b40feadd11b0649d58983f31fc28bcf5ed3fd208d0c79254a40/ujson-6.1.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:e39817d2ed15104ea7db50ab767f612bf3e8a09c09f4aea90fab403181755108", size = 53704, upload-time = "2026-11-03T11:36:06.91Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/89/73/3a1f7f8a73d7a3257e15eba7b048916bb5b130388f4a6e4ce7aa06cdc511/ujson-6.1.0-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:cbb6e7db934f3ff99f2ba1d8026d97ef397e95dcbbdd9c0cc8a61e6765e6d538", size = 57230, upload-time = "2026-11-03T11:36:08.117Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/af/b0/458b7210aafa532e6c6f35adde59d1b34180f775d4f309e9829eb1233dd2/ujson-6.1.0-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:7efd19d1af7fac349342b43364de764a924a83339341faec3fb7d06717931f36", size = 56408, upload-time = "2026-11-03T11:36:09.516Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/8a/1f/c5f8824930c9b47d862b195d003aaf7d3ada3af511e60d21d7739741599a/ujson-6.1.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:d1d799260ca570c0e5a7c95750691f4f1728a8e8532383bca0ff4367562a5df2", size = 1040349, upload-time = "2026-11-03T11:36:10.903Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/16/2a/0f41120df5a6c6d1b33cfe0102216d5110b02fe70ac9d14203be9338d7b8/ujson-6.1.0-cp314-cp314-musllinux_1_2_i686.whl", hash = "sha256:610ce1b2c320473183301febe1819b29f032d5221b1ac2f3c6a948d4f51eb79b", size = 1197600, upload-time = "2026-11-03T11:36:12.455Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/bf/e9/008b4336cc9e9af83f3ea9b68a37c3e407b3a513763bd56885d174b4ea5f/ujson-6.1.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:2dea3ca632cb4d3b423aee8a7ce8e63eaf780b25e98a706ada301303097ee44a", size = 1089808, upload-time = "2026-11-03T11:36:14.026Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/6c/5a/75bd646a1a8d888d8e1794d9701ad9ca58d94cd6b08d4817ca9b7a94ebe7/ujson-6.1.0-cp314-cp314-win32.whl", hash = "sha256:c932d6b22d1b96874401bc63d2a2826f98eeefdc69618db390a25e3edd953dad", size = 235841, upload-time = "2026-11-03T11:36:15.451Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/a2/52/a41b5f99a17b00783a28a8c9f2ae4e678d7e5b68f02023698c3084dc24b5/ujson-6.1.0-cp314-cp314-win_amd64.whl", hash = "sha256:9f1a495bf1b2c3f462ef9c91da9e2a73031c53c39dd3a58b31881cdb2fa834d6", size = 235354, upload-time = "2026-11-03T11:36:17.037Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/92/04/9a98a36f3fde5bbada32d7738997f2e334f3d17fa8c48e56bf7e2d80ff14/ujson-6.1.0-cp314-cp314-win_arm64.whl", hash = "sha256:ba458a1ea3792999733402afc0addfdf242dc4be628df50a13dccfe237912a2f", size = 411535, upload-time = "2026-11-03T11:36:18.658Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/68/c6/1de05d0dee65af10098f34f64313eaba518a7f1d559e04247d5d4bfc924f/ujson-6.1.0-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:9b393e61a50b82ad081e3fa7d05dda82aed55d03cca87069c9071c362b5e17f6", size = 55656, upload-time = "2026-11-03T11:36:20.093Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/4e/bd/970af29478c3ced086e8814e6452d1f28505c27f06dd4d36418a40db79a7/ujson-6.1.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:b1fe4a5719daec2a9d699ae21cb182ee1db2960242db2d916e84bee5c03705fd", size = 54726, upload-time = "2026-11-03T11:36:21.298Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/79/e9/16cbdb918db54900d340ee99fd574fc9586cdef12a3b8e7b510edcda6a04/ujson-6.1.0-cp314-cp314t-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl", hash = "sha256:09f74866ca6bc1d84bb55815cbd9fd5e839828a64385b0f30e352df31b5827d4", size = 59301, upload-time = "2026-11-03T11:36:22.512Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/70/82/3edea7bb72153f8db17404792e4931093331033eadcb6ad4640d9d3d9d53/ujson-6.1.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:dab9ce9fe4427fac22065c3d233a4a103a99d5c6770d052444d5d65cd1b48662", size = 53360, upload-time = "2026-11-03T11:36:23.702Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/26/10/d01a9ccac5d4d1bb74844474e7b58c315727e7aa91ededc6a0ed67825afc/ujson-6.1.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:bd8b59166d25bc2b409bfa7c0b410fb5147c04df42460bc39512c6cbe40d72d1", size = 54446, upload-time = "2026-11-03T11:36:24.91Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/8e/6d/98697f02dfbd67d0948606a0dc15fa877efcd0b973b459ea9b149c9ff1a1/ujson-6.1.0-cp314-cp314t-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:1a380d1513392ecc429377b63fe25a974254e336303b9524fe12b28a6c3f9ea9", size = 58264, upload-time = "2026-11-03T11:36:26.103Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/0f/59/e10dc61489ae4a6469775057d760709166999efa1245ed7e5bb2698495aa/ujson-6.1.0-cp314-cp314t-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:a4ce7f0f476c5234b299bcc6fc0653e7d0eb2eb5b4536df8858f24ce8b8a0330", size = 57150, upload-time = "2026-11-03T11:36:27.325Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/d9/11/022ab0b9688223499f505be64383c426ea951b446ca43be05b0c1e1fd81e/ujson-6.1.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:951f75ee11a03d33b53dc07367af771c38ffdf82d5ce5862dcef21c6f76f21fa", size = 1041322, upload-time = "2026-11-03T11:36:28.888Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/b5/c1/d94d0e7587e26a46fbeb33dfa40f903fc919fce4345eb5910abb768afabe/ujson-6.1.0-cp314-cp314t-musllinux_1_2_i686.whl", hash = "sha256:109c9d26c6cf98a4e1d3fc7a8816099b3670be462e0e19f8948dc6f38220bdff", size = 1198401, upload-time = "2026-11-03T11:36:30.685Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/08/68/8403846d68dcbfe0ad91e453f2c218dec668373fd7d05edfe93098d951af/ujson-6.1.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:28f9983decfa161696d20ad762f6b60f2058a42ec396180ac8ea1a35ade563b4", size = 1090596, upload-time = "2026-11-03T11:36:32.321Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/f8/0f/a9e4fc2cf5e8764955bba07766737e3a2661f6e2a66b5c477fb1127cef90/ujson-6.1.0-cp314-cp314t-win32.whl", hash = "sha256:de20eed0687af0e2e7565be506267b6b52472bd138ac670436c2d1d6269b5716", size = 236539, upload-time = "2026-11-03T11:36:33.818Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/04/a9/d1a21518a1849aa1b164115ba8c6cb664b9a8c2191c130c970a6451615b5/ujson-6.1.0-cp314-cp314t-win_amd64.whl", hash = "sha256:bd489325cea24813c7393fd84fb54527b163bc7794328830f3947f2bdbdf296e", size = 236199, upload-time = "2026-11-03T11:36:35.339Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/08/eb/daecb8efab874743f8b70ed28d399ca429f9bc313410afcb8a2d6e5dbd57/ujson-6.1.0-cp314-cp314t-win_arm64.whl", hash = "sha256:d02280abd1503d5c006b050f26189468f1176d3c9f2f1a6dcd8f579ff26fdf39", size = 412103, upload-time = "2026-11-03T11:36:36.949Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ee/0b/3e6a3da45e0f3c6bc8272e16211d19cdb0c77c203deb4ba5ad490e0bfc74/ujson-6.1.0-cp315-cp315-macosx_10_15_x86_64.whl", hash = "sha256:e304cd9a047ed6ca935260ef3576cb0114e2cc805195cf56f70e44b4fbfbe07d", size = 55210, upload-time = "2026-11-03T11:36:38.561Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/21/a4/034928056f1c7787d54467b40636f8af8a0629c921fafeba6e85ddfbe01e/ujson-6.1.0-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:551efea70d919705e8b0e1c6d32dee767602af03456f5c281b80aeb298c5ae70", size = 54369, upload-time = "2026-11-03T11:36:39.728Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/79/62/23636b0eca922c44616de9148c1c4c597778a7fca092e807a49b977b5423/ujson-6.1.0-cp315-cp315-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl", hash = "sha256:b77f71409742fbdf30baa2c0bbe1323683f91a9cc9a8eddbc4cbe0e4146a9eb2", size = 55685, upload-time = "2026-11-03T11:36:40.915Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/0f/fb/b764f0cd5789e3e658a1db20c8df8f61bc77b5dee5165262ceb92efd3959/ujson-6.1.0-cp315-cp315-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:c921b2ef1cbb1cc101ad112d06dd37e010cd442896887986a088420bd87e9924", size = 52644, upload-time = "2026-11-03T11:36:42.081Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/54/ba/094d29b34d74b62986f638e5e5544ca89209b38e35b33ae5ad05b4b1a47c/ujson-6.1.0-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:8f6e6a3fc2f5a52ad0552371b2722ae10610698a2096b71fcea8d884c4710a5e", size = 54002, upload-time = "2026-11-03T11:36:43.367Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/17/aa/96795266bc8a33604a0da66d2a5707e9290c4e90a2132b8b0e8aa1ed8e2a/ujson-6.1.0-cp315-cp315-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:87256fb223813ea0e662055ca63f8f098839e6886e49dd5579f3bd69d2cfd5af", size = 57413, upload-time = "2026-11-03T11:36:44.577Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/67/cc/3d0070e30d0df8723dc7dc48e2d3dfb6cc69e10e3a870e66f97d988b9556/ujson-6.1.0-cp315-cp315-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:9af5fd2c64587fe53666f50845cb8d207b4b975a47eace70c757c9c4067caff9", size = 56436, upload-time = "2026-11-03T11:36:45.821Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/82/a0/faf91b2486598348e318dc242139ef019598649329b94c7c94e70e815ad9/ujson-6.1.0-cp315-cp315-musllinux_1_2_aarch64.whl", hash = "sha256:becd3d1656ea15620dee70fefda38b116538c290681ead8851b3f14f2061c80e", size = 1040566, upload-time = "2026-11-03T11:36:47.322Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/dc/2a/4243e0a78b1fbd74c0cb037863c448810a35aa2a3bb36c6ab79e757b48bb/ujson-6.1.0-cp315-cp315-musllinux_1_2_i686.whl", hash = "sha256:951562ec30dea1c4c5f927abf8b6ba5e015c642c23edb695fd59d5521c8a4d74", size = 1194906, upload-time = "2026-11-03T11:36:49.537Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/77/bc/fb5b19003c9871c9c091d5135469fffc0f8fd5c685be8487fe6e7d4739c9/ujson-6.1.0-cp315-cp315-musllinux_1_2_x86_64.whl", hash = "sha256:b595bd9dfdfcbfd2d5930e211e11d26f6be73b5a419c54c94d0243d3b7d2d210", size = 1090013, upload-time = "2026-11-03T11:36:51.303Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/cd/c1/6c96eeb694c709ce7806d23c16ef94a2a92b139ed50781f3080a9840299f/ujson-6.1.0-cp315-cp315-win32.whl", hash = "sha256:9ef5fd0f484ffac4d980a4379943577cbe64fbdd0385886e8b39c9175e75471b", size = 235838, upload-time = "2026-11-03T11:36:53.117Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/58/f7/dae355588ffe923694f2d3db21ae1855f7b410fc4165dde254ddd303d853/ujson-6.1.0-cp315-cp315-win_amd64.whl", hash = "sha256:b95329019689df2751527cfb3329c6d2d8a1c53a77078bd84f9a289ad368d39c", size = 235346, upload-time = "2026-11-03T11:36:54.474Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/af/fd/626c573a5113a98810b532e928f7cf3dcbefffb261c9a489105fbe0e97dc/ujson-6.1.0-cp315-cp315-win_arm64.whl", hash = "sha256:da2828b0bb7be7fd2260710823a1bf430f0103d223a574343f56aa81aec8a9dc", size = 411536, upload-time = "2026-11-03T11:36:55.976Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/1e/a1/a87a8aa2f175a9db7cbdf67a8a464fe5e3a730bdc27bbf42d4a1a3768644/ujson-6.1.0-cp315-cp315t-macosx_10_15_x86_64.whl", hash = "sha256:8f3bae8e2fbf544a900ac17fd6c8607b168d403c82c5cb65d5058b5d1f03d7ed", size = 55662, upload-time = "2026-11-03T11:36:57.214Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/93/1c/7a2168e67a4588e2d4aab84978a11dd127d83d6b01f1e96f74fb67a0c1fa/ujson-6.1.0-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:decd9a239aff7b879cd62590a8db7381606500163a426b41866efa336e371b2c", size = 54823, upload-time = "2026-11-03T11:36:58.407Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/00/4b/cc79689403ca6deb92f3fcbd906c172e7aca3ce0f479aeae4c8864163e08/ujson-6.1.0-cp315-cp315t-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl", hash = "sha256:4827c392666b797f06a8c9542051ead48a01b6b39711317860cf05ca30f44d7f", size = 56650, upload-time = "2026-11-03T11:36:59.619Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/f8/a3/c92a99acd2a707c72fe82de12c2d198c3448555a60e4caf13ae045c0b4ce/ujson-6.1.0-cp315-cp315t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:b1fbc1d1555fdde16c5c961c01b5a842d55e95361948a59300dcdf4cfc6d51de", size = 53684, upload-time = "2026-11-03T11:37:01.053Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/7c/33/255c3ad5ecb0cdc3435246e3f95cd334f90152f34ef59812b8441a09d8b1/ujson-6.1.0-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:3762c0576e9563b392480bb3423d94a8c604150505d175975bbda63a691f7a0b", size = 54871, upload-time = "2026-11-03T11:37:02.255Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/48/53/bada730eac48aae561944a718056e1318f111018d5391e5c7c4daa5610e3/ujson-6.1.0-cp315-cp315t-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:459cbd965b7c1412e5ffc6046d3976a619309e992206ad44b315f5928e13f03e", size = 58581, upload-time = "2026-11-03T11:37:03.671Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ed/89/6340666aea31aec5d6de6632068fa71780887293d380664b6cac120fa5cc/ujson-6.1.0-cp315-cp315t-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:b9eb8c8dddf6a12080f6ededd1825675121c8855973cc35ebe969d843569f9a7", size = 57409, upload-time = "2026-11-03T11:37:04.87Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/72/99/04b4c7aa91d438f1c712278ed4c129536de7f67753549760a864b0c40d0f/ujson-6.1.0-cp315-cp315t-musllinux_1_2_aarch64.whl", hash = "sha256:3eb3c920b09d1b336ccd0700d4e3f63bb749ae56ef9f0a75d8c48d8a02dcb601", size = 1041683, upload-time = "2026-11-03T11:37:06.372Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ab/51/b39b0824111c4ce88c8e071b01b27ace7f0a58c4aba15a3a4e567dfb919b/ujson-6.1.0-cp315-cp315t-musllinux_1_2_i686.whl", hash = "sha256:528b523cd859ccbb3f9c4c5c12f9e1cd73c74a4a9f78cdff8d47d9f1371668f4", size = 1195915, upload-time = "2026-11-03T11:37:07.888Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/fc/01/9077c0475d439c1429c0620b4c085574f5c709e0167c3fd347e7b1ad47a4/ujson-6.1.0-cp315-cp315t-musllinux_1_2_x86_64.whl", hash = "sha256:bafe9c1331624b782885297f8dd12b0a482cd782b67c54205e62d71c1997ed7b", size = 1090913, upload-time = "2026-11-03T11:37:09.551Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/39/9e/2532a7f67989646b243bb137f50ffbfcef2135e9e8e5c44d0228ca584d55/ujson-6.1.0-cp315-cp315t-win32.whl", hash = "sha256:de93026ba751ef2545b626ea60044b6eaa1849f7adf3a70b17320748bec0c80d", size = 236543, upload-time = "2026-11-03T11:37:10.938Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/b9/18/d7d8c4a23c85b244bddf097983431fec04ca17eebf03344bfae2fe7fb490/ujson-6.1.0-cp315-cp315t-win_amd64.whl", hash = "sha256:27775e475381c44a2e8f0ba41346f639a22826a5d94aff1b455c4bf063a3e863", size = 236183, upload-time = "2026-11-03T11:37:12.357Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/71/f4/80a44c1c6260b6eb9786f501244df55ee1cfd264a54417795015df8808aa/ujson-6.1.0-cp315-cp315t-win_arm64.whl", hash = "sha256:f4c353b5771499a33f648b7f2b2caf62c4b15f4e58a4be52dd540d2d5313fe18", size = 412115, upload-time = "2026-11-03T11:37:13.733Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/51/11/0ac4524561cb065744f908199bdea8e1ace934c8be117ba75484700dd27b/ujson-6.1.0-graalpy312-graalpy250_312_native-macosx_11_0_arm64.whl", hash = "sha256:debd5dfe3f89fbcb92fcff566a7eab705fefcce892a890430a73ed9f423e7d11", size = 58102, upload-time = "2026-11-03T11:37:15.074Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/c7/cb/a963cc65cf26aaea1d40eb86811bda26fad0bf60bd6a2956f9796bed527d/ujson-6.1.0-graalpy312-graalpy250_312_native-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:b6d93903610e8b8c2acd51234364d41742135a97bff403201d9f53907e8846a4", size = 53898, upload-time = "2026-11-03T11:37:16.293Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ed/ed/e7b7d99558e82305f2ad5aea0e1dc5d4df691c8e3e3b03623c7bc5915934/ujson-6.1.0-graalpy312-graalpy250_312_native-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:e8a7e852677ed19c3a40d0aa966dc0e02e2724a7910d59d5419c3fd75f4da488", size = 55414, upload-time = "2026-11-03T11:37:17.565Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/d5/15/64fc79596c7d1793c6c91678e621bbdb4e3b0ff96f32141fc89bc17649a4/ujson-6.1.0-graalpy312-graalpy250_312_native-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:810ede443034c5f7cdb541cab46411749530ee520eae0468e0b190435ff60dc6", size = 54395, upload-time = "2026-11-03T11:37:18.768Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/d4/80/9e247d74d8edf5aeef451449307d17e907225e6be6da7dd093324c938e8b/ujson-6.1.0-graalpy312-graalpy250_312_native-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:09eb06619c2723608cdd1a0cbdce7d22976b09fceec5adaac6a65e5d606d0732", size = 55497, upload-time = "2026-11-03T11:37:19.935Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/52/ec/22bf87f2293c4fb0a6d54d48e4264ccea4630a853327ac3086fbf8117110/ujson-6.1.0-graalpy312-graalpy250_312_native-win_amd64.whl", hash = "sha256:9162bd873f92bb9ff8e9555d97c1116fdbdf1033e81c2ef595b9c68bb3999d03", size = 228247, upload-time = "2026-11-03T11:37:21.274Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/1a/4a/aad7eebe01196760229516876e5aa2ad88a514ade9441d0a05913616f031/ujson-6.1.0-graalpy313-graalpy253_313_native-macosx_11_0_arm64.whl", hash = "sha256:9036920c936cdc5e09bef1b53e14ed10e9bd084a6fffbb723ac81da5e45d5894", size = 58126, upload-time = "2026-11-03T11:37:22.688Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/d3/92/b2a1417aecdac4dce5d104b964691868bd18a633cbb6ab8257b5f50f3eb6/ujson-6.1.0-graalpy313-graalpy253_313_native-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:5b1cd37416c40bc5e762c36c8d90f1e8632fbfc3e994627b33c13108f44f2e5d", size = 54400, upload-time = "2026-11-03T11:37:23.943Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/44/04/e3b7c714672a89c5b77ca8ba03e0e61564566718d81cf105fab7902e939c/ujson-6.1.0-graalpy313-graalpy253_313_native-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:646e52fb762e110bdf47598e43608977782271fa2af2f3ea58f1becda6f2ab20", size = 55513, upload-time = "2026-11-03T11:37:25.136Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/73/4f/0282cebc89f9637d6b6888b58fc3f5675ca54facb7ce948ccd218e7c6b36/ujson-6.1.0-graalpy313-graalpy253_313_native-win_amd64.whl", hash = "sha256:5ea32ee319f996936e2a4a1a13b550295f31bd1587405f9f4b5d556a4f59cbde", size = 228234, upload-time = "2026-11-03T11:37:26.822Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/33/0f/7dbfc1438879b6db1bc81726f5565e695fd8bb3f1dbe5608f61f6cd6a610/ujson-6.1.0-pp311-pypy311_pp80-macosx_10_15_x86_64.whl", hash = "sha256:3f84e92928b582c180c607b5808f3f5d422eacf27732b6dc683b6ad226971527", size = 50934, upload-time = "2026-11-03T11:37:28.155Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/72/ee/e3b977c8c77c1d0cb6cc53598d4769025b380c3ea0e327ddf3fde538597a/ujson-6.1.0-pp311-pypy311_pp80-macosx_11_0_arm64.whl", hash = "sha256:536a3eba40f4472878f4b1ed2a28ba2bd9d673b96fd56fe11982f93a59849831", size = 49250, upload-time = "2026-11-03T11:37:29.316Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/54/1d/45184a7ebec84c4e8dc146cfdee78e60b69e35fad59faf07fdc25abb08a6/ujson-6.1.0-pp311-pypy311_pp80-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:f1d947c7c1dc43301c0c5abb9febacdc58432304aa3f8845a6ce19cb3b0c769a", size = 49873, upload-time = "2026-11-03T11:37:30.569Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/4e/1f/fff556d044089b66df93c904f438bd8d2b411bd54e3f3674d8ad4980ccc3/ujson-6.1.0-pp311-pypy311_pp80-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:57de870d531a594ebd33d3ae3b8a548c596aa41aefeeda7bdfdb1a3239c0916c", size = 50738, upload-time = "2026-11-03T11:37:31.933Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/50/7c/9d00d0551685ce81ad260b474f2fa8b809d722b25575e666652214ee694b/ujson-6.1.0-pp311-pypy311_pp80-win_amd64.whl", hash = "sha256:868c0d0afa6d47879ec1651639f056d3bc90d829ccc12f3bc7da9040c0aa963e", size = 317529, upload-time = "2026-11-03T11:37:33.198Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/e1/d1/16b6fd9d1ab03d6cee35462ef9fdd2cf53e4de374f59adae3b5347fe055a/ujson-6.1.0-pp312-pypy312_pp80-macosx_10_15_x86_64.whl", hash = "sha256:be668c996d468e222148930fa8b1e3edc6f428fe4db917eb74f80ceb3360692c", size = 51013, upload-time = "2026-11-03T11:37:35.118Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/0f/82/8800b7504ca32da14d03d4091159c32b5ec88cb1118979ec3663f6d7da86/ujson-6.1.0-pp312-pypy312_pp80-macosx_11_0_arm64.whl", hash = "sha256:8b2a3018cefdd42d395180129193161e2923c5fd3cd866817c9b0f273219095e", size = 49310, upload-time = "2026-11-03T11:37:36.331Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/c1/a1/ce04cd387dc068bb9518f7fede7d16390cf81150d4c7339ae0abbff0fc2a/ujson-6.1.0-pp312-pypy312_pp80-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:f42a94fa9b68e24bd73822f4afac35a11edc7a960b29bbbe807ae174ccb5fb21", size = 49690, upload-time = "2026-11-03T11:37:37.629Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/4b/41/ae6edfa067ed8262d4059ea7f6f2955dbd6ed5ebb5ac3c7ee742cc5c5666/ujson-6.1.0-pp312-pypy312_pp80-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:c2a6f5f2a477a6735fdddc0866c6a0b667314d87f7842435f61ff240e05d9a3a", size = 50737, upload-time = "2026-11-03T11:37:39.185Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/9a/5d/8e7d70d643f1a624d9a697c73ff637b8e8708823181258b64ba6684855a1/ujson-6.1.0-pp312-pypy312_pp80-win_amd64.whl", hash = "sha256:df4b33e68f3951db0b96f56d2a05261959c18ceb515b99840d5ed081dded1c98", size = 317764, upload-time = "2026-11-03T11:37:41.032Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "urllib3"
|
||||
version = "2.7.0"
|
||||
|
|
@ -1045,3 +1736,115 @@ sdist = { url = "https://files.pythonhosted.org/packages/2c/ee/afaf0f85a9a18fe47
|
|||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/41/52/e465037f5375f43533d1a80b6923955201596a99142ed524d77b571a1418/wcwidth-0.7.0-py3-none-any.whl", hash = "sha256:5d69154c429a82910e241c738cd0e2976fac8a2dd47a1a805f4afed1c0f136f2", size = 110825, upload-time = "2026-05-02T16:04:11.033Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "zope-interface"
|
||||
version = "8.6"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
resolution-markers = [
|
||||
"python_full_version < '3.11'",
|
||||
]
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/26/39/a8481b926e42c44a6fcc670904f8251469ec42edbff1ba066719ca1e7fb4/zope_interface-8.6.tar.gz", hash = "sha256:b40ef9b4873afb5d0dec02b8d2dfde1cf18c72337b60c99cb735961e0bac05c0", size = 257973, upload-time = "2026-08-20T11:18:08.717Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/11/56/4cf64b40123af62ed9dad3d689df853d9ff8f431ae06408e087061a9b87a/zope_interface-8.6-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:42fb95008784a3b50c4b79e4488845d1950c57eef17ebc9c53a680084fb93da2", size = 210947, upload-time = "2026-08-20T11:16:52.142Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/90/b8/59d9a455a73cae715eacca70003d943e8a8413b196454bb49530c16769bd/zope_interface-8.6-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:a2c5963a26e1fe47bdb3494ba2aa91904c7898873af400dc3bdcaa808a57783a", size = 211307, upload-time = "2026-08-20T11:16:54.352Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/65/7a/80fa8eb011bf78b72438a0ea0f672efe97ac5c9e9ff07d3304143ef5d611/zope_interface-8.6-cp310-cp310-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl", hash = "sha256:3e0383361da2793ea332e2d12b753a32ac57b3b89c8c3a9c6dd04374ae142c0f", size = 254894, upload-time = "2026-08-20T11:16:56.063Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/2e/02/c82afe287924ddcbc78fd2f4646f16e3ba9d03bf3f5e1ea4bedce711de3c/zope_interface-8.6-cp310-cp310-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:6df4bd16923d247c34e12dc394dab20d99d96aa2e15a6b163c2dda1dd582fff6", size = 259828, upload-time = "2026-08-20T11:16:57.979Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/00/9c/53361a3cbf7ae2529d69a252547b129afa44f75d7019a76b15cecad44c91/zope_interface-8.6-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:6246f7a4b196bd054469f4fd4ffdac307974061f0d2b1ef4da87ddff13a7f885", size = 260368, upload-time = "2026-08-20T11:16:59.727Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/7c/82/5c6846d58d41fe09b8da3b4f9b03fa28ccd6f3764588c5ea339063566caa/zope_interface-8.6-cp310-cp310-win_amd64.whl", hash = "sha256:5fbd9deb0477aea769b7d83a4d953d77ef38972d5eddd5b922b614ee708b2104", size = 214231, upload-time = "2026-08-20T11:17:01.582Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/df/b0/5715b7635e5e25dd26ae32453e784cab59401078aeb3e401027675068583/zope_interface-8.6-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:dd25d6da3b3c8216080a0eefb3c01719913782690427fb9ba2ddad98ed8970f4", size = 211445, upload-time = "2026-08-20T11:17:03.377Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/a2/9b/60a71a998fd819a7b9ed24c3544f862280f222828f421561e28885dcecc5/zope_interface-8.6-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:ebb513c9e47702525897148e38271f7b6bf12c61bd084cdddfd0e03b542f8100", size = 211839, upload-time = "2026-08-20T11:17:05.05Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/85/55/3092a23c3bdbcc9402ad74e69dae3fa49cc9f12bceef35079c98449bc60e/zope_interface-8.6-cp311-cp311-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl", hash = "sha256:919510e0d470c189cb84164b953f81e8a513aa2593fdc9e4982340838cd1099b", size = 260720, upload-time = "2026-08-20T11:17:06.755Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/41/7d/d3abda21695ee441f2278f226b4b22ecb604cf0d96efb3d39507415abdcb/zope_interface-8.6-cp311-cp311-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:a43e669d68fd8c10fe315812f7e1d262c6c00e9667f29f799a3771f9a3b5b41d", size = 265288, upload-time = "2026-08-20T11:17:08.858Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/21/00/27467685e40d5ee01f542c8b0b33682b07af363419f4c64cbb61b8bf48d5/zope_interface-8.6-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:826f99c38f4bfcf7165885a0c59f03c6c25e0df8cdb0544f882cda61616fe845", size = 266373, upload-time = "2026-08-20T11:17:10.786Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/bd/7b/ee35b4a5ee56ff609868291404b3ac30814417912fd8cbf4bbdcf1da8280/zope_interface-8.6-cp311-cp311-win_amd64.whl", hash = "sha256:d97c96c79c389d1031c86f8e797b94db4fe647dfbfebdbe48247c1899dc930bb", size = 214544, upload-time = "2026-08-20T11:17:12.793Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/6c/ea/f63bedc8f3331fbd8d74971201bdb0be41ebbeda800aee08e9afcf41f46b/zope_interface-8.6-cp311-cp311-win_arm64.whl", hash = "sha256:ec5a5c01a54fc06b69da71164c9bba8cc71fde79bdd1b835bb734f96bca693f2", size = 213497, upload-time = "2026-08-20T11:17:14.541Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/be/0a/33bcf5c825c749205c832e82d14224ff38011d20dd9dbf7a0ffe51a589ae/zope_interface-8.6-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:192bb756a8f62395b4fe47cbb853c171f20389d5226fbfa97128bb2f76abad8d", size = 212192, upload-time = "2026-08-20T11:17:16.522Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/17/4f/41bde1796fa8cbb32f50facd261dd4124daa850c29666270e85e2bb8e91a/zope_interface-8.6-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:a38b221cc649a2daacaff9d629a2ba9c4a8967669d253f9a6a597f46d46732f0", size = 212337, upload-time = "2026-08-20T11:17:18.305Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/98/e1/b2d78ecb8aec59114111ed8c25894c0421afecc5e89b36fc356e2b07a607/zope_interface-8.6-cp312-cp312-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl", hash = "sha256:780a66db884c0e2b0e6b34b4900f86916945a7c03d3be40ec845b051fcc052cd", size = 265308, upload-time = "2026-08-20T11:17:20.02Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/dc/5a/126eeee4da016f5cca4db2297496069d5f1ba901fb53ebf104f9c087a113/zope_interface-8.6-cp312-cp312-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:9217b1123f6aeec9ddf1789bffd83da3123546d551c164a99f862a5d1f5ac0f8", size = 270703, upload-time = "2026-08-20T11:17:22.016Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/05/89/7767a6f9b0bb41a4d3777e8f93bfeb1b9a23ea643f83ce96163d9d672c8b/zope_interface-8.6-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:28b68c24131545c1d13fd2178bbd065e67f09db885d8426adf1fbdf2b6b66372", size = 270292, upload-time = "2026-08-20T11:17:23.905Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/1e/66/bd63f493284f492003ebc494e9706abe389fdab45d6d6dd09a21012a7077/zope_interface-8.6-cp312-cp312-win_amd64.whl", hash = "sha256:64ed939d725876071823505b1c90074a86847a6e9be8617cec7ba759e0b86a7e", size = 214371, upload-time = "2026-08-20T11:17:25.606Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/1c/03/64069137ef7da70ec796ad9a90ba23796fded06c4e7d06ae600a3141f3cc/zope_interface-8.6-cp312-cp312-win_arm64.whl", hash = "sha256:b08808d1196810f76928ad13d37dae18d92b1c9485c113628f41dbd6351413de", size = 213578, upload-time = "2026-08-20T11:17:27.396Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/30/01/860c4879f072968375ec82fabaa5d83256e6ad8d3dce9527b00931e54b10/zope_interface-8.6-cp313-cp313-macosx_10_9_x86_64.whl", hash = "sha256:add6e226c6568de6d0ea9f6abe6353072387afcf5f817610ea266495d0c1ee72", size = 212548, upload-time = "2026-08-20T11:17:29.161Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/38/09/d4b7c46c020394c830e749c6c4ca6a2ca0b6defed6f4c2eeeb97116c7343/zope_interface-8.6-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:47030c08e39d690299e02973ac845d0f534121b3618efa9ce9599a512a1c97fa", size = 212536, upload-time = "2026-08-20T11:17:30.922Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/4c/2d/5b4dbbe618b816f626f2a640fcd9911a461e3733a608c4043a8cc79c12b3/zope_interface-8.6-cp313-cp313-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl", hash = "sha256:c2bf932006229788d6bb41963dfc0345cba6ee24141a39316bd52a283a7d115f", size = 265203, upload-time = "2026-08-20T11:17:33.059Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/79/96/c02befafb8e5d3c92898aa02fffca94d164830013fd0a50c4a652a728712/zope_interface-8.6-cp313-cp313-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:09522cdc6a77376bc36988b531db3b568c8cb0b6ca7286d8316aab283888770f", size = 270637, upload-time = "2026-08-20T11:17:35.167Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/fa/c4/d61b18724597ca62c1a3a753370fff7b76f43c01b44e9a13c18e2300eaf0/zope_interface-8.6-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:edf1bd7ed576319241b2b314eaa549cee3e3e0f81f46911086b387d03a303ad3", size = 270456, upload-time = "2026-08-20T11:17:37.146Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/0c/7a/96f177daba3f9d9d69d42659ae6c602c76b1d725e7dddff08ed49d9d02af/zope_interface-8.6-cp313-cp313-win_amd64.whl", hash = "sha256:00fd6a6da085beb90cdcdce6ed6e6973edf338d1ea63a807e213b1eb7013833d", size = 214763, upload-time = "2026-08-20T11:17:39.064Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/d0/34/ce4a0ff71a1a93bd403c511307d70d32ae876e657d96063985f6672c92ec/zope_interface-8.6-cp313-cp313-win_arm64.whl", hash = "sha256:105da41198a1990b18d566bd30656a19064d4c313e4c0dd8f0dd9714026e47f1", size = 213621, upload-time = "2026-08-20T11:17:40.805Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/3d/28/8ec94b15ebde2da2ebe643aac3c4238a55c2e95b746049721b50908ecafe/zope_interface-8.6-cp314-cp314-macosx_10_9_x86_64.whl", hash = "sha256:449727fc79f0b1317ec190632e13699b732d3f4704ea90c8e1339bb78e451bee", size = 212628, upload-time = "2026-08-20T11:17:42.566Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/85/47/f06d4dbbc1464d9d4520b9c047d4a0f0062264eeb2c0b7fd1bec79a9327d/zope_interface-8.6-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:81793c9b12816ac7f8b71b366be36b7025fcf7205ec4a236642b15a82cb027ef", size = 212627, upload-time = "2026-08-20T11:17:44.571Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/1c/56/01f84b4e966a32088e9076b1e7b2afa310f52bf9b9a077d2958cf66e81aa/zope_interface-8.6-cp314-cp314-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl", hash = "sha256:a91eb220d9ae6aa6d746d6dac5b4db35b1417903301b3315ba3275b19570be0b", size = 266840, upload-time = "2026-08-20T11:17:46.366Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/c6/40/2a644e32cd6f0516e7df1fc0c58e544a8cc11ba06b0d55d308519b02459d/zope_interface-8.6-cp314-cp314-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:3f7f6da49911ffe75ae3f7a9a45619f205420cc6578aff02f8ca29ed1de10f14", size = 270145, upload-time = "2026-08-20T11:17:48.195Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/1e/18/02ebd81feff11a2766159fcb49c5b773fef5ae4414c38fb19114aad9e961/zope_interface-8.6-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:ef15a2f6258f809334a19c1fcce64648813066ceebe3f3f6077871483fd0f50d", size = 270351, upload-time = "2026-08-20T11:17:50.07Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/26/56/0725e960cf581399b7f4136d5951f7d87bc659492e49db1794334f6c5153/zope_interface-8.6-cp314-cp314-win_amd64.whl", hash = "sha256:5ef166337880b0e78138bbd32fcbc5ab1da3337febe8d2a247f3690bcae3ede5", size = 215098, upload-time = "2026-08-20T11:17:52.062Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/f1/b3/7f864a6f9d9aebddceaac0a8c5cab0b450090f42fe316e48e6dd0c684478/zope_interface-8.6-cp314-cp314-win_arm64.whl", hash = "sha256:23ae710094fdcfcf715dae7054cd5abfefa4a527c5853d7b76ebb2541499c41a", size = 213759, upload-time = "2026-08-20T11:17:54.157Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/19/b8/2f7a65ac046d3bb54e4a0664acfa152021804aa4101cbbec11526740c8af/zope_interface-8.6-cp314-cp314t-macosx_10_9_x86_64.whl", hash = "sha256:a84ac0010f054f3516710804a0c22026b4b0d30085d7666cfc2f30545775bf99", size = 213631, upload-time = "2026-08-20T11:17:56.063Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/12/c1/889dc114e9a9e8d59fec53facb71dd26345f60c504ad20fd17121af0449c/zope_interface-8.6-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:e36adea8ab93eb4d2076a47d5f4c7d7e1267eb9a4e33202da7ea71439a3bcaef", size = 213713, upload-time = "2026-08-20T11:17:57.998Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/a9/96/ac48a6b7cfe972e4a9b0d7ec8b9f36a7956cc95d72029f0013ff096c55af/zope_interface-8.6-cp314-cp314t-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl", hash = "sha256:5dbe120cfcfc8e6aed418f340c3d1ad4072253e17176503e363ddac27fcb2ac6", size = 294916, upload-time = "2026-08-20T11:17:59.952Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/a2/54/4df4bb0b1aace2298386375ab2fb752378683b558d2db713e25c40a3e96a/zope_interface-8.6-cp314-cp314t-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:27e6de8e593736210d2a9f1bbf766a5653aa4819c184f864ab9d1f8bd3590a60", size = 300898, upload-time = "2026-08-20T11:18:02.224Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/08/9c/0c8c80c1eeb62ac0c3ed1f51ad8cdd6da9373c53247c659c49f0ea29f742/zope_interface-8.6-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:66ab8c5d8820aa378968c16b7a3cb051aca342eafa649c9a363182f572d75ccb", size = 304684, upload-time = "2026-08-20T11:18:04.105Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/54/69/3afc11a58b9ea814fdfb9297a8c36d10871c1f0cc06d42c106282109b952/zope_interface-8.6-cp314-cp314t-win_amd64.whl", hash = "sha256:fcc86414ee0e6b77416de81b8dead5900719b3f71b7875d8d1f87ae4e166a11f", size = 215500, upload-time = "2026-08-20T11:18:06.259Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "zope-interface"
|
||||
version = "8.7"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
resolution-markers = [
|
||||
"python_full_version >= '3.11' and platform_python_implementation == 'PyPy'",
|
||||
"python_full_version >= '3.11' and platform_python_implementation != 'PyPy'",
|
||||
]
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/de/ff/a1f0021a26033da0df223fd05a7455d6d2881b67daf2c6dc897b4fe0a427/zope_interface-8.7.tar.gz", hash = "sha256:0b47b62e8d0d99b24bcdd32f4f2120425e5019c3bee2ad69a0e1d75737487a96", size = 266343, upload-time = "2026-10-15T07:25:14.851Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/f2/23/707882c1e361341ac2e561ce11dca374ff08a96990e9962ac5a7b27f1c7c/zope_interface-8.7-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:a9809133ec9979d2dbcb33f6aff2cd7d30dc66cf6dbe6fc22860db93a9caf7cc", size = 218031, upload-time = "2026-10-15T07:23:45.197Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/e6/60/d2191467ea41d3432868405abfa3c3dbe72dfe0eb437289174448e463d24/zope_interface-8.7-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:88449ed0b3dccfc5a68f9a90adcd8013fc1765cfae9cdcbfc64a98e5e62259c4", size = 218520, upload-time = "2026-10-15T07:23:47.151Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/65/0b/33e58506bb79139b7433fcd7b6cc4ee970b9d0766ce2e0d617a78a6535b6/zope_interface-8.7-cp311-cp311-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl", hash = "sha256:88874fef27a462fd8662d425d21f6086766d993bf25802b4e7a919122e7a3270", size = 271703, upload-time = "2026-10-15T07:23:48.714Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/c3/bf/c15b89f3381a8e84be8d1b7c4afa26a456f09489940b0c5bdad8f5fd9cdb/zope_interface-8.7-cp311-cp311-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:1613beb1fb1b4f457818c5443e985142ec9e71af391bfb26e583e0353f206792", size = 276190, upload-time = "2026-10-15T07:23:50.646Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/05/4f/074c440baf355d24344517f293b238838cb60f92b8165843e88ce1bb0982/zope_interface-8.7-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:45d7294d7a513ce81913c42ff14e0f54e75444563e50433546e7bc6406f1d1ae", size = 277644, upload-time = "2026-10-15T07:23:52.887Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/d2/ce/cb417c57138de270c409da7af39b4793e2516c70b5f93eb8b599901b7ac1/zope_interface-8.7-cp311-cp311-win_amd64.whl", hash = "sha256:0d0fbadd5a8a6fb3924514a5fc28da627a141a08d50beb8c1153b75a6046cdab", size = 220762, upload-time = "2026-10-15T07:23:54.751Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/bb/fc/df2298d38a46f103ea605548c3186fb1be0b0985d278b2612bf805f3b63a/zope_interface-8.7-cp311-cp311-win_arm64.whl", hash = "sha256:9fb6c02e64c76a69914bbb7307de3c2cb5893738dd54a08c5be201dc3c09065d", size = 220763, upload-time = "2026-10-15T07:23:56.399Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/0e/6f/4a4c37a69f30761b36ba8a3b18789c52e9dd166ceaec4c3f49a862947e74/zope_interface-8.7-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:f70a3af6efb813b8d406a449a8afc800ef8e9e32a62d6d52e37e8cb10674b70f", size = 219048, upload-time = "2026-10-15T07:23:57.986Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/cc/40/8fe168cff93670859815e78c6fc4c2e47f11b8e8277cf26a69363dcd5fdd/zope_interface-8.7-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:85c30b18b8fd75ccd1b8ad202e9130ca6f8997a574ee2a7d1619e4138d3acb0a", size = 219127, upload-time = "2026-10-15T07:23:59.63Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/54/80/f1ddbfce94864624727c1c34e863c6108b35d9b7cc8407a0b961a99e4f26/zope_interface-8.7-cp312-cp312-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl", hash = "sha256:a52c56e7a53d884506b785248191cc50f1c69161aec93f7e6e79feddb1d06b7a", size = 278695, upload-time = "2026-10-15T07:24:01.849Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/54/af/0eddc2dd0fcfa3da3a6256c4f58278729076c77296b6f00567b03718026d/zope_interface-8.7-cp312-cp312-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:90aef6e0a9924af18f60528895f2fc50cb634191939d65b10a96d9ced05030b5", size = 284199, upload-time = "2026-10-15T07:24:03.745Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/a4/0f/a25f7e0866e65db2a756ee7e444568796ddbf0ffb97d950a268835324228/zope_interface-8.7-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:383c04293dbcfee8ae8d24f85592291207d5bb6a703af437343e44ddb94fb68c", size = 283694, upload-time = "2026-10-15T07:24:05.334Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/c2/54/5311f7d2605c3693b1c729c2c3b171c60b11a6126a5f41dc44047e7493fb/zope_interface-8.7-cp312-cp312-win_amd64.whl", hash = "sha256:68acf0f25707f9c6277552a3d10114405235385ea1f66bffc89612e0b84f6edd", size = 220958, upload-time = "2026-10-15T07:24:06.935Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/7f/fa/1809f8e709024046298bc8655e2291d5722a549d4e60e741fa8d34dcae01/zope_interface-8.7-cp312-cp312-win_arm64.whl", hash = "sha256:b5045f223dcfe8792ad78df2b9ce06797988df02912e832e3ee564af7c3ca9ca", size = 220864, upload-time = "2026-10-15T07:24:08.572Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/83/06/e382f0fa24b5d7bf44f44cc82dc1a27d1375f4ec70190c2b02b9944d5e95/zope_interface-8.7-cp313-cp313-macosx_10_9_x86_64.whl", hash = "sha256:78dcd615fe437ed995378478c266dac10a7635c2474fe6ad33bac43af8498a1d", size = 219273, upload-time = "2026-10-15T07:24:10.569Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/52/94/bde065c2cd987dad779bafeeb9ec6a8bb0cff09f6b77df327e1e776f65df/zope_interface-8.7-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:ae33b2ff2acff7b0ebd4272c3396a97c43f06cb2ac83820e16200ad50183bd50", size = 219285, upload-time = "2026-10-15T07:24:12.413Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/aa/1f/263e83fef05e343e95b4c8fa2768301b7cd5964dd94afe5608561584c180/zope_interface-8.7-cp313-cp313-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl", hash = "sha256:96c9f040f7449b8dc2cfd58b2320c070c18dda5c98bfec27c6420dceea6a0f5b", size = 277484, upload-time = "2026-10-15T07:24:14.051Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/94/0c/a80dd47fdca2c210111218e8b4132fefe93e1e34fe0ae129436128d6cbfa/zope_interface-8.7-cp313-cp313-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:d30ed06ef78e9e1b41a50683b7d01727a3c363143c5bda09017e33f19827afc2", size = 283452, upload-time = "2026-10-15T07:24:15.848Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/23/4b/0989b9c683a7c88a40c46eb35e1a8890aabee511f9b863d52bc1a2ba006c/zope_interface-8.7-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:75ae2cca3a82dc37834cd8277044ee3a571bc2f81849541689a76997dc50812e", size = 282636, upload-time = "2026-10-15T07:24:17.426Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/c2/fe/97712b2ade92f285da7d4d7b908a023082c08e2202cc858172db536d3c4d/zope_interface-8.7-cp313-cp313-win_amd64.whl", hash = "sha256:294aca67c65b10341cc6ed2e103ef6d49d6c2f1bca30135d668db38be522c364", size = 221260, upload-time = "2026-10-15T07:24:19.151Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/80/be/258bd4262c533f2e5be125334cf4053552c6a0fa47406dcc03d1719dc558/zope_interface-8.7-cp313-cp313-win_arm64.whl", hash = "sha256:eeec8bb03f69706876a2bfdfa93b6f70c23230f9c655f8d14726b5bad1319b68", size = 220813, upload-time = "2026-10-15T07:24:20.841Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/94/92/617979e355fc9ff5ab7baf40a2d0586c813b0a43617be9b2b500129f1144/zope_interface-8.7-cp314-cp314-macosx_10_9_x86_64.whl", hash = "sha256:3876907cdeb4f94335ec2748b7017b44e2d054497f09bf9cc32bcdab984ce7c6", size = 219292, upload-time = "2026-10-15T07:24:22.764Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ce/56/6812c4becde5edff05dd6add20bdd2a8c3a3bbf0418dbf159485e113ef3d/zope_interface-8.7-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:e0bd27434ec193f4213da3d7868b5328e71c946ddca97b868ba72232dd42d9ea", size = 219361, upload-time = "2026-10-15T07:24:24.571Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/a1/28/678804c8ebf8994c7704166f20d736555b82dab81dd7662ba926418214a1/zope_interface-8.7-cp314-cp314-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl", hash = "sha256:8cfa8c8ee0fbccb9cd9f354771198fe412af8377ddab86887dcab044430f2968", size = 279376, upload-time = "2026-10-15T07:24:26.341Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/50/03/372676f4a91df53b9fae808b26fac6fce3d8e02bfa0e134162d11a7b607b/zope_interface-8.7-cp314-cp314-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:6260ccc856a2c561b20341a74a8c1d9bb13916f6b52e880f336a0ddf61a1b726", size = 282796, upload-time = "2026-10-15T07:24:28.099Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/e5/10/f885be266bf4e2edd239f2ead7400bf39d605e01e27a35c540ec9276f728/zope_interface-8.7-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:6cc109b5d1faef084ab1a1d1291d768dd8fcfb87685a3a15259066ded25c1d73", size = 282504, upload-time = "2026-10-15T07:24:30.196Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/c4/04/e58700ee9a85aa5c245ad2a2f363422c011e06250b6cdda9545783aee894/zope_interface-8.7-cp314-cp314-win_amd64.whl", hash = "sha256:e53386608f473d78dc7f968aceaaed5c0df7184efbc2bc0dda07bde3a6b9bd0b", size = 221569, upload-time = "2026-10-15T07:24:31.89Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/61/73/b16250960b01fe6e4d011b2fb5fb4a49832ecd47fcc78a367461d06570e6/zope_interface-8.7-cp314-cp314-win_arm64.whl", hash = "sha256:3aff75b2e0e18fba9cb3f221be321852c262d89ffe60590bbb8daad20bf6bcbd", size = 220971, upload-time = "2026-10-15T07:24:33.745Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/a3/f0/58a434974db9591f4256f8c56d0421993608fdf960fac13ec1e6411d2787/zope_interface-8.7-cp314-cp314t-macosx_10_9_x86_64.whl", hash = "sha256:2d632afb26be0bc0a021c188ace8d95604460809b75a1b80218fe0173f19b9bd", size = 220823, upload-time = "2026-10-15T07:24:36.311Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/67/64/d8a92fbfaba961cdc04e96d9a431203f050c188a3e0af9420ce98f187e49/zope_interface-8.7-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:bd466a59274435a628d03697996fda99e22276af6516011a038b97da830664d3", size = 220848, upload-time = "2026-10-15T07:24:38.035Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/aa/e8/6203725ec87e586be6e09a584fda4c6baa0d67579c0b2d1279e6847a4849/zope_interface-8.7-cp314-cp314t-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl", hash = "sha256:36e3ec353100356dcdd711c6f5a328095b33cc573c82d01e106e4a13a874c0f4", size = 308516, upload-time = "2026-10-15T07:24:39.701Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/83/7b/3ebc85e0b9769e686feadf669a1629910728b3ac1fc8242589eb7a5c1abc/zope_interface-8.7-cp314-cp314t-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:dad0ede8e243d5dc17b453c995e330815e524df5c502757c6221fc6a12380823", size = 314827, upload-time = "2026-10-15T07:24:41.461Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/42/53/c81d54a200097eeb85a2ee830b6121c31ef316037e705019f82183f23570/zope_interface-8.7-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:12ef0f3338c07bc00cc64f80a32003105bee5be43e8577d535acdd16b3b03967", size = 319628, upload-time = "2026-10-15T07:24:43.287Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/b1/80/856de74a33738691c372abadcbc5cb7fa034f91e1ae12f4f3505600cce38/zope_interface-8.7-cp314-cp314t-win_amd64.whl", hash = "sha256:d051d031e6e73c5ea55fc84389dc77b5a317cbece1d16e8a35e9433eabe70e16", size = 222601, upload-time = "2026-10-15T07:24:44.96Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/82/bc/966eec3963317acf7bc5d9e19e8d0b7f41ff35595b8e60a2145d76232340/zope_interface-8.7-cp314-cp314t-win_arm64.whl", hash = "sha256:48c98219d718e48d98c6c9ca3c2102894410e542d09f730b9d67b3431027e3c8", size = 222184, upload-time = "2026-10-15T07:24:47.241Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/44/e4/66c961c0a4cb7b8561a8855036f8fca6a6e9feac54fc609835e95f57d3a5/zope_interface-8.7-cp315-cp315-macosx_10_9_x86_64.whl", hash = "sha256:6c84d5a260db4de770c9dbff542b28cfe7802c7d286d211d59f32b1b05fb1e69", size = 219298, upload-time = "2026-10-15T07:24:48.785Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ad/17/c6ae2f1265a9be806841df2890f2e12cbe16ef6287781ee06db3f4e37cef/zope_interface-8.7-cp315-cp315-macosx_11_0_arm64.whl", hash = "sha256:a319373c6fb786f47d816ad16c8bda604438fd4a32ddc77af411d551ec210cd4", size = 219360, upload-time = "2026-10-15T07:24:50.416Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/f4/de/9c7002982a3b2f130375b74e8df0df8c7656e910b1dd61cc89dfa948a425/zope_interface-8.7-cp315-cp315-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl", hash = "sha256:8dacae53e12f22d6d3041420579c1e1c43cece47525350619a2cc88e93581a2c", size = 280101, upload-time = "2026-10-15T07:24:52.161Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/b3/86/9e545fe873140dc61c875f013e0d873ab006ca7f6ace933e6e9fd81d5e45/zope_interface-8.7-cp315-cp315-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:a0d84e36c426afb6469aa6c4d438d12e18394ace596f5698f835fc434bd0ae1d", size = 282835, upload-time = "2026-10-15T07:24:54.401Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/6a/54/28590cfa4adcc21d5960c3ab2ed5c651b60c084a6d844c1cbafda57cb6d9/zope_interface-8.7-cp315-cp315-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:39299d2f03fb1eada8ee7f754a834d0a4e9d5421284ed7b0d9ea37a8fa0eb58e", size = 282798, upload-time = "2026-10-15T07:24:55.926Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/2b/17/dbfbc44a870f9e87fac9d85d8d48ac49603baf6aaa59898fc7b6c5ca4d08/zope_interface-8.7-cp315-cp315-win_amd64.whl", hash = "sha256:10f15d6b70842405755d6ef128d731ff14f2f655bad56b7fe5d19588c24d08bc", size = 221568, upload-time = "2026-10-15T07:24:57.586Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/d5/8a/b54dbd04a7800e6101b49b64ba7991fda5d7c3b9945a843af0565b87225a/zope_interface-8.7-cp315-cp315-win_arm64.whl", hash = "sha256:31979c1841fb58f69a19a1593348a4e86bfcd5619e02909bd6a0c78a1e670af7", size = 220966, upload-time = "2026-10-15T07:24:59.249Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/99/94/e6ee2713d41b57592d89000b91a847360603726d509c3386a06c223cc366/zope_interface-8.7-cp315-cp315t-macosx_10_9_x86_64.whl", hash = "sha256:f23736eda7fbd9125b41e41e437217c6328dddb303be522b1938a70eeb6eaf1e", size = 220778, upload-time = "2026-10-15T07:25:01.27Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/61/1c/f5d51fdfb1ab50d21f3c4289e079051df8735a6896984107423aebdddd44/zope_interface-8.7-cp315-cp315t-macosx_11_0_arm64.whl", hash = "sha256:8a6f644b6bb37e4248c3f5a526912aa35237a8ad7b9fa512540c4e230c8a4dad", size = 220812, upload-time = "2026-10-15T07:25:03.359Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ab/c7/7eb16d3cba771959eb7288674aca011b48014c73d0cdb4dc15bc5feec702/zope_interface-8.7-cp315-cp315t-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl", hash = "sha256:cb074d4e2a5197812ebb954b718f4f989d6c20a4e12c5e4cc6d6ea57d53d571e", size = 308392, upload-time = "2026-10-15T07:25:05.002Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/26/f3/4d5859c3dae41442757e3ee92a9ec2dbebca4aa4ef4e9cda03688afc01e6/zope_interface-8.7-cp315-cp315t-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:c616440ba2237dfdef6cc8a2c4a7fcdb489151cd0b89ae664180b4d9bf2a2f12", size = 314604, upload-time = "2026-10-15T07:25:07.122Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/6d/25/31fc42cbd539734040ed95df708d94a86c6d318b6e508e174760ea73e9c8/zope_interface-8.7-cp315-cp315t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:cefec3205cac03bb9955d44b95d68ffcfd0bdf8c7ab40a5bd969797279a82b51", size = 319194, upload-time = "2026-10-15T07:25:09.133Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/b0/a4/33055e2590fd00d84ecd1e6d19f69a891a72aade2211fd3740aa317145f7/zope_interface-8.7-cp315-cp315t-win_amd64.whl", hash = "sha256:53672982c9b963c04f2ebbba164d7a7dc4fed4b5e16b5210f37edc96b2e64741", size = 222557, upload-time = "2026-10-15T07:25:11.229Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/f8/f6/e1e0af070c94d3be176f6e44aa9280213aa657de4c6b42320b50d906b417/zope_interface-8.7-cp315-cp315t-win_arm64.whl", hash = "sha256:d964fac37a2877d46d797e8b12496b52e3cb5b5acde10ed1510d873d7875e57e", size = 222179, upload-time = "2026-10-15T07:25:13.112Z" },
|
||||
]
|
||||
|
|
|
|||
Loading…
Reference in New Issue