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

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file django_easypush-1.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for django_easypush-1.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7c235f6311888690fa5448d91d6f8afd1ed2f7ab0247886112934f04786a6508
MD5 17c3a7d196dbb4efcec9cf58fd92e920
BLAKE2b-256 e6b58e8f9ea3f766f375b6cbed3ca592d4d31af06a74add0755f249912efef5f

See more details on using hashes here.

Supported by

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