semvec/pypi-packages huggingface dataset:
Flask-MongoKit 0.6
A Flask extension simplifies to use MongoKit
License: BSD

Flask-MongoKit
--------------

Flask-MongoKit simplifies to use MongoKit, a powerful MongoDB ORM in Flask      
applications.

Links
`````

* `documentation <http://packages.python.org/Flask-MongoKit>`_
* `development version <http://github.com/jarus/flask-mongokit/zipball/master#egg=Flask-MongoKit-dev>`_
* `MongoKit <http://namlook.github.com/mongokit/>`_
* `Flask <http://flask.pocoo.org>`_
django-celery-with-beanstalk 3.0
Bundle installing the dependencies for Django-Celery and Beanstalk
License: BSD

=================================================================================================
django-celery-with-beanstalk - Bundle installing the dependencies for Django-Celery and Beanstalk
=================================================================================================

:Version: 3.0

Contents
========

This bundle installs the following packages::

    ['django-celery>=3.0,<4.0', 'beanstalkc']

What is this?
=============

This is a bundle of several packages that you can use as a shortcut in the
requirements lists of your applications.  Bundles are used to follow a
common group of packages, or a package with an optional extension feature.

You can install all of the packages in this bundle by,

*using pip*::

    $ pip install -U django-celery-with-beanstalk

or *using easy_install*::

    $ easy_install -U django-celery-with-beanstalk

Or if you want to add this bundle as a dependency in your application, you
can add the following identifier in your ``setup.py``'s requires list or
in your pip requirements files::

    django-celery-with-beanstalk

You can also specify a specific version::

    django-celery-with-beanstalk>=3.0
django-celery-with-couchdb 3.0
Bundle installing the dependencies for Django-Celery and CouchDB
License: BSD

=============================================================================================
django-celery-with-couchdb - Bundle installing the dependencies for Django-Celery and CouchDB
=============================================================================================

:Version: 3.0

Contents
========

This bundle installs the following packages::

    ['django-celery>=3.0,<4.0', 'couchdb']

What is this?
=============

This is a bundle of several packages that you can use as a shortcut in the
requirements lists of your applications.  Bundles are used to follow a
common group of packages, or a package with an optional extension feature.

You can install all of the packages in this bundle by,

*using pip*::

    $ pip install -U django-celery-with-couchdb

or *using easy_install*::

    $ easy_install -U django-celery-with-couchdb

Or if you want to add this bundle as a dependency in your application, you
can add the following identifier in your ``setup.py``'s requires list or
in your pip requirements files::

    django-celery-with-couchdb

You can also specify a specific version::

    django-celery-with-couchdb>=3.0
django-celery-with-mongodb 3.0
Bundle installing the dependencies for Django-Celery and MongoDB
License: BSD

=============================================================================================
django-celery-with-mongodb - Bundle installing the dependencies for Django-Celery and MongoDB
=============================================================================================

:Version: 3.0

Contents
========

This bundle installs the following packages::

    ['django-celery>=3.0,<4.0', 'pymongo']

What is this?
=============

This is a bundle of several packages that you can use as a shortcut in the
requirements lists of your applications.  Bundles are used to follow a
common group of packages, or a package with an optional extension feature.

You can install all of the packages in this bundle by,

*using pip*::

    $ pip install -U django-celery-with-mongodb

or *using easy_install*::

    $ easy_install -U django-celery-with-mongodb

Or if you want to add this bundle as a dependency in your application, you
can add the following identifier in your ``setup.py``'s requires list or
in your pip requirements files::

    django-celery-with-mongodb

You can also specify a specific version::

    django-celery-with-mongodb>=3.0
django-celery-with-redis 3.0
Bundle installing the dependencies for Django-Celery and Redis
License: BSD

=========================================================================================
django-celery-with-redis - Bundle installing the dependencies for Django-Celery and Redis
=========================================================================================

:Version: 3.0

Contents
========

This bundle installs the following packages::

    ['django-celery>=3.0,<4.0', 'redis>=2.4.4']

What is this?
=============

This is a bundle of several packages that you can use as a shortcut in the
requirements lists of your applications.  Bundles are used to follow a
common group of packages, or a package with an optional extension feature.

You can install all of the packages in this bundle by,

*using pip*::

    $ pip install -U django-celery-with-redis

or *using easy_install*::

    $ easy_install -U django-celery-with-redis

Or if you want to add this bundle as a dependency in your application, you
can add the following identifier in your ``setup.py``'s requires list or
in your pip requirements files::

    django-celery-with-redis

