semvec/pypi-packages huggingface dataset:
rullet 0.1.2
Just a script selecting an item from an array randomly like a roulette.
License: MIT
Keywords: roulette, random, choose, choice

Rullet -

rullet is a module which helps you selecting an item from an array randomly just like a roulette.


Usage -

You can use it like :

  $ pip install rullet

  $ rullet foo bar baz

  > bar

or :

  from rullet import rullet

  arr = ['foo', 'bar', 'baz']

  item = rullet.run(arr)

  print item

  > bar
django-kenny 0.1.0
An extremely simple dynamic TemplateView for django
License: MIT
Keywords: django generic-views

# Overview 

An extremely simple django app that renders templates based on URL path.

Kenny provides a single view, `SongBirdView` which takes the path url kwarg
and appends .html to it and serves it. It also rstrips any `/`s. It can also
take an optional `prefix` kwarg that will be prepended to the redered
template's path.

`SongBirdView` is a subclass of `django.views.generic.base.TemplateView`, so
all of it's documentation except for the `template_name` parameter apply.

So basically, to serve the mockups of your website under the `/mockup/` URL
you can do the following:

```
urlpatterns += (
    url(r'^mockup/(?P<path>.*)$', SongBirdView.as_view(prefix='mockup/'))
)
```

This way, if you go to `localhost:8000/mockup/foo/`, your `mockup/foo.html`
template will be served.

# Installation

As easy as

```
pip install django-kenny
```