semvec/pypi-packages huggingface dataset:
django-donottrack 0.1
Django utilities for honoring the Do Not Track HTTP header.
License: BSD

=====================
 Django Do Not Track
=====================

|Build status|_

.. |Build status| image::
   https://secure.travis-ci.org/benspaulding/django-donottrack.png
.. _Build status: https://travis-ci.org/benspaulding/django-donottrack

Django utilities for honoring the `Do Not Track HTTP header`_.

`Mathieu Leplatre`_ posted an article |Do not forget DNT|_. I really
appreciated the post, and wanted to implement the ideas in my projects. Being
lazy, I only wanted to do the work once, so I took his ideas and packaged them
up with some tests and docs.

Included is middleware for detecting ``HTTP_DNT`` and passing its information
on to both views and templates via the ``request`` object, and a useful
context processor. The middleware also adds a vary header for cache control.

This package requires Python 2.7 or newer and Django 1.4 or later.

Refer to the documentation_ for complete information.

.. _Do Not Track HTTP header: http://donottrack.us/
.. _Mathieu Leplatre: https://twitter.com/leplatrem
.. |Do not forget DNT| replace:: `Django: Do not forget Do Not Track`
.. _Do not forget DNT:
    http://blog.mathieu-leplatre.info/django-do-not-forget-do-not-track.html
.. _documentation: http://django-donottrack.readthedocs.org/


Quick-Start
-----------

Installation of the middleware is required. The context processor is convenient
and thus recommended.

Settings::

    MIDDLEWARE_CLASSES = (
        # default/other processors ...
        'donottrack.middleware.DoNotTrackMiddleware',
        # default/other processors ...
    )

    TEMPLATE_CONTEXT_PROCESSORS = (
        # default/other processors ...
        'donottrack.context_processors.donottrack',
    )

Then in your template you can do things like::

    {% if not donottrack %}
        {% include "google-analyitcs.html" %}
    {% endif %}

And your views can also handle DNT::

    def my_view(request):
        if not request.donottrack:
            # Log some request data ...

        # continue with view logic

.. tip::

    Adding this app to your ``INSTALLED_APPS`` is currently unnecessary unless
    you want to run tests.


Other Information
-----------------

.. important::

    Installing this app in your Django project does not mean that you honor Do
    Not Track any more than installing django-secure_ means your web
    applicaiton is secure. It only means you have some tools to help with that
    end goal. You will need to audit your full stack to ensure that you are
    honoring DNT. But this app is a great start, and we hope you find it
    useful.

.. _django-secure: https://github.com/carljm/django-secure

.. note::

    This is an initial release. Despite being simple and theoretically solid
    (it has a full test suite) this is a beta-type release, and the public API
    may change, and as I learn more about DNT, more functionality may be added.
thornbed 0.4.8
Simple oEmbed wrapper for different services
License: BSD
Keywords: oembed youtube vimeo imgur flickr quickmeme

Thornbed
----------

Thornbed is a simple oEmbed wrapper to help you get metadata from different services

It currently supports imgur, youtube, flickr, quickmeme, vimeo

It is very easy to add new services to it, since it uses oEmbed lib

And even you can add a service that doesn't provide oEmbed suppert like imgur, quickmeme, etc...

Getting started
---------------

1. Download and install this package.

2. use it::

    import thornbed

    res = thornbed.embed('http://youtu.be/a1Y73sPHKxw')

3. Have fun !
django-memcached2 0.2
django-memcached2 displays statistics about your currently running
memcached instances.  It's a fork of django-memcached that works with
the new-style CACHES setting introduced in Django 1.3.
License: BSD
Keywords: memcached,django,caching,caches

django-memcached2
=================

django-memcached2 is a lightweight, resuable Django app that displays
statistics about your currently running memcached instances.

It is a fork of Eric Florenzano's django-memcached_ that works with the
CACHES settings introduced in Django 1.3.

.. _django-memcached: https://github.com/ericflo/django-memcached

Installing django-memcached2
----------------------------

1. Either download the tarball and run ``python setup.py install``, or simply
   use easy_install or pip like so ``easy_install django-memcached2``.


2. Add django_memcached to your ``INSTALLED_APPS`` setting::

       INSTALLED_APPS = (
           # ...
           'django_memcached',
       )


3. Add the urls to your url configuration::

       urlpatterns = patterns('',
           # ...
           (r'^cache/', include('django_memcached.urls')),
       )


4. If you want to restrict these urls to only staff members, just add this
   setting to your settings file::
   
       DJANGO_MEMCACHED_REQUIRE_STAFF = True


That's it.  Hopefully this app gives you a little insight into how your
memcached servers are being utilized.