{ "info": { "author": "Hsiaoming Yang", "author_email": "me@lepture.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Internet :: WWW/HTTP :: Dynamic Content", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "Flask-Weixin\n============\n\nFlask-Weixin is the implementation for http://mp.weixin.qq.com/ with the\nflavor of Flask. It can be used without Flask too.\n\n.. image:: https://img.shields.io/pypi/wheel/flask-weixin.svg?style=flat\n :target: https://pypi.python.org/pypi/Flask-Weixin/\n :alt: Wheel Status\n.. image:: https://img.shields.io/pypi/v/flask-weixin.svg?style=flat\n :target: https://pypi.python.org/pypi/Flask-Weixin/\n :alt: Latest Version\n.. image:: https://travis-ci.org/lepture/flask-weixin.svg?branch=master\n :target: https://travis-ci.org/lepture/flask-weixin\n :alt: Travis CI\n.. image:: https://coveralls.io/repos/lepture/flask-weixin/badge.svg?branch=master\n :target: https://coveralls.io/r/lepture/flask-weixin\n :alt: Coverage Status\n\n\nInstallation\n------------\n\nYou can install Flask-Weixin with pip::\n\n $ pip install Flask-Weixin\n\nOr, with setuptools easy_install in case you didn't have pip::\n\n $ easy_install Flask-Weixin\n\n\nGetting Started\n---------------\n\nEager to get started? It is always the Flask way to create a new instance::\n\n from flask_weixin import Weixin\n\n weixin = Weixin(app)\n\nOr pass the ``app`` later::\n\n weixin = Weixin()\n weixin.init_app(app)\n\nHowever, you need to configure before using it, here is the configuration\nlist:\n\n* WEIXIN_TOKEN: this is required\n* WEIXIN_SENDER: a default sender, optional\n* WEIXIN_EXPIRES_IN: not expires by default\n\nFor Flask user, it is suggested that you use the default view function::\n\n app.add_url_rule('/', view_func=weixin.view_func)\n\n @weixin.register('*')\n def reply(**kwargs):\n username = kwargs.get('sender')\n sender = kwargs.get('receiver')\n content = kwargs.get('content')\n return weixin.reply(\n username, sender=sender, content=content\n )\n\nThe example above will reply anything the user sent.\n\n\nMessage Types\n-------------\n\nEvery message from weixin has these information:\n\n* id: message ID\n* receiver: which is ``ToUserName`` in the official documentation\n* sender: which is ``FromUserName`` in the official documentation\n* type: message type\n* timestamp: message timestamp\n\nText Type\n~~~~~~~~~\n\nText type has an extra data: ``content``.\n\n\nImage Type\n~~~~~~~~~~\n\nImage type has an extra data: ``picurl``.\n\n\nLink Type\n~~~~~~~~~\n\nLink type has extra data:\n\n* title: article title\n* description: article description\n* url: original url of the article\n\n\nLocation Type\n~~~~~~~~~~~~~\n\nLocation type has extra data:\n\n* location_x\n* location_y\n* scale\n* label\n\n\nEvent Type\n~~~~~~~~~~\n\nEvent type has extra data:\n\n* event\n* event_key\n* latitude\n* longitude\n* precision\n\nVoice Type\n~~~~~~~~~~\n\nEvent type has extra data:\n\n* media_id\n* format\n* recognition", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/lepture/flask-weixin", "keywords": "", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "Flask-Weixin", "package_url": "https://pypi.org/project/Flask-Weixin/", "platform": "any", "project_url": "https://pypi.org/project/Flask-Weixin/", "project_urls": { "Homepage": "https://github.com/lepture/flask-weixin" }, "release_url": "https://pypi.org/project/Flask-Weixin/0.5.0/", "requires_dist": null, "requires_python": "", "summary": "Weixin for Flask.", "version": "0.5.0" }, "last_serial": 1828763, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "4f3900b091303dac262aa4df4d1642c9", "sha256": "2ee152508d5788b6079aa98f94cf93f4f24213992647a21021d2bee57d8d1e93" }, "downloads": -1, "filename": "Flask-Weixin-0.1.0.tar.gz", "has_sig": false, "md5_digest": "4f3900b091303dac262aa4df4d1642c9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4500, "upload_time": "2013-11-06T13:55:15", "url": "https://files.pythonhosted.org/packages/47/00/69383f9d69c2ee7110d30116e866b9e284f45963f56df51c846773686113/Flask-Weixin-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "e59f1187ca5d6ad807f2cacdcdc64afc", "sha256": "4cfcb8677e558f594c433dc5b8507df1fb81e88266eca7630a2cfe86ce4ff63f" }, "downloads": -1, "filename": "Flask-Weixin-0.2.0.tar.gz", "has_sig": false, "md5_digest": "e59f1187ca5d6ad807f2cacdcdc64afc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5535, "upload_time": "2014-02-24T08:13:53", "url": "https://files.pythonhosted.org/packages/08/f2/8c5e8269f3721ceca9f52642fbd83fa9cca0e4e49dddbbac4c224dd26703/Flask-Weixin-0.2.0.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "19d23f8bcc510080962996d719865d2c", "sha256": "e428e9f9e445589ee98fcd1427fd78f280e781883a8d8f9c6a186a277972c337" }, "downloads": -1, "filename": "Flask_Weixin-0.3.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "19d23f8bcc510080962996d719865d2c", "packagetype": "bdist_wheel", "python_version": "3.3", "requires_python": null, "size": 7300, "upload_time": "2014-09-20T10:32:45", "url": "https://files.pythonhosted.org/packages/df/e3/c0447274c8d8eb4496bcff96d6ff6fb6a79ecb4497a31afc77579c1885e1/Flask_Weixin-0.3.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "00d5f440504629d377f3aedeb931fb59", "sha256": "a51a248474ce0399f58c9443f4487bba78cfe5e72542a2de8a8c5bc3a24cf061" }, "downloads": -1, "filename": "Flask-Weixin-0.3.0.tar.gz", "has_sig": false, "md5_digest": "00d5f440504629d377f3aedeb931fb59", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6280, "upload_time": "2014-09-20T10:32:41", "url": "https://files.pythonhosted.org/packages/5c/27/21ecbf221cc6e01e4437d5befce0a56f257af4294cd6bd8464337aed2550/Flask-Weixin-0.3.0.tar.gz" } ], "0.4.0": [ { "comment_text": "", "digests": { "md5": "05f3514a90ca5f0b451bd7f845ac465b", "sha256": "8216ded46cecdc7cecbacdc51583c494f7bf95bff97af42b61d4cf901b0a7fc8" }, "downloads": -1, "filename": "Flask_Weixin-0.4.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "05f3514a90ca5f0b451bd7f845ac465b", "packagetype": "bdist_wheel", "python_version": "3.3", "requires_python": null, "size": 7468, "upload_time": "2014-12-30T09:07:17", "url": "https://files.pythonhosted.org/packages/68/b9/48a35077a02dd55d2641a8602fa67f11c8dea79a31043047de65bbb2d025/Flask_Weixin-0.4.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a91dae62a63197ba9d50e9beb2e5034c", "sha256": "278a39d2475b992d1ef91fe1bcef95cebccebedf401ef5500d7bef827b799e6c" }, "downloads": -1, "filename": "Flask_Weixin-0.4.0-py3.3.egg", "has_sig": false, "md5_digest": "a91dae62a63197ba9d50e9beb2e5034c", "packagetype": "bdist_egg", "python_version": "3.3", "requires_python": null, "size": 10727, "upload_time": "2014-12-30T09:07:10", "url": "https://files.pythonhosted.org/packages/3f/ee/d9adb96b4f324d150a89b504dec15402b4ab9e71ae5f87e9d0bfd6631e31/Flask_Weixin-0.4.0-py3.3.egg" }, { "comment_text": "", "digests": { "md5": "ad66ef08d8073ceabb00f315269cd517", "sha256": "8b5b79470522aafc71bbd23769f3e394f1b5ced00bc874a6d84d3021b62e393d" }, "downloads": -1, "filename": "Flask-Weixin-0.4.0.tar.gz", "has_sig": false, "md5_digest": "ad66ef08d8073ceabb00f315269cd517", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6430, "upload_time": "2014-12-30T09:07:06", "url": "https://files.pythonhosted.org/packages/cc/da/db4d715c3fd67db064cd67775cda933df0e0a1aa56a390109f6a31d8cc56/Flask-Weixin-0.4.0.tar.gz" } ], "0.4.1": [ { "comment_text": "", "digests": { "md5": "894faf82346a3522ee43807207f5bcd4", "sha256": "63705efe02e1a8713cccf8c8d46c8e5aa0c50f8f458a0fd473eb60be49cff29c" }, "downloads": -1, "filename": "Flask_Weixin-0.4.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "894faf82346a3522ee43807207f5bcd4", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7696, "upload_time": "2015-01-26T07:30:58", "url": "https://files.pythonhosted.org/packages/a2/94/a384d792587c148044a03fd5987a7146a12173c8f5d79da9d2d98fc21e9d/Flask_Weixin-0.4.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d69d14ebbba21f01395838ab2171671b", "sha256": "0e9e3e1cd7908b2d5012520a5cbb07b128a50e782b2afe9b05a3a42c9c82064c" }, "downloads": -1, "filename": "Flask-Weixin-0.4.1.tar.gz", "has_sig": false, "md5_digest": "d69d14ebbba21f01395838ab2171671b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6577, "upload_time": "2015-01-26T07:30:55", "url": "https://files.pythonhosted.org/packages/6e/6b/d17795908b107e57ba14445342c1f0608264a3e1951cd71c82adaf83cf21/Flask-Weixin-0.4.1.tar.gz" } ], "0.5.0": [ { "comment_text": "", "digests": { "md5": "2b7b2807184a2d8de0f0739e576d0a07", "sha256": "29487d678e1f45b039779e7ba61a95645e4c83bd7b0118ff828b4a12f9afb5c0" }, "downloads": -1, "filename": "Flask_Weixin-0.5.0-py2.py3-none-any.whl", "has_sig": true, "md5_digest": "2b7b2807184a2d8de0f0739e576d0a07", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 8177, "upload_time": "2015-11-23T03:27:12", "url": "https://files.pythonhosted.org/packages/4d/06/777e890737fae0046a1e384cc9b9a9a5d5b936dfb2270e45aa3904678b70/Flask_Weixin-0.5.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9f24cd64cef63508648986bcc3ea048e", "sha256": "02a1322db3917e79aaae9bc9d08228ee68abfa9c813cc3193b7a5a675fe45436" }, "downloads": -1, "filename": "Flask-Weixin-0.5.0.tar.gz", "has_sig": true, "md5_digest": "9f24cd64cef63508648986bcc3ea048e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6887, "upload_time": "2015-11-23T03:27:18", "url": "https://files.pythonhosted.org/packages/ca/4f/284c1bfa88442e65f350137d42cd12dc411321387bde1fd812a84df1a335/Flask-Weixin-0.5.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "2b7b2807184a2d8de0f0739e576d0a07", "sha256": "29487d678e1f45b039779e7ba61a95645e4c83bd7b0118ff828b4a12f9afb5c0" }, "downloads": -1, "filename": "Flask_Weixin-0.5.0-py2.py3-none-any.whl", "has_sig": true, "md5_digest": "2b7b2807184a2d8de0f0739e576d0a07", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 8177, "upload_time": "2015-11-23T03:27:12", "url": "https://files.pythonhosted.org/packages/4d/06/777e890737fae0046a1e384cc9b9a9a5d5b936dfb2270e45aa3904678b70/Flask_Weixin-0.5.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9f24cd64cef63508648986bcc3ea048e", "sha256": "02a1322db3917e79aaae9bc9d08228ee68abfa9c813cc3193b7a5a675fe45436" }, "downloads": -1, "filename": "Flask-Weixin-0.5.0.tar.gz", "has_sig": true, "md5_digest": "9f24cd64cef63508648986bcc3ea048e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6887, "upload_time": "2015-11-23T03:27:18", "url": "https://files.pythonhosted.org/packages/ca/4f/284c1bfa88442e65f350137d42cd12dc411321387bde1fd812a84df1a335/Flask-Weixin-0.5.0.tar.gz" } ] }