You can also specify a specific version::

    django-celery-with-redis>=3.0
celery-with-couchdb 3.0
Bundle installing the dependencies for Celery and CouchDB
License: BSD

===============================================================================
celery-with-couchdb - Bundle installing the dependencies for Celery and CouchDB
===============================================================================

:Version: 3.0

Contents
========

This bundle installs the following packages::

    ['celery>=3.0,<4.0', 'couchdb']

What is this?
=============

This is a bundle of several packages that you can use as a shortcut in the
requirements lists of your applications.  Bundles are used to follow a
common group of packages, or a package with an optional extension feature.

You can install all of the packages in this bundle by,

*using pip*::

    $ pip install -U celery-with-couchdb

or *using easy_install*::

    $ easy_install -U celery-with-couchdb

Or if you want to add this bundle as a dependency in your application, you
can add the following identifier in your ``setup.py``'s requires list or
in your pip requirements files::

    celery-with-couchdb

You can also specify a specific version::

    celery-with-couchdb>=3.0
celery-with-mongodb 3.0
Bundle installing the dependencies for Celery and MongoDB
License: BSD

===============================================================================
celery-with-mongodb - Bundle installing the dependencies for Celery and MongoDB
===============================================================================

:Version: 3.0

Contents
========

This bundle installs the following packages::

    ['celery>=3.0,<4.0', 'pymongo']

What is this?
=============

This is a bundle of several packages that you can use as a shortcut in the
requirements lists of your applications.  Bundles are used to follow a
common group of packages, or a package with an optional extension feature.

You can install all of the packages in this bundle by,

*using pip*::

    $ pip install -U celery-with-mongodb

or *using easy_install*::

    $ easy_install -U celery-with-mongodb

Or if you want to add this bundle as a dependency in your application, you
can add the following identifier in your ``setup.py``'s requires list or
in your pip requirements files::

    celery-with-mongodb

You can also specify a specific version::

    celery-with-mongodb>=3.0
celery-with-redis 3.0
Bundle installing the dependencies for Celery and Redis
License: BSD

===========================================================================
celery-with-redis - Bundle installing the dependencies for Celery and Redis
===========================================================================

:Version: 3.0

Contents
========

This bundle installs the following packages::

    ['celery>=3.0,<4.0', 'redis>=2.4.4']

What is this?
=============

This is a bundle of several packages that you can use as a shortcut in the
requirements lists of your applications.  Bundles are used to follow a
common group of packages, or a package with an optional extension feature.

You can install all of the packages in this bundle by,

*using pip*::

    $ pip install -U celery-with-redis

or *using easy_install*::

    $ easy_install -U celery-with-redis

Or if you want to add this bundle as a dependency in your application, you
can add the following identifier in your ``setup.py``'s requires list or
in your pip requirements files::

    celery-with-redis

You can also specify a specific version::

    celery-with-redis>=3.0
Flask-Celery 2.4.3
Celery integration for Flask
License: BSD

==============================
 Flask <-> Celery Integration
==============================
:Version: 2.4.3

**FROM CELERY 3.0 THIS LIBRARY IS NO LONGER NECESSARY, INSTEAD YOU SHOULD
USE THE STANDARD CELERY API**

.. _Celery: http://celeryproject.org

Using Flask with Celery
=======================

From Celery 3.0 the Flask-Celery integration package is no longer
recommended and you should use the standard Celery API instead.

Please read the Celery getting started tutorial::

    http://docs.celeryproject.org/en/latest/getting-started/first-steps-with-celery.html


You can easily add Celery to your flask application like this:

``myapp.py``::

    from celery import Celery

    celery = Celery('myapp', broker='amqp://guest@localhost//')

    @celery.task
    def add(x, y):
        return x + y


To start the worker you can then launch the ``celery worker`` command
by pointing to your ``celery`` app instance::

    $ celery -A myapp worker -l info

(if the app argument (``-A|--app)`` is a module/package instead of an
attribute
it will automatically expand into ``myapp.celery``)


See the commands help screen for more information::

    $ celery help


If you want use the flask configuration as a source for the celery
configuration you can do that like this::

    celery = Celery('myapp')
    celery.config_from_object(flask_app.config)


If you need access to the request inside your task
then you can use the test context::

    from flask import Flask
    from celery import Celery

    app = Flask('myapp')
    celery = Celery('myapp')

    celery.config_from_object(app.config)

    @celery.task
    def hello():
        with app.test_request_context() as request:
            print('Hello {0!r}.format(request))