Metadata-Version: 1.1
Name: rockettm
Version: 0.0.2
Summary: Rocket task manager
Home-page: https://github.com/kianxineki/rockettm
Author: Alberto Galera Jimenez
Author-email: galerajimenez@gmail.com
License: GPL
Description: |PypiDownloads| |pythonversions|
        
        Rocket task manager
        ===================
        
        Server task manager in python
        
        Install
        -------
        
        .. code:: bash
        
            pip install rockettm
        
        Link pypi: https://pypi.python.org/pypi/rockettm
        
        Example
        -------
        
        Send task
        ~~~~~~~~~
        
        .. code:: python
        
            # send task
            from rockettm import send_task
        
            send_task("queue_name", "name_task", "arg1", ["arg2", "2"], {'args': 3}, ('arg', 4))
        
        Declare new task
        ~~~~~~~~~~~~~~~~
        
        Warning! if there are 2 tasks registered with the same name, will run 2!
        
        .. code:: python
        
            # task example
            from rockettm import task
        
        
            @task('name_task')
            def function1(*args, **kwargs):
                return True
        
        settings.py example
        ~~~~~~~~~~~~~~~~~~~
        
        .. code:: python
        
            # settings.py example
            ip = "localhost"
            port = 5672
            imports = ['examples.test1',
                       'examples.test2']
        
            queues = [{'name': 'rocket1', 'concurrency': 7},
                      {'name': 'rocket2', 'concurrency': 1}]
        
        Run server
        
        .. code:: bash
        
            rabbitmq_server file_settings.py
        
        Documentation
        -------------
        
        Functions
        ~~~~~~~~~
        
        -  task(name\_task\_event) It is a decorator to create tasks
        
        -  send\_task(queue, name\_task, \*args) Send task
        
        -  add\_task(name\_task, func(object)) Add manual task
        
        .. |PypiDownloads| image:: https://img.shields.io/pypi/dm/rockettm.svg
           :target: https://pypi.python.org/pypi/rockettm
        .. |pythonversions| image:: https://img.shields.io/pypi/pyversions/rockettm.svg
           :target: https://pypi.python.org/pypi/rockettm
        
        
        CHANGELOG
        =========
        
        0.0.2 (2016-03-14)
        ------------------
        
        -  Add documentation
        
        0.0.1 (2016-03-14)
        ------------------
        
        -  initial version
        
        
Keywords: rockettm
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: GNU General Public License (GPL)
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
