Metadata-Version: 2.1
Name: django-easypush
Version: 1.1.3
Summary: 集成钉钉、企业微信的企业内部应用消息推送系统（支持MQ异步推送）
Home-page: https://github.com/luojidr/django-easypush
Author: luojidr
Author-email: luojidr@163.com
Maintainer: luojidr
Maintainer-email: luojidr@163.com
License: MIT
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Framework :: Django
Classifier: Framework :: Django :: 3.2
Classifier: Framework :: Django :: 4.0
Classifier: Intended Audience :: Developers
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: django (<=4.1.3,>=3.1.14)
Requires-Dist: django-extensions (>=3.0.9)
Requires-Dist: djangorestframework (>=3.12.1)
Requires-Dist: django-redis (>=4.11.0)
Requires-Dist: werkzeug (>=1.0.1)
Requires-Dist: dingtalk-sdk (==1.3.8)
Requires-Dist: bson (==0.5.10)
Requires-Dist: loguru (>=0.6.0)
Requires-Dist: python-dotenv (>=0.21.0)
Requires-Dist: pyyaml (>=6.0)
Requires-Dist: mysqlclient (>=2.0.2)
Requires-Dist: pycryptodome (>=3.9.8)
Requires-Dist: celery (<6.0,>=5.0.0)
Requires-Dist: django-celery-results (>=2.3.1)
Requires-Dist: django-celery-beat (>=2.4.0)
Requires-Dist: gevent (>=20.12.0)

Push messages with different backends for the Django framework.
===============================================================

[![MIT License](https://img.shields.io/pypi/l/django-easypush.svg)](https://opensource.org/licenses/MIT)
[![django-easypush can be installed via wheel](https://img.shields.io/pypi/wheel/django-easypush.svg)](http://pypi.python.org/pypi/django-easypush/)
[![Supported Python versions.](https://img.shields.io/pypi/pyversions/django-easypush.svg)](http://pypi.python.org/pypi/django-easypush/)

|          |               |   
| ---------|:--------------| 
| 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**:

``` {.sh}
$ pip install -U django-easypush
```

and then add it to your installed apps:

``` {.python}
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
```
``` {.python}
    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:  

<img src="https://upload-images.jianshu.io/upload_images/6901229-882ad7fa62916daa.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" width="45%" height="70%">  

### 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.
