semvec/pypi-packages huggingface dataset:
runner.py 0.5
runner.py Run, Attach, Schedule, Repeat, Chain and React to commands.
License: MIT
Keywords: runner process asyncio


.. image:: https://badge.fury.io/py/run.py.svg
    :target: https://pypi.org/project/runner.py/

.. image:: https://travis-ci.org/mariocesar/run.py.svg?branch=master
    :target: https://travis-ci.org/mariocesar/run.py

Install and Use
---------------

Install with pip.

.. code-block:: console

    pip install runner.py

A simple example on how to use it.

.. code-block:: python

    import asyncio

    from runnerpy.runner import Runner

    if __name__ == '__main__':
        loop = asyncio.get_event_loop()

        runner = Runner(loop)
        runner.run('python manage.py runserver')
        runner.run('celery -A project worker -l INFO')

        runner.start()

Now a Django app will run along the celery worker. Hit ctrl+c to stop both.

Some examples: Creating a backup

.. code-block:: python
    import asyncio

    from runnerpy.runner import Runner

    if __name__ == '__main__':
        loop = asyncio.get_event_loop()

        runner = Runner(loop)
        runner.run('cp -ar dist/static public/static')
        runner.run('pg_dump --all')

        runner.start()

Some examples: Creating a backup

.. code-block:: python
    import asyncio

    from runnerpy.runner import Runner

    if __name__ == '__main__':
        loop = asyncio.get_event_loop()

        runner = Runner(loop)
        runner.run('tail -f /var/log/syslog)
        runner.run('ls -al /home')

        runner.start()
reids-json-storage 0.2.0
Redis json stroage.
License: MIT
Keywords: reids-json-storage

redis-json-storage
==================

.. image:: https://travis-ci.org/appstore-zencore/rjs.svg?branch=master
    :target: https://travis-ci.org/appstore-zencore/rjs

Reids json storage. Store json data as hashmap in redis.

Install
-------

::

    pip install redis-json-storage

Class & Methods
-----

1. redis_json_storage.JsonStorage

   a. update
   b. get
   c. delete
   d. delete_field


Example
-----

::

    from redis_json_storage import JsonStorage

    connection = make_redis_connect(config)
    storage = JsonStorage(connection)
    data1 = {
        "a": 1,
        "b": 2,
    }
    storage.update(data1)
    data2 = {
        "b": 3,
        "c": 4,
    }
    storage.update(data2)
    data3 = storage.get(key)
appstart 0.3.1
Application server framework help you write long run application.
License: MIT
Keywords: appstart

appstart
========

.. image:: https://travis-ci.org/appstore-zencore/appstart.svg?branch=master
    :target: https://travis-ci.org/appstore-zencore/appstart

About
-----

Application server framework help you write long run application.

Install
-------

::

    pip install appstart


Usage
-----

::

    E:\zencore>appserver
    Usage: appserver [OPTIONS] COMMAND [ARGS]...

    Options:
    -c, --config FILENAME  Config file path, use yaml format. Default to
                            config.yaml.
    --help                 Show this message and exit.

    Commands:
    reload  Reload application server.
    start   Start application server.
    stop    Stop application server.


Example Config
--------------

::

    application:
        deamon: true
        pidfile: /tmp/appname.pid
        main: app.main


Create a new type server
------------------------

::

    from appstart import server
    from appstart import set_default_config_path
    from appstart import set_default_pidfile
    from appstart import set_config_loader
    from appstart import default_config_loader

    def helloserver_loader(config):
        data = default_config_loader(config)
        data["server-name"] = "hello server v1.0.0"
        return data

    if __name__ == "__main__":
        set_default_config_path("/etc/helloserver.yaml")
        set_default_pidfile("/var/run/helloserver.pid")
        set_config_loader(helloserver_loader)
        server()