semvec/pypi-packages huggingface dataset:
Flask-Genshi 0.5.1
An extension to Flask for easy Genshi templating.
License: BSD

Flask-Genshi
------------

`Flask-Genshi`_ is an extension to `Flask`_ that allows you to easily
use `Genshi`_ for templating. Easily switch between HTML5 and XHTML
and have the mimetype set automatically for you.

::

    from flask import Flask
    from flaskext.genshi import Genshi, render_response

    app = Flask(__name__)
    genshi = Genshi(app)

    @app.route('/')
    def index():
        title = 'Genshi + Flask, a match made in heaven!'
        return render_response('index.html', dict(title=title))

You can install the `development version`_ from `GitHub`_
with ``easy_install Flask-Genshi==dev`` but you probably want the
latest stable release::

    sudo easy_install Flask-Genshi

.. _Flask-Genshi: http://packages.python.org/Flask-Genshi/
.. _Flask: http://flask.pocoo.org/
.. _Genshi: http://genshi.edgewall.org/
.. _development version: http://github.com/dag/flask-genshi/zipball/master#egg=Flask-Genshi-dev
.. _GitHub: http://github.com/dag/flask-genshi
tipfy.ext.i18n 0.8
Internationalization extension for tipfy
License: BSD

tipfy.ext.i18n
==============

This extension provides internationalization and localization utilities for
`tipfy <http://www.tipfy.org/>`_.

Links
-----
* `Source Code Repository <http://code.google.com/p/tipfy-ext-i18n/>`_
* `Issue Tracker <http://code.google.com/p/tipfy-ext-i18n/issues/list>`_

About tipfy
-----------
* `Home page <http://www.tipfy.org/>`_
* `Extension list <http://www.tipfy.org/wiki/extensions/>`_
* `Discussion Group <http://groups.google.com/group/tipfy>`_
django-pandora 0.1.0
Opening Pandora's box by making django's request object available in a thread local.
License: BSD

django-pandora
==============

*This is Pandora's box. Don't open it if you cannot live with the
consequences.*

**django-pandora** is a utility library for django that lets you easily store
values in a thread-local. This makes it possible to introduce global variables
that are thread safe and don't interfere with other requests to the server.

However a global state is a common anti-pattern in software development that
you usually want to avoid. But at the end of the day it might be the easiest
way to solve some of your problems.

The most common use case for **django-pandora** might be to store the current
request in Pandora's box to make it available in places of your code that
doesn't get the request passed in as argument.

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

#. ``pip install django-pandora``
#. Add ``'pandora.middleware.RequestMiddleware'`` to your
   ``MIDDLEWARE_CLASSES`` setting. (optional)

Usage
-----

The ``pandora.box`` object implements a dict like interface which you can use
to store thread local values. It's really as simple as using a dictionary::

    >>> from pandora import box
    >>> box['foo'] = 'Hello world!'
    >>> box['foo']
    'Hello world!'
    >>> 'foo' in box
    True
    >>> 'bar' in box
    False
    >>> box['bar']
    Traceback (most recent call last):
      ...
    KeyError: 'bar'
    >>> box.get('bar', None)
    None

As mentioned above, you might want to use the box to store the current request
object. Pandora ships with a custom middleware for this purpose. Just append
``'pandora.middleware.RequestMiddleware'`` to your ``MIDDLEWARE_CLASSES``
setting. You can then access the request with ``box['request']``.

There is also another middleware that stores the current user object in
``box['user']``. To use this, add ``'pandora.middleware.UserMiddleware'`` to
your ``MIDDLEWARE_CLASSES`` setting, but make sure that it is listed *after*
``'django.contrib.auth.middleware.AuthenticationMiddleware'``.

Tips
----

* You don't need to import the box object into your module if you think the name
  is too generic and might clash with some of your local names. Just use ::

    >>> import pandora
    >>> pandora.box['request']
    ...

* Even if opening Pandora's box might not seem too evil at the first glance,
  please try to avoid it and pass the request object or any other dependency
  around where possible. Having a global state makes things more difficult for
  everyone - especially to reliably test your code.

* Read the `Wikipedia article about Pandora's box
  <http://en.wikipedia.org/wiki/Pandora's_box>`_.


Changlog
========

0.1.0
-----

Initial release.
panya-paste 0.1.0
Python Paste templates creating Panya buildout environments.
License: BSD

Panya Paste
===========
Python Paste templates creating Panya buildout environments.

.. contents:: Contents
    :depth: 2

Authors
=======

Praekelt Foundation
-------------------
* Shaun Sephton

Changelog
=========

0.1.0
-----
#. Now uses Django 1.2.3.
#. Creates uploads media folder.

0.0.9
-----
#. Corrected django-registration find link

0.0.8
-----
#. Added dummy base template to project app.
#. Added manifest for project app.
#. Default Profile model now inherits from AbstractProfileBase resolving #11. 

0.0.7
-----
#. Set Cheetah version to 2.4.2.1 and above.