集成钉钉、企业微信的企业内部应用消息推送系统(支持MQ异步推送)
Project description
Push messages with different backends for the Django framework.
| Version | 1.1.3 |
| Web | |
| Download | http://pypi.python.org/pypi/django-easypush |
| Source | https://github.com/luojidr/django-easypush |
| Keywords | django, push message, ding_talk, qy_weixin |
About
The purpose of developing this package is to simplify the push of Dingding, enterprise wechat messages
Installation
You can install django-easypush either via the Python Package Index (PyPI) or from source.
To install using pip:
$ pip install -U django-easypush
and then add it to your installed apps:
INSTALLED_APPS = [
...,
'easypush',
...,
]
EASYPUSH = {
"default": {
"BACKEND": 'easypush.backends.ding_talk.DingTalkClient',
"CORP_ID": 'dingfdjrriexckcuirjskd',
"AGENT_ID": 100002834,
"APP_KEY": 'dgfrhfyewuiry347jdshckjdsh',
"APP_SECRET": 'd8QkPEi9YqQl8W9cv_se_Cre417ZwHEXehdteifncyyw5hdJdMRUkzZQ96D4Yvycv3'),
},
...,
}
EASYPUSH_CELERY_APP = "easypush_demo.celery_app:celery_app" # auto to send message by async
from easypush import easypush
easypush.async_send(
msgtype='oa',
body_kwargs=dict(
title="Monitor for tasks",
media_id='@lADPDetfc4cWS5HNAZDNAlg',
content="Push messages with different backends for the Django framework. Monitor test for dingding, qy_weixin, SMS, feishu or mail.",
message_url='https://github.com/luojidr/django-easypush',
pc_message_url='https://github.com/luojidr/django-easypush',
forms=[
dict(key="Author: ", value="luojidr"),
dict(key="Type: ", value="Dingding, SMS, Mail, QyWeixin, Feishu"),
dict(key="Github: ", value="https://github.com/luojidr/django-easypush"),
],
),
userid_list=['manager8174']
)
Demo like:
Downloading and installing from source
Download the latest version of django-easypush from http://pypi.python.org/pypi/django-easypush
You can install it by doing the following,:
$ tar xvfz django-easypush-0.0.0.tar.gz
$ cd django-easypush-0.0.0
$ python setup.py build
# python setup.py install
The last command must be executed as a privileged user if you are not currently using a virtualenv.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_easypush-1.1.3-py3-none-any.whl.
File metadata
- Download URL: django_easypush-1.1.3-py3-none-any.whl
- Upload date:
- Size: 94.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7c235f6311888690fa5448d91d6f8afd1ed2f7ab0247886112934f04786a6508
|
|
| MD5 |
17c3a7d196dbb4efcec9cf58fd92e920
|
|
| BLAKE2b-256 |
e6b58e8f9ea3f766f375b6cbed3ca592d4d31af06a74add0755f249912efef5f
|