Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    tornado-slacker 0.1

    Download button

    No screenshots available
    Downloads: 157  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Mikhail Korobov | More programs
    MIT/X Consortium Lic... / FREE
    May 4th, 2011, 02:37 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    tornado-slacker description

    This package provides an easy API for moving the work out of the tornado process / event loop

    tornado-slacker is a Python library that provides an easy API for moving the work out of the tornado process / event loop.

    Currently implemented methods are:

    - execute the code in another server's http hook (django implementation is included);
    - execute the code in a separate thread (thread pool is used);
    - dummy immediate execution.

    API example:

    from django.contrib.auth.models import User
    from slacker import adisp
    from slacker import Slacker
    from slacker.workers import DjangoWorker

    AsyncUser = Slacker(User, DjangoWorker())

    @adisp.process
    def process_data():
     # all the django ORM is supported; the query will be executed
     # on remote end, this will not block the IOLoop

     users = yield AsyncUser.objects.filter(is_staff=True)[:5]
     print users


    (pep-342 syntax and adisp library are optional, callback-style code is also supported)

    Installation:

    pip install tornado-slacker


    Product's homepage

    Requirements:

    · Python

      


    TAGS:

    tornado process | event loop | tornado | process | event

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM