معرفی شرکت ها


flask-sqlalchemy-pgevents-0.3.0


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

Flask extension for psycopg2-pgevents, using SQLAlchemy.
ویژگی مقدار
سیستم عامل -
نام فایل flask-sqlalchemy-pgevents-0.3.0
نام flask-sqlalchemy-pgevents
نسخه کتابخانه 0.3.0
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Shawn Wallis
ایمیل نویسنده shawn.p.wallis@gmail.com
آدرس صفحه اصلی https://github.com/shawalli/flask-sqlalchemy-pgevents
آدرس اینترنتی https://pypi.org/project/flask-sqlalchemy-pgevents/
مجوز MIT
######################### flask-sqlalchemy-pgevents ######################### .. image:: https://badge.fury.io/py/flask-sqlalchemy-pgevents.svg :target: https://badge.fury.io/py/flask-sqlalchemy-pgevents .. image:: https://coveralls.io/repos/github/shawalli/flask-sqlalchemy-pgevents/badge.svg?branch=master :target: https://coveralls.io/github/shawalli/flask-sqlalchemy-pgevents?branch=master .. image:: https://img.shields.io/badge/License-MIT-yellow.svg :target: https://opensource.org/licenses/MIT flask-sqlalchemy-pgevents provides PostGreSQL eventing for Flask. It handles setting up the underlying database, registering triggers, and polling for events. ************** Why Do I Care? ************** *I have SQLAlchemy, which supports event listeners. Why do I care about this extension?* SQLAlchemy's event listening framework is great for listening to database changes made through SQLAlchemy. However, in the real world, not every data event that affects a database takes place through SQLAlchemy; an application may be created from any number of packages, libraries, and modules written in different languages and with different frameworks. If any of these non-SQLAlchemy items modify a database, SQLAlchemy will not know, and will therefore not notify event listeners of these changes. With this extension, an application may be notified of events at the *database layer*. This means that any changes made to a table are caught by this extension and registered event listeners (for the affected table) are called. ******************* Why Use SQLAlchemy? ******************* *You just said that SQLAlchemy has nothing to do with the eventing aspect of this extension...So why are you using SQLAlchemy?* Great question! SQLAlchemy is primarily used as a convenience mechanism for creating a consistent connection to the database. Additionally, many Flask applications use SQLAlchemy as their ORM. As such, this extension will integrate seamlessly with any Flask applications that use `Flask-SQLAlchemy <https://github.com/mitsuhiko/flask-sqlalchemy>`_. To provide a consistent SQLAlchemy experience, this extension's event listener decorator is designed to closely resemble SQLAlchemy event listener decorators. Note While this extension may appear to integrate with SQLAlchemy's event listeners, it actually sits alongside that eventing structure. Registering a PGEvents event listener does not register the event listener with SQLAlchemy's ``event`` registrar. ******** Examples ******** See the ``examples`` directory for example use cases for this package. ************ Future Plans ************ * With a little bit of work, it should be possible to completely integrate this extension's event listeners into ``SQLAlchemy.event``, so that event listeners are functionally identical to SQLAlchemy's event listeners. * Currently, the only supported events are after-insert and after-update. The ``psycopg2-pgevent`` package could be updated in coordination with this extension to support other `SQLAlchemy mapper events <http://docs.sqlalchemy.org/en/latest/orm/events.html#mapper-events>`_. ********** References ********** * `psycopg2-pgevents <https://github.com/shawalli/psycopg2-pgevents>`_ * `SQLAlchemy <https://bitbucket.org/zzzeek/sqlalchemy>`_ * `Flask-SQLAlchemy <https://github.com/mitsuhiko/flask-sqlalchemy>`_ ********************** Authorship and License ********************** Written by Shawn Wallis and distributed under the MIT license.


نیازمندی

مقدار نام
>=1.0.2,<2.0.0 github-webhook
>=0.3.1,<0.4.0 attr
>=1.1.2,<2.0.0 flask
>=2.4.4,<3.0.0 flask-sqlalchemy
>=2.8.5,<3.0.0 psycopg2-binary
>=0.2.1,<0.3.0 psycopg2-pgevents


زبان مورد نیاز

مقدار نام
>=3.7,<4.0 Python


نحوه نصب


نصب پکیج whl flask-sqlalchemy-pgevents-0.3.0:

    pip install flask-sqlalchemy-pgevents-0.3.0.whl


نصب پکیج tar.gz flask-sqlalchemy-pgevents-0.3.0:

    pip install flask-sqlalchemy-pgevents-0.3.0.tar.gz