semvec/pypi-packages huggingface dataset:
NSMemcached 0.2.1
A simple implementation of a namespaced memcached client
License: MIT

===========================
 README: NSMemcached 0.2.1
===========================

:Author: Nicolas Perriault
:Contact: np at akei com

.. contents::

Abstract
========

NSMemcached_ is simple yet efficient Python implementation of a
`namespaced client`_ for memcached_ on top of the python-memcached_ package.

Quick Start
===========

Sample usage:

    >>> from nsmemcached import Client
    >>> ns_client = Client(['127.0.0.1:11211'])
    >>> ns_client.set('foo', 'bar', ns='barspace')
    True
    >>> ns_client.get('foo', ns='barspace')
    bar
    >>> ns_client.get('foo')
    None
    >>> ns_client.clear_ns('barspace')
    >>> ns_client.get('foo', ns='barspace')
    None

Yes, that simple.

Caveats
=======

Namespace keys are stored in dedicated keys, so every time you request a
namespaced item you'll make two queries to the memcached server instead of one,
so expect a tiny slowdown compared to the way of using the standard,
non-namespaced `memcached API`_.

Dependencies and Compatibility
==============================

NSMemcached_ requires the use of Python 2.4 or more recent.

Installing python-memcached_ package is required in order to use this library,
as well as a working memcached_ server instance, obviously.

NSMemcached_ is fully compatible with the API of the standard python-memcached_
client.

License
=======

This code is released under the terms of the `MIT License`_.

Author
======

Nicolas Perriault, AKEI_, ``<np at akei com>``

.. _namespaced client: http://code.google.com/p/memcached/wiki/FAQ#Deleting_by_Namespace
.. _memcached: http://memcached.org/
.. _memcached API: http://code.google.com/p/memcached/wiki/NewCommands
.. _NSMemcached: http://pypi.python.org/pypi/NSMemcached
.. _python-memcached: http://pypi.python.org/pypi/python-memcached/
.. _MIT License: http://en.wikipedia.org/wiki/MIT_License
.. _AKEI: http://akei.com/
hroute 0.2.0
HTTP router
License: MIT

hroute
------

simple HTTP proxy based on `tproxy <http://github.com/benoitc/tproxy>`_. 

Features
++++++++

- location rewriting
- links rewriting to handle proxy / paths
- simple configuration
- vhosts support
- logging (coming)
- authentification (coming)


Requirements
------------

- `Python <http://python.org>`_ 2.6 and sup (Python 3 not suppported yet)
- `gevent <http://gevent.org>`_ >= 0.13.4
- `setproctitle <http://code.google.com/p/py-setproctitle/>`_ >= 1.1.2
- `tproxy  <http://github.com/benoitc/http-parser>`_ >= 0.5.2
- `http-parser <http://github.com/benoitc/http-parser>`_ >= 0.3.3
- `lxml <http://lxml.de>`_ 

Install
-------

::
    
    $ pip install -r https://github.com/downloads/benoitc/hroute/requirements.txt
    $ pip install hroute


Usage
-----

Create a configuration file named **route** in /var/spool/hroute
(default path) or any folder you want, for example in /tmp, put the
following configuration::

    {
        "all": {
            "routes": {
                "/": {
                    "remote": "benoitc.io:80",
                    "rewrite_response": true
                },
                "/local": {
                    "remote": "127.0.0.1:8000"
                },
                "/google": {
                    "remote": "google.com:80"
                },
                "/gunicorn": {
                    "remote": "gunicorn.org:80",
                    "rewrite_response": true
                },
                "/googles": {
                    "remote": "encrypted.google.com:443",
                    "ssl": true,
                    "rewrite_response": true
                }
            }
        }
    }


then launch hroute::

    $ hroute -s /tmp -w 3

and go on `http://127.0.0.1:5000/gunicorn
<http://127.0.0.1:5000/gunicorn>`_. You should see the gunicorn.org
website.


More features soon.