{ "info": { "author": "Shawn Wallis", "author_email": "shawn.p.wallis@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Database", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Utilities" ], "description": "#########################\nFlask-SQLAlchemy-PGEvents\n#########################\n\n.. image:: https://badge.fury.io/py/Flask-SQLAlchemy-PGEvents.svg\n :target: https://badge.fury.io/py/Flask-SQLAlchemy-PGEvents\n.. image:: https://circleci.com/gh/shawalli/flask-sqlalchemy-pgevents.svg?style=svg\n :target: https://circleci.com/gh/shawalli/flask-sqlalchemy-pgevents\n.. image:: https://coveralls.io/repos/github/shawalli/flask-sqlalchemy-pgevents/badge.svg?branch=master\n :target: https://coveralls.io/github/shawalli/flask-sqlalchemy-pgevents?branch=master\n.. image:: https://img.shields.io/badge/License-MIT-yellow.svg\n :target: https://opensource.org/licenses/MIT\n\nFlask-SQLAlchemy-PGEvents provides PostGreSQL eventing for Flask. It handles\nsetting up the underlying database, registering triggers, and polling for\nevents.\n\n**************\nWhy Do I Care?\n**************\n\n *I have SQLAlchemy, which supports event listeners. Why do I care about this\n extension?*\n\nSQLAlchemy's event listening framework is great for listening to database\nchanges made through SQLAlchemy. However, in the real world, not every data\nevent that affects a database takes place through SQLAlchemy; an application\nmay be created from any number of packages, libraries, and modules written\nin different languages and with different frameworks. If any of these\nnon-SQLAlchemy items modify a database, SQLAlchemy will not know, and will\ntherefore not notify event listeners of these changes.\n\nWith this extension, an application may be notified of events at the\n*database layer*. This means that any changes made to a table are caught by\nthis extension and registered event listeners (for the affected table) are\ncalled.\n\n*******************\nWhy Use SQLAlchemy?\n*******************\n\n *You just said that SQLAlchemy has nothing to do with the eventing aspect\n of this extension...So why are you using SQLAlchemy?*\n\nGreat question! SQLAlchemy is primarily used as a convenience mechanism for\ncreating a consistent connection to the database.\n\nAdditionally, many Flask applications use SQLAlchemy as their ORM. As such,\nthis extension will integrate seamlessly with any Flask applications that\nuse `Flask-SQLAlchemy `_. To\nprovide a consistent SQLAlchemy experience, this extension's event listener\ndecorator is designed to closely resemble SQLAlchemy event listener decorators.\n\nNote\n While this extension may appear to integrate with SQLAlchemy's event\n listeners, it actually sits alongside that eventing structure. Registering\n a PGEvents event listener does not register the event listener with\n SQLAlchemy's ``event`` registrar.\n\n********\nExamples\n********\n\nSee the ``examples`` directory for example use cases for this package.\n\n************\nFuture Plans\n************\n\n* With a little bit of work, it should be possible to completely integrate this\n extension's event listeners into ``SQLAlchemy.event``, so that event listeners\n are functionally identical to SQLAlchemy's event listeners.\n\n* Currently, the only supported events are after-insert and after-update.\n The ``psycopg2-pgevent`` package could be updated in coordination with this\n extension to support other `SQLAlchemy mapper events\n `_.\n\n**********\nReferences\n**********\n\n* `psycopg2-pgevents `_\n\n* `SQLAlchemy `_\n\n* `Flask-SQLAlchemy `_\n\n**********************\nAuthorship and License\n**********************\n\nWritten by Shawn Wallis and distributed under the MIT license.\n\n\n", "description_content_type": "text/x-rst", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/shawalli/flask-sqlalchemy-pgevents", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "Flask-SQLAlchemy-PGEvents", "package_url": "https://pypi.org/project/Flask-SQLAlchemy-PGEvents/", "platform": "any", "project_url": "https://pypi.org/project/Flask-SQLAlchemy-PGEvents/", "project_urls": { "Homepage": "https://github.com/shawalli/flask-sqlalchemy-pgevents" }, "release_url": "https://pypi.org/project/Flask-SQLAlchemy-PGEvents/0.1.1/", "requires_dist": [ "Flask (>=1.0.2)", "Flask-SQLAlchemy (>=2.3.2)", "psycopg2-binary (>=2.7.5)", "psycopg2-pgevents (==0.1.1)" ], "requires_python": "", "summary": "Flask extension for psycopg2-pgevents, using SQLAlchemy.", "version": "0.1.1" }, "last_serial": 4277307, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "2a8943e5048e35c9b4b68b8435ec5145", "sha256": "1c80aa4c26213428292fe73ed767428dc3b9f6d7ce94e9a3d3529106f1a2eaff" }, "downloads": -1, "filename": "Flask_SQLAlchemy_PGEvents-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "2a8943e5048e35c9b4b68b8435ec5145", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5786, "upload_time": "2018-09-16T19:32:18", "url": "https://files.pythonhosted.org/packages/08/da/82b75cdb8b57b248559accc77debcd706d8d744b94dc0740c38848dddf10/Flask_SQLAlchemy_PGEvents-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b9afbf1a7b30623502fb7397d500544e", "sha256": "e98a6cb2af77f63b4640c4c1bad51aee7fb4186c7ebe8b57691061e503310601" }, "downloads": -1, "filename": "Flask-SQLAlchemy-PGEvents-0.1.0.tar.gz", "has_sig": false, "md5_digest": "b9afbf1a7b30623502fb7397d500544e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6303, "upload_time": "2018-09-16T19:32:19", "url": "https://files.pythonhosted.org/packages/46/f7/7db54bbdc52d3a6636a1fdfe36807993fbf4f068179f43828e2b60d40d6c/Flask-SQLAlchemy-PGEvents-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "9ae526ddb3510df036d6e98b6b31a135", "sha256": "95c86f2f3cf1d13428f2f1722f472221fba53e1cc6b111729299b2c8b15cea57" }, "downloads": -1, "filename": "Flask_SQLAlchemy_PGEvents-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "9ae526ddb3510df036d6e98b6b31a135", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5782, "upload_time": "2018-09-16T19:42:49", "url": "https://files.pythonhosted.org/packages/5d/a0/9ab05ac62f17c3ba7fedeb2d3673440d772ef6f4c1e53b787ecd96a335f7/Flask_SQLAlchemy_PGEvents-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "16ce84c09b9f9944faad03344aee1544", "sha256": "1e4a46f28faa7ac1d7bebda646918e66e0f6debe369269e2e98b299032818006" }, "downloads": -1, "filename": "Flask-SQLAlchemy-PGEvents-0.1.1.tar.gz", "has_sig": false, "md5_digest": "16ce84c09b9f9944faad03344aee1544", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6308, "upload_time": "2018-09-16T19:42:51", "url": "https://files.pythonhosted.org/packages/f5/71/13154528e72da0b57124cfb258908c366404b18b777120a3a9223d727e77/Flask-SQLAlchemy-PGEvents-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9ae526ddb3510df036d6e98b6b31a135", "sha256": "95c86f2f3cf1d13428f2f1722f472221fba53e1cc6b111729299b2c8b15cea57" }, "downloads": -1, "filename": "Flask_SQLAlchemy_PGEvents-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "9ae526ddb3510df036d6e98b6b31a135", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5782, "upload_time": "2018-09-16T19:42:49", "url": "https://files.pythonhosted.org/packages/5d/a0/9ab05ac62f17c3ba7fedeb2d3673440d772ef6f4c1e53b787ecd96a335f7/Flask_SQLAlchemy_PGEvents-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "16ce84c09b9f9944faad03344aee1544", "sha256": "1e4a46f28faa7ac1d7bebda646918e66e0f6debe369269e2e98b299032818006" }, "downloads": -1, "filename": "Flask-SQLAlchemy-PGEvents-0.1.1.tar.gz", "has_sig": false, "md5_digest": "16ce84c09b9f9944faad03344aee1544", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6308, "upload_time": "2018-09-16T19:42:51", "url": "https://files.pythonhosted.org/packages/f5/71/13154528e72da0b57124cfb258908c366404b18b777120a3a9223d727e77/Flask-SQLAlchemy-PGEvents-0.1.1.tar.gz" } ] }