semvec/pypi-packages huggingface dataset:
anora 0.1.2
Anora is a simple_tag for Django that determines whether or not a word should have an "a" or "an" in front of it. Adds either one of these depending on the phoentic value of the given text.
License: BSD

Anora
==========================
Anora is a Django template filter that determines whether or not a word should have an "a" or "an" in front of it. Adds either one of these depending on the phoenetic value of the given text. It will also automatically add one space before the text.

Install
-------

1. ``pip install anora``
2. Add ``anora`` to your ``INSTALLED_APPS`` 
3. Add ``{% load anora %}`` to the top of templates you wish to use these tags in.

Usage
-------
``{% load anora %}``

``I was taking a walk in the woods today. I came across {{ animal_type|anora  }}.``

Possible outcomes from the above:
-------

I was taking a walk in the woods today. I came across a raccoon.

I was taking a walk in the woods today. I came across an owl.

Credits
-------
Original template filter can he found [here](http://djangosnippets.org/snippets/1519/).
setuptools_pyflakes 1.1.0
setuptools plugin for pyflakes
License: BSD
Keywords: distutils setuptools setup pyflakes

setuptools_pyflakes Manual
==========================

About
-----

This is a plugin for setuptools that integrates pyflakes.  Once installed,
"python setup.py flakes" will run pyflakes on all of the modules in your
project.


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

With easy_install:

  easy_install setuptools_pyflakes

Alternative manual installation:

  tar -zxvf setuptools_pyflakes-X.Y.Z.tar.gz
  cd setuptools_pyflakes-X.Y.Z
  python setup.py install

Where X.Y.Z is a version number.


Usage
-----

To use this plugin, you must first package your python module with
`setup.py` and use setuptools.  The former is well documented in the
distutils manual:

  http://docs.python.org/dist/dist.html

To use setuptools instead of distutils, just edit `setup.py` and
change

  from distutils.core import setup

to

  from setuptools import setup

Then, if this plugin is installed, "python setup.py flakes" will work.


Automatically installing setuptools_pyflakes
--------------------------------------------

You can make sure that anyone who uses your setup.py, and who invokes "python
setup.py flakes", automatically gets this plugin installed, by adding a
`setup_requires` argument.::

  setup_requires=[]
  # setuptools_pyflakes is required to make "python setup.py flakes" work.
  if 'flakes' in sys.argv[1:]:
    setup_requires.append('setuptools_pyflakes')

  setup(...,
    setup_requires = setup_requires,
    ...)


References
----------

How to distribute Python modules with Distutils:

  http://docs.python.org/dist/dist.html


Setuptools documentation:

  http://peak.telecommunity.com/DevCenter/setuptools


Thanks to Yannick Gingras for providing the prototype for this
README.rst.
django-phased 0.6.1
Simple two-phase template rendering application useful for caching of authenticated requests.
License: BSD

django-phased
=============

.. image:: https://secure.travis-ci.org/codysoyland/django-phased.png
   :alt: Build Status
   :target: https://secure.travis-ci.org/codysoyland/django-phased

A simple two-phase template rendering application useful for caching of authenticated requests.

How it works
------------

This technique has been desribed by Adrian Holovaty `in this blog post`_
and previously by Honza Kral. The idea is to first render the template with
certain blocks denoted as "phased," such that they will not be rendered, and
will remain valid template code that can be rendered with a second pass.

The second pass fetches the partially-rendered template from the cache and
performs a second render on it, using RequestContext to provide user-specific
context to the template. This enables very fast generation of pages that have
user-specific content, by bypassing the need to use the
``CACHE_MIDDLEWARE_ANONYMOUS_ONLY`` setting.

This implementation uses a secret delimiter that makes it safe against the
possibility of template code injection vulnerabilities, as it only passes any
given text through the template parser once. The phased blocks can also contain
cached context.

.. _`in this blog post`: http://www.holovaty.com/writing/django-two-phased-rendering/

Basic Implementation
--------------------

django-phased contains a templatetag, ``phased``, which defines blocks that
are to be parsed during the second phase. A middleware class,
PhasedRenderMiddleware, processes the response to render the parts that were
skipped during the first rendering.

A special subclass of UpdateCacheMiddleware that drops the "Vary: Cookie"
header from response when it updates the cache is also included, which, if
used in place of the standard UpdateCacheMiddleware will prevent the cache
middleware from varying the cache key based on cookies, thus enabling caching
of pages in authenticated sessions.