Skip to main content

集成钉钉、企业微信的企业内部应用消息推送系统(支持MQ异步推送)

Project description

Push messages with different backends for the Django framework.

MIT License django-easypush can be installed via wheel Supported Python versions.

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

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

django_easypush-1.1.3-py3-none-any.whl (94.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page