semvec/pypi-packages huggingface dataset:
django-libsass-compass-mixins 0.12.10
Compass mixins packaged as Django app
License: MIT

Compass Mixins for django-libsass
=================================

`compass-mixins <https://github.com/Igosuki/compass-mixins>`__ packaged
as Django app under the same version number.

Installation
------------

Follow `django-libsass <https://github.com/Igosuki/compass-mixins>`__
installation instructions, then:

::

    $ pip install django-libsass-compass-mixins

and add django\_libsass\_compass\_mixins to your INSTALLED\_APPS setting

.. code:: python

    INSTALLED_APPS = [
    ...
    'django_libsass_compass_mixins'
    ...
    ]

Now you can use Compass mixins in your SCSS files

.. code:: scss

    ...
    @import "compass/reset";
    @import "compass/css3/box-shadow";
    ...

Building
--------

Building requires npm, wheel ans setuptools installed.

Build Django app package from latest version of
`compass-mixins <https://www.npmjs.com/package/compass-mixins>`__:

::

    $ make

then optionally upload the build to PyPI:

::

    $ make dist_upload

License
-------

| Copyright (c) 2008-2009 Christopher M. Eppstein
| All Rights Reserved
| Released under a `slightly modified MIT License <https://github.com/Compass/compass/blob/stable/LICENSE.markdown>`__.
Flask-Defer 1.1.0
Flask extension to defer task execution under after request teardown
License: MIT

Flask-Defer
=========

.. image:: https://badge.fury.io/py/flask-defer.svg
    :target: https://badge.fury.io/py/flask-defer
.. image:: https://travis-ci.org/brettlangdon/flask-defer.svg?branch=master
    :target: https://travis-ci.org/brettlangdon/flask-defer

Easily register a function to execute at the end of the current request.

Installation
~~~~~~~~~~~~

.. code:: bash

   pip install Flask-Defer


Usage
~~~~~

Passing a function and it's arguments to `flask_defer.after_request` will register that function to execute when the Flask request has ended.

If a call to `flask_defer.after_request` happens outside of a request context then the function will be executed immediately.

.. code:: python

   from flask import Flask
   from flask_defer import FlaskDefer, after_request

   app = Flask(__name__)
   FlaskDefer(app)


   def defer_me(name, say_hello=False):
       if say_hello:
           print 'Saying hello to, {name}'.format(name=name)


   @app.route('/')
   def index():
       print 'Start of request method'

       # Defer `defer_me` until after the current request has finished
       after_request(defer_me, 'name', say_hello=True)

       print 'Ending request method'

       return 'Thanks!'


   if __name__ == '__main__':
       app.run()


.. code:: bash

   $ python example.py
    * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
   Start of request method
   Ending request method
   Saying hello to, name
   127.0.0.1 - - [28/Nov/2016 15:41:39] "GET / HTTP/1.1" 200 -