root/dev/: dmnc-1.0.4 metadata and description

Simple index

Notification center for Darsman Academy

author Ellnamin
author_email ellnamin.business@gmail.com
requires_dist
  • dnspython==2.6.1
  • email-validator==2.1.1
  • grpcio==1.62.1
  • grpcio-tools==1.62.1
  • idna==3.6
  • protobuf==4.25.3
  • setuptools==69.1.0
  • annotated-types==0.6.0
  • pydantic==2.7.0
  • pydantic-core==2.18.1
  • typing-extensions>=4.6.1

Because this project isn't in the mirror_whitelist, no releases from root/pypi are included.

File Tox results History
dmnc-1.0.4-py3-none-any.whl
Size
7 KB
Type
Python Wheel
Python
3
  • Uploaded to root/dev by root 2024-08-09 20:28:45
dmnc-1.0.4.tar.gz
Size
6 KB
Type
Source
  • Uploaded to root/dev by root 2024-08-09 20:28:45
# Darsman Notification Center

Darsman Notification Center simply is a toolkit for sending messages using gRPC.

## Requirements

- Python (== 3.10)
- grpcio-tools (>= 1.62.1)
- pydantic (>= 2.7.0)


## Installation

Run the following command using pip:
```bash
pip install dmnc(test)
```


## Sample code

```python
import asyncio
from dmnc import Notify


notify = Notify()

send_login_result = asyncio.run(
notify.send_login(
otp="123456",
# recipient="user@example.com", # either email or phone number
recipient="09123456789",
)
)
print(send_login_result)


send_discount_result = asyncio.run(
notify.send_discount(
recipient="user@example.com", # either email or phone number
# recipient="09123456789",
user_name="سامان",
course="پایتون",
support_phone_number="09123456789",
discount_code="MX3EH98",
discount_percentage=25,
)
)
print(send_discount_result)

```


Render warnings:
<string>:16: (ERROR/3) Unexpected indentation.