django-easypush


Namedjango-easypush JSON
Version 1.1.3 PyPI version JSON
download
home_pagehttps://github.com/luojidr/django-easypush
Summary集成钉钉、企业微信的企业内部应用消息推送系统(支持MQ异步推送)
upload_time2023-03-29 05:31:27
maintainerluojidr
docs_urlNone
authorluojidr
requires_python>=3.8
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            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.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/luojidr/django-easypush",
    "name": "django-easypush",
    "maintainer": "luojidr",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "luojidr@163.com",
    "keywords": "",
    "author": "luojidr",
    "author_email": "luojidr@163.com",
    "download_url": "",
    "platform": null,
    "description": "Push messages with different backends for the Django framework.\r\n===============================================================\r\n\r\n[![MIT License](https://img.shields.io/pypi/l/django-easypush.svg)](https://opensource.org/licenses/MIT)\r\n[![django-easypush can be installed via wheel](https://img.shields.io/pypi/wheel/django-easypush.svg)](http://pypi.python.org/pypi/django-easypush/)\r\n[![Supported Python versions.](https://img.shields.io/pypi/pyversions/django-easypush.svg)](http://pypi.python.org/pypi/django-easypush/)\r\n\r\n|          |               |   \r\n| ---------|:--------------| \r\n| Version  |1.1.3           | \r\n| Web      |               |  \r\n| Download |<http://pypi.python.org/pypi/django-easypush>  |  \r\n| Source   |<https://github.com/luojidr/django-easypush>   | \r\n| Keywords |django, push message, ding_talk, qy_weixin     | \r\n\r\n\r\nAbout\r\n-----\r\n\r\nThe purpose of developing this package is to simplify the push of\r\nDingding, enterprise wechat messages\r\n\r\nInstallation\r\n------------\r\n\r\nYou can install django-easypush either via the Python Package Index\r\n(PyPI) or from source.\r\n\r\nTo install using **pip**:\r\n\r\n``` {.sh}\r\n$ pip install -U django-easypush\r\n```\r\n\r\nand then add it to your installed apps:\r\n\r\n``` {.python}\r\nINSTALLED_APPS = [\r\n    ...,\r\n    'easypush',\r\n    ...,\r\n]\r\n\r\nEASYPUSH = {\r\n    \"default\": {\r\n        \"BACKEND\": 'easypush.backends.ding_talk.DingTalkClient',\r\n        \"CORP_ID\": 'dingfdjrriexckcuirjskd',\r\n        \"AGENT_ID\": 100002834,\r\n        \"APP_KEY\": 'dgfrhfyewuiry347jdshckjdsh',\r\n        \"APP_SECRET\": 'd8QkPEi9YqQl8W9cv_se_Cre417ZwHEXehdteifncyyw5hdJdMRUkzZQ96D4Yvycv3'),\r\n    },\r\n    ...,\r\n}\r\nEASYPUSH_CELERY_APP = \"easypush_demo.celery_app:celery_app\"  # auto to send message by async\r\n```\r\n``` {.python}\r\n    from easypush import easypush\r\n\r\n    easypush.async_send(\r\n        msgtype='oa',\r\n        body_kwargs=dict(\r\n            title=\"Monitor for tasks\",\r\n            media_id='@lADPDetfc4cWS5HNAZDNAlg',\r\n            content=\"Push messages with different backends for the Django framework. Monitor test for dingding, qy_weixin, SMS, feishu or mail.\",\r\n            message_url='https://github.com/luojidr/django-easypush',\r\n            pc_message_url='https://github.com/luojidr/django-easypush',\r\n            forms=[\r\n                dict(key=\"Author: \", value=\"luojidr\"),\r\n                dict(key=\"Type:    \", value=\"Dingding, SMS, Mail, QyWeixin, Feishu\"),\r\n                dict(key=\"Github: \", value=\"https://github.com/luojidr/django-easypush\"),\r\n            ],\r\n    ),\r\n    userid_list=['manager8174']\r\n    )\r\n```\r\nDemo like:  \r\n\r\n<img src=\"https://upload-images.jianshu.io/upload_images/6901229-882ad7fa62916daa.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240\" width=\"45%\" height=\"70%\">  \r\n\r\n### Downloading and installing from source\r\n\r\nDownload the latest version of django-easypush from\r\n<http://pypi.python.org/pypi/django-easypush>\r\n\r\nYou can install it by doing the following,:\r\n\r\n    $ tar xvfz django-easypush-0.0.0.tar.gz\r\n    $ cd django-easypush-0.0.0\r\n    $ python setup.py build\r\n    # python setup.py install\r\n\r\nThe last command must be executed as a privileged user if you are not\r\ncurrently using a virtualenv.\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "\u96c6\u6210\u9489\u9489\u3001\u4f01\u4e1a\u5fae\u4fe1\u7684\u4f01\u4e1a\u5185\u90e8\u5e94\u7528\u6d88\u606f\u63a8\u9001\u7cfb\u7edf\uff08\u652f\u6301MQ\u5f02\u6b65\u63a8\u9001\uff09",
    "version": "1.1.3",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e6b58e8f9ea3f766f375b6cbed3ca592d4d31af06a74add0755f249912efef5f",
                "md5": "17c3a7d196dbb4efcec9cf58fd92e920",
                "sha256": "7c235f6311888690fa5448d91d6f8afd1ed2f7ab0247886112934f04786a6508"
            },
            "downloads": -1,
            "filename": "django_easypush-1.1.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "17c3a7d196dbb4efcec9cf58fd92e920",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 94155,
            "upload_time": "2023-03-29T05:31:27",
            "upload_time_iso_8601": "2023-03-29T05:31:27.967025Z",
            "url": "https://files.pythonhosted.org/packages/e6/b5/8e8f9ea3f766f375b6cbed3ca592d4d31af06a74add0755f249912efef5f/django_easypush-1.1.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-03-29 05:31:27",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "luojidr",
    "github_project": "django-easypush",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "django-easypush"
}
        
Elapsed time: 0.04798s