semvec/pypi-packages huggingface dataset:
paxos 0.1
A demo implementation of the Paxos algorithm implemented in Python.
License: MIT

=====
Paxos
=====

This is a demo implementation of the Paxos algorithm implemented in Python.


Requirements
============
* Python 3


Install
=======
::

    pip install paxos


Implementation Notes
====================

* The proposer, acceptor, and learner roles of the Paxos algorithm are
  implemented in with classes that subclass from a common ``Agent`` class.
* Each role/agent is run in a separate process.
* Communication between processes occurs using ``Queue`` objects, so all
  processes are run on the same machine.
* Paxos Made Simple states that "we require that different proposals have
  different numbers."  To achieve this, we start each proposer process's
  proposal number sequence equal to its own PID, and then increment the number
  for each new proposal by the number of proposer processes in the system.
  This also seems to be the method used in the "Paxos Made Live" paper by
  Google employees.
* It is assumed that all processes in the system be considered members of the
  system from the beginning, without needing to explicitly join the system by
  getting a decree passed.

References
==========
* Lamport's first paper on the subject: `The Part-Time Parliament`_
* Lamport's later paper on Paxos, a simplified version of the first without any
  Greek references: `Paxos Made Simple`_
* Google employees' experience in building a Paxos implementation for Chubby:
  `Paxos Made Live - An Engineering Perspective`_

.. _The Part-Time Parliament: http://research.microsoft.com/en-us/um/people/lamport/pubs/pubs.html#lamport-paxos
.. _Paxos Made Simple: http://research.microsoft.com/en-us/um/people/lamport/pubs/pubs.html#paxos-simple
.. _Paxos Made Live - An Engineering Perspective:


TODO
====
* Add a collapsed version of the roles so that each process plays all of the
  roles.

  * Once we have a collapsed version, leaders should retry a client's request
    if they determine that the instance hasn't been decided after some timeout
    amount of time.  This should fix a couple issues:

    1. Learners are not able to determine whether or not there are more values
       to learn (when it is the last value they are missing).

    2. Since leaders are currently remembering the original value of each
       client request they propose, if a Proposer is asked to retry an
       instance (e.g. from a Learner that is missing a value) then it is
       possible that the value learned will be None in the situation where no
       Acceptor has yet accepted a value in that instance (which means the
       Proposer should specify the value, but since it is not remembering the
       original values it just proposes None).

* When a learner asks a proposer to retry, the proposer shouldn't retry if it
  has already retried that proposal within a certain time period because
  otherwise, by re-upping the proposal number it would be guaranteed to not
  have a successful agreement in that instance it is retrying.

* With a consistent leader, only perform phase one once.
tw2.jqplugins.fullcalendar 2.0.1
toscawidgets2 wrapper for the FullCalendar jQuery plugin
License: MIT
Keywords: tocsawidget2 widgets

tw2.jqplugins.fullcalendar
=============================

:Author:  Robert Sudwarts <robert.sudwarts at gmail.com >

.. _toscawidgets2 (tw2): http://toscawidgets.org/documentation/tw2.core/
.. _jQuery FullCalendar Plugin: http://arshaw.com/fullcalendar/
.. _jQuery FullCalendar Documentation: http://arshaw.com/fullcalendar/docs/

A toscawidgets2 wrapper for the FullCalendar jquery plugin library.

See the FullCalendar library's documentation for further information:
`jQuery FullCalendar Documentation`_ 

For demos of other tw2.jqplugin widgets see: http://tw2-demos.threebean.org/

Description
-------------

`toscawidgets2 (tw2)`_ aims to be a practical and useful widgets framework
that helps people build interactive websites with compelling features, faster
and easier. Widgets are re-usable web components that can include a template,
server-side code and JavaScripts/CSS resources. The library aims to be:
flexible, reliable, documented, performant, and as simple as possible.

`jQuery FullCalendar Plugin`_ is a jQuery plugin that provides a full-sized, 
drag & drop calendar. It uses AJAX to fetch events on-the-fly for each month 
and is easily configured to use your own feed format (an extension is provided 
for Google Calendar). It is visually customizable and exposes hooks for 
user-triggered events (like clicking or dragging an event). The FullCalendar
library is open source and dual licensed under the MIT or GPL Version 2 licenses.

This module, tw2.jqplugins.fullcalendar, provides `toscawidgets2 (tw2)`_ access 
to the `jQuery FullCalendar Plugin`_ widget.

Sampling tw2.jqplugins.fullcalendar in the WidgetBrowser
-----------------------------------------------------------

The best way to scope out ``tw2.jqplugins.fullcalendar`` is to load its widgets 
in the ``tw2.devtools`` WidgetBrowser.  To see the source code that configures 
them, check out 
``tw2.jqplugins.fullcalendar/tw2/jqplugins/fullcalendar/samples.py``

To give it a try you'll need git, python, and `virtualenvwrapper
<http://pypi.python.org/pypi/virtualenvwrapper>`_.  Run::

    $ git clone git@github.com:toscawidgets/tw2.jqplugins.fullcalendar.git
    $ cd tw2.jqplugins.fullcalendar
    $ mkvirtualenv tw2.jqplugins.fullcalendar
    (tw2.jqplugins.fullcalendar) $ pip install tw2.devtools
    (tw2.jqplugins.fullcalendar) $ python setup.py develop
    (tw2.jqplugins.fullcalendar) $ paster tw2.browser

...and browse to http://localhost:8000/ to check it out.