semvec/pypi-packages huggingface dataset:
django-krate 0.0.1
Django application to rate objects
License: BSD
Keywords: django,visit,counter

Django Kaleidos Rate
====================

Django Kaleidos Rate is a django application for rate objects.

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

Configure the app in your setting INSTALLED_APPS::

  INSTALLED_APPS = [
     ...
     krate,
     ...
  ]


DBRateHandler configuration
~~~~~~~~~~~~~~~~~~~~~~~~~~~

configure the dbratehandler, for example::

  INSTALLED_APPS = [
     ...
     krate.ratehandlers.dbratehandler,
     ...
  ]

Configure the rate handler on settings.py, for example::

  KRATE_RATE_HANDLER = "krate.ratehandlers.dbratehandler.DBRateHandler"

If you want to have an copy of the average rate stored in the models add the
KRateableMixin to your models, for example::

  from krate.ratehandlers.dbratehandler.models import KRateableMixin

  class MyModel(models.Model, KRateableMixin):
      ... # My model definition...

If you want to show and manage the valorations of the objects in the admin
panel add a new inline to your models admin classes, for example:: 

  from django.contrib.contenttypes.generic import GenericTabularInline
  from krate.ratehandlers.dbratehandler.models import ObjRate, ObjRateAggregate

  class ObjRateInline(GenericTabularInline):
      model = ObjRate

  class ObjRateAggregateInline(GenericTabularInline):
      model = ObjRateAggregate
  
  class MyModelAdmin(admin.ModelAdmin):
      model = models.MyModel
      inlines = [MyOtherInlines, ...,  ObjRateAggregateInline, ObjRateAggregateInline]

Usage
-----

Now you can use rate_object in your views to store the rate from users, and use
the {% krate object %} and {% mykrate request_or_user object %} to get the average rate, and my
own rate.
pyojo 0.0.2
Web framework to create Dojo apps.
License: BSD
Keywords: WSGI dojo

About 'pyojo' app development
----------------------------- 

This is yet another framework to help develop web applicattions 
with python. The difference is that it is oriented to create 
applications with The Dojo Toolkit, trying to facilitate a set
of wrappers to generate the javascript sent to the client and 
providing help to work with the AMD loader. 

Pyojo provides decorators to set up the route map and assign
some functions or classes to certain URLs, but it also can be 
used creating python modules in a folder structure, where the
name of the module defines the content type, and the returned
value of a function named GET, POST, PUT or DELETE is the
response.

The minimal "Hello World":

    import pyojo
    from pyojo import server

    @pyojo.route("/")
    def Home():
        return "Hello World!"

    server.main()


A basic example with javascript:

    import pyojo

    #Redirect to index.html
    @pyojo.route("/")
    def Home(request):
       return request.static("index.html")

And then a couple of modules at ./srv (the default folder) will
handle this request:

srv/index_html.py:

    def GET(request):
	   return '''<html>
                   <body><script src='main.js'></body>
                  </html>'''
        
srv/main_js.py:

    def GET(request):
	   return "alert('Hello World!');"

But the real power is in the pyojo.js modules, offering a set 
of code generation utilities for your Dojo application.
django-modelsubscription 0.0.1
Generic model mixin for user or email subscription to objects
License: BSD
Keywords: django,model

django-modelsubscription
========================

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

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

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

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


Easy user or email subscriptions to django models.

See `code <https://github.com/kaleidos/django-modelsubscription>`_ and 
`documentation <http://django-modelsubscription.readthedocs.org>`_.
pyramid_filterwarnings 0.4
Configure python warnings for the Pyramid web framework
License: BSD
Keywords: pyramid

pyramid_filterwarnings
======================

Getting Started
---------------

The aim of this project is to provide a generic way to configure python
`warnings.filterwarnings`_.
Python warnings can be configured via Environment variable, Python interpreter
argument, or directly in the code. This plugin provides to Pyramid application
a clean way to configure the warning level via its configuration file.


Configuration
-------------

Set the pyramid_filterwarnings plugin from in the Pyramid ini file then
configure the level.

::

    pyramid.includes =
        pyramid_filterwarnings
        ... your other plugins ...

    # configure the warning level, default is ignore
    filterwarnings.action = ignore

.. note::

    You should set the filterwarnings on top of the configuration if you want
    to catch plugins warnings. You should also set the level to error for your
    developement environment to fix the warning as soon as possible.


It is also possible to set category_, module and message, and do many rules.

::

    # Other optionals configurations keys
    # filterwarnings.category = DeprecationWarning
    # filterwarnings.module = pyramid\..*

    # Add other rules
    filterwarnings.1.action = once
    filterwarnings.1.category = DeprecationWarning
    filterwarnings.1.module = sqlalchemy\..*

    filterwarnings.2.action = ignore
    filterwarnings.2.module = pyramid_jinja2\.*
    filterwarnings.2.message = reload_templates setting is deprecated

    # and more if necessary...


.. _warnings.filterwarnings: _http://docs.python.org/2/library/warnings.html#warnings.filterwarnings
.. _category: _http://docs.python.org/2/library/warnings.html#warning-categories