semvec/pypi-packages huggingface dataset:
wsgim-rip 0.1.0
WSGI middleware for setting real ip.
License: BSD

=========
wsgim-rip
=========

.. image:: https://travis-ci.org/bninja/wsgim-rip.png
   :target: https://travis-ci.org/bninja/wsgim-rip

.. image:: https://coveralls.io/repos/bninja/wsgim-rip/badge.png
   :target: https://coveralls.io/r/bninja/wsgim-rip


WSGI middleware for setting:

- ``environ["REMOTE_ADDR"]``

based on:

- ``environ["HTTP_X_FORWARDED_FOR"]``

and proxy information.

Install it:

.. code:: bash

   $ pip install wsgim-rip
   ...

and use it:

.. code:: python

   from wsgim_rip import RIPMiddleware

   wrapped = RIPMiddleware(
        app,
        internal='10.0.0.0/8',
        proxies={
            '50.18.213.180': '192.168.0.0/16',
        },
   ))
wsgim-record 0.1.1
WSGI middleware for recording requests/responses.
License: BSD

============
wsgim-record
============

.. image:: https://travis-ci.org/bninja/wsgim-record.png
   :target: https://travis-ci.org/bninja/wsgim-record

.. image:: https://coveralls.io/repos/bninja/wsgim-record/badge.png
   :target: https://coveralls.io/r/bninja/wsgim-record

WSGI middleware for conditionally recording request/response information.

Install it:

.. code:: bash

   $ pip install wsgim-record
   ...

and use it:

.. code:: python

   import wsgim_record

   class RecordMiddleware(wsgim_record.RecordMiddleware)
   
       # tell what to record

       def record_input(self, environ)
           return True

       def record_errors(self, environ)
           return False

       def record_output(self, environ, status, headers, exc_info=None)
           return True

        # what was recorded
        
        def recorded(self, environ, input, errors, status, headers, output):
            ...

   wrapped = RecordMiddleware(app)
js.knockout 3.1.0
Fanstatic packaging of Knockout
License: BSD

js.knockout
***********

Introduction
============

This library packages `Knockout`_ for `fanstatic`_.

.. _`fanstatic`: http://fanstatic.org
.. _`Knockout`: http://knockoutjs.com/

This requires integration between your web framework and ``fanstatic``,
and making sure that the original resources (shipped in the ``resources``
directory in ``js.knockout``) are published to some URL.


How to use?
===========


You can import ``knockout`` from ``js.knockout`` and
``need`` it where you want these resources to be included on a page::

  >>> from js.knockout import knockout
  >>> knockout.need()


CHANGES
*******

3.1.0 (2014-07-28)
==================

- Updated knockout version to current 3.1.0.


2.2.0 (2012-11-28)
==================

- Initial release.
default_value_for_each_call 0.6
compute function default value for each call
License: BSD
Keywords: example documentation tutorial

Return a function whose default values will be computed for each call,
    instead of evaluating the default values when function definition is executed.

    make sure this function is the last(closest to the function) decorator
    Usage:
    @default_value_for_each_call.compute_default_value_for_each_call
    def foo(a=([])):
        a.append(3)
        print a

    foo()
    foo()

    Output:
    [3]
    [3]