semvec/pypi-packages huggingface dataset:
kamikaze 0.1.1
A service for placing prioritised packages with expiry times on a queue and having a consumer notified of the packages
License: BSD
Keywords: kamikaze

===============================
Kamikaze
===============================

.. image:: https://badge.fury.io/py/kamikaze.png
    :target: http://badge.fury.io/py/kamikaze

.. image:: https://travis-ci.org/brendanmaguire/kamikaze.png?branch=master
        :target: https://travis-ci.org/brendanmaguire/kamikaze

A service for placing prioritised packages with expiry times on a queue and
having a consumer notified of the packages

How it works
------------

This service monitors a Redis sorted set and calls a consumer function
when a new package arrives or the current highest priority package
expires. The consumer function can be a regular Python function or an
`asyncio coroutine <https://docs.python.org/3/library/asyncio-task.html>`__.

How to install
--------------

::

    pip install kamikaze

The consumer function
---------------------

The consumer function is the function that is called when a new message
comes to the top of the queue. The function should be of the format:

::

    def consumer_function(package, *args):
        """
        Does stuff with packages and optional args passed from the command line
        """

Long running consumer functions
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

If the consumer function is long running then it should yield control of
the loop when possible. Otherwise the kamikaze service will be slow to
react to changes in the queue.

Fast running consumer function
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

If the consumer function is fast then there will be no need to yield
control to the main loop until it is complete.

Running the service
-------------------

Start the service by running the following:

::

    kamikaze service <consumer-function-path> --consumer-function-args

The consumer function should be the full path to the python coroutine.
It must be in your ``$PYTHONPATH``.

Give the ``--help`` flag for a full list of options.

Tools
-----

Pushing a Package
~~~~~~~~~~~~~~~~~

Use the ``push`` command to add a package to the queue:

::

    kamikaze push <payload> <ttl> <priority>

Removing a Package
~~~~~~~~~~~~~~~~~~

Use the ``remove`` command to remove a package from the queue:

::

    kamikaze remove <payload>

List Packages on Queue
~~~~~~~~~~~~~~~~~~~~~~

Use the ``list`` command to list all packages on the queue:

::

    kamikaze list

Running the examples
--------------------

Yielding example
~~~~~~~~~~~~~~~~

An example of a yielding function can be run like so:

::

    kamikaze service example_consumer.consumer.yielding_consumer_func

Blocking example
~~~~~~~~~~~~~~~~

An example of a blocking function can be run like so:

::

    kamikaze service example_consumer.consumer.blocking_consumer_func
koremutake 1.1.0
Convert to and from Koremutake Memorable Random Strings
License: BSD
Keywords: koremutake kormutake koremutate kormutate shorl mers tinyurl

Koremutake is a 128bit MeRS encoding algorithm that can convert any large, 
unsigned number into a memorable sequence of phonetically unique syllables.

For details see http://shorl.com/koremutake.php

To install, run 'sudo easy_install koremutake'

>>> import koremutake
>>> koremutake.encode(10610353957)
'koremutake'
>>> koremutake.decode('koremutake')
10610353957
av2hdf5 1.0
Extract video frames into an HDF5 file
License: BSD

av2hdf5: extract video frames into HDF5 container
=================================================

.. image:: https://travis-ci.org/rjw57/av2hdf5.svg?branch=master
    :target: https://travis-ci.org/rjw57/av2hdf5
    :alt: Build status

av2hdf5 is small utility which can pull video frames out of any
FFMPEG-compatible video format and insert them as separate datasets within an
HDF5 file. Each frame may be stored uncompressed or as a one-dimensional array
of bytes representing the JPEG or PNG encoding.

This utility is probably of use to those performing batch scientific computing
on images with software which expects HDF5-formatted input.

License
-------

This utility is © Copyright 2014, Rich Wareham.

See the `LICENSE.txt <LICENSE.txt>`_ file shipped with this repository for more
information.
django-suit-sortable 0.1.0
Drag-and-drop ordering for objects and inlines in Django admin using django-suit.
License: BSD
Keywords: suit_sortable

django-suit-sortable
====================

Drag-and-drop ordering for objects and inlines in Django admin using [django-suit](https://github.com/darklow/django-suit).

## Installation
	pip install -e git://github.com/JP74/django-suit-sortable.git#egg=suit_sortable

## Configuration

1. Add `suit_sortable` to your `INSTALLED_APPS`.
2. Ensure `django.core.context_processors.static` is in your `TEMPLATE_CONTEXT_PROCESSORS`.


To use suit_sortable you must do following:

In your ``models.py`` file add integer property for sortable to you model:

    from django.db import models

    class Category(models.Model):
        ...
        position = models.PositiveIntegerField()


### Adding Sortable to an existing model

If you're adding Sorting to an existing model, it is recommended that you use [django-south](http://south.areacode.com/) to create a schema migration to add the "position" field to your model. You will also need to create a data migration in order to add the appropriate values for the `position` column.

Example assuming a model named "Category":

    def forwards(self, orm):
        for index, category in enumerate(orm.Category.objects.all()):
            category.position = index + 1
            category.save()



### Django Admin Integration
To enable sorting in the admin, you need to inherit from `SortableAdmin` 
and add a `list_editable` column for the `position` field:

    from django.contrib import admin
    from myapp.models import MySortableClass
    from suit_sortable.admin import SortableAdmin

    class MySortableAdminClass(SortableAdmin):
        list_display = (..., 'position',)
        list_editable = ('position',)
        """Any other admin options you need go here"""

    admin.site.register(MySortableClass, MySortableAdminClass)


To enable sorting on TabularInline models, you need to inherit from
SortableTabularInline:

    from suit_sortable.admin import SortableTabularInline

    class MySortableTabularInline(SortableTabularInline):
       """Your inline options go here"""


To enable sorting on StackedInline models, you need to inherit from
SortableStackedInline:

    from suit_sortable.admin import SortableStackedInline

    class MySortableStackedInline(SortableStackedInline):
       """Your inline options go here"""


### Limitations

Since sortables are based on JavaScript solution, there are known limitations:

1. It doesn't work with pagination.




History
-------

0.1.0 (2013-08-15)
++++++++++++++++++

* First release on Github.