semvec/pypi-packages huggingface dataset:
multiqueue 0.1.6
Sometimes when you use the Queue class in Python, you need to get an item from any of several queues. This small module implements an easy solution for this problem.
License: BSD

Sometimes when you use the Queue class in Python, you need to get an item from any of several queues.
This small module implements an easy solution for this problem.

MultiQueue class inherits from Queue and overrides internal methods of data access, sharing its interface but managing multiple queues instead of one.

To add items to a MultiQueue, the put method must receive a tuple with the identifier of the queue as the first element and the value to be stored as the second element.

When getting an item from a MultiQueue, you get a tuple indicating from which queue has been extracted and the extracted value.
If there are items in multiple queues, these are obtained mixed, as applying the Round Robin algorithm.

Furthermore, when instantiating the MultiQueue is possible to assign different weights to the queues, so that some have higher priority over others.
If you have 2 queues in a MultiQueue, with weights 1 and 10 and both with a large number of elements, in 11 calls to get method you will obtain just one element from the first queue and 10 elements from the second.
Py-Infinote 0.93
Py-Infinote is a Python implementation of the infinote     operation transformation protocol. It's a direct port of JInfinote
License: BSD
Keywords: infinote,text,editing,collaborative,ot,adopted

This is a port of JInfinote, implemented in Python


Usage
=====

>>> from infinote.document import InfinoteDocument
>>> newdoc = InfinoteDocument('Hello world')
>>> newdoc.state
('1:1', 'Hello world')
>>> newdoc.delete([1,newdoc.state[0], 4, 7])
>>> newdoc.state
('1:2', 'Hell')
>>> newdoc.insert([2,newdoc.state[0], 4,' is the place where all cool people go'])
>>> newdoc.state
('1:2;2:1', 'Hell is the place where all cool people go')
>>> newdoc.delete([1,newdoc.state[0], 24, 3])
>>> newdoc.state
('1:3;2:1', 'Hell is the place where  cool people go')
>>> newdoc.undo([1])
>>> newdoc.state
('1:4;2:1', 'Hell is the place where all cool people go')
>>> newdoc.delete([1,newdoc.state[0], 24, 4])
>>> newdoc.state
('1:5;2:1', 'Hell is the place where cool people go')
argyle 0.2.1
Argyle is a collection of Fabric utilities for Django deployment.
License: BSD

Argyle
==============================

Argyle is a collection of Fabric utilities for Django deployment. This project
is still in very early phases.

.. image::
    https://secure.travis-ci.org/mlavin/argyle.png?branch=master
    :alt: Build Status
        :target: https://secure.travis-ci.org/mlavin/argyle


Requirements
-------------------------------

- Fabric >= 1.1
- Jinja2 >= 2.3

These tasks were written primarily for deployments on Ubuntu Linux. Your
mileage may vary with other operating systems and flavors of Linux.


Questions or Issues?
-------------------------------

If you have questions, issues or requests for improvements please let me know on
`Github <https://github.com/mlavin/argyle/issues>`_.