semvec/pypi-packages huggingface dataset:
django-kvideos 0.0.1
Django application to add videos to models
License: BSD
Keywords: django,visit,counter

Django Kaleidos Videos
======================

.. image:: https://travis-ci.org/kaleidos/django-kvideos.png?branch=master
    :target: https://travis-ci.org/kaleidos/django-kvideos

.. image:: https://coveralls.io/repos/kaleidos/django-kvideos/badge.png?branch=master
    :target: https://coveralls.io/r/kaleidos/django-kvideos?branch=master

.. image:: https://pypip.in/v/django-kvideos/badge.png
    :target: https://crate.io/packages/django-kvideos

.. image:: https://pypip.in/d/django-kvideos/badge.png
    :target: https://crate.io/packages/django-kvideos

Django Kaleidos Videos is a django application for add videos (from services
like youtube or vimeo) to any model.

Suported video services
-----------------------

* Youtube
* Vimeo

Configuration
-------------

Configure the app in your setting INSTALLED_APPS::

  INSTALLED_APPS = [
     ...
     kvideos,
     ...
  ]

Configure, if you want, the default video size in your settings.py::

  KVIDEOS_DEFAULT_SIZE = "640x480"

For easy access to the videos, add to your models a generic relation to kvideos.models.Video model, for example::

  from kvideos.models import Video
  from django.contrib.contenttypes.generic import GenericRelation

  class MyModel(models.Model):
      ... # my fields
      videos = GenericRelation(Video)

For integrate it with the admin panel, you can add a new inline to your models admin classes, for example::

  from django.contrib.contenttypes.generic import GenericTabularInline
  from kvideos.models import Video
  
  class VideoInline(GenericTabularInline):
      model = Video
  
  class MyModelAdmin(admin.ModelAdmin):
      model = models.MyModel
      inlines = [MyOtherInlines, ...,  VideoInline]

Usage
-----

Now you can add videos to any of your models, and can show this on your web page througth the embed_video template tag, for example::

  <div>
    {% for video in myobject.videos.all %}
      {% if forloop.first %}
        {{ video.title }}
        {% embed_video video 800x600 %} <!-- Big video first -->
        {{ video.description }}
      {% else %}
        {{ video.title }}
        {% embed_video video %} <!-- Default size videos -->
      {% endif %}
    {% endfor %}
  </div>
Flask-BasicAuth 0.2.0
HTTP basic access authentication for Flask.
License: BSD

Flask-BasicAuth
===============

|build status|_

.. |build status| image:: https://secure.travis-ci.org/jpvanhal/flask-basicauth.png?branch=master
   :alt: Build Status
.. _build status: http://travis-ci.org/jpvanhal/flask-basicauth

Flask-BasicAuth is a Flask extension that provides an easy way to protect
certain views or your whole application with HTTP `basic access
authentication`_.

.. _basic access authentication: http://en.wikipedia.org/wiki/Basic_access_authentication


Links
-----

- `Documentation <http://flask-basicauth.readthedocs.org/>`_
- `Issue Tracker <http://github.com/jpvanhal/flask-basicauth/issues>`_
- `Code <http://github.com/jpvanhal/flask-basicauth/>`_
- `Development Version
  <http://github.com/jpvanhal/flask-basicauth/zipball/master#egg=Flask-BasicAuth-dev>`_


Changelog
---------

Here you can see the full list of changes between each Flask-BasicAuth
release.

0.2.0 (June 15, 2013)
^^^^^^^^^^^^^^^^^^^^^

- Added Python 3 support.

0.1.1 (May 20, 2013)
^^^^^^^^^^^^^^^^^^^^

- Fixed an issue where attempting to authenticate with password containing one
  or more colons was failing with "too many values to unpack" error (Michael
  Wallace).

0.1.0 (April 30, 2012)
^^^^^^^^^^^^^^^^^^^^^^

- Initial public release