Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Provides gevent primitives to orchestrate different orthogonal servers and services together.

Project Description

As in Ginkgo (of which this module was inspired). Provides gevent primitives to orchestrate different orthogonal servers and services together.

Basic usage:

from gevent import wsgi

import biloba


def hello_world(environ, start_response):
    start_response('200 OK', [('Content-Type', 'text/html')])

    return ['<b>Hello world!</b>\n']


class MyService(biloba.Service):
    def make_web_server(self):
        return wsgi.WSGIServer(
            ('localhost', 5000),
            hello_world
        )

    def do_start(self):
        self.web_server = self.make_web_server()

        self.spawn(self.web_server.serve_forever)

        # you can add more servers/services here


if __name__ == '__main__':
    my_service = MyService()

    # start is called by join

    try:
        my_service.join()
    except KeyboardInterrupt:
        pass

    # as is stop

Extensions

Biloba supports extensions. Define your module as biloba_foobar and import biloba.ext.foobar will work.

Release History

This version
History Node

3.1.0

History Node

3.0.0

History Node

2.0.0

History Node

1.2.2

History Node

1.2.1

History Node

1.2.0

History Node

1.1.3

History Node

1.1.2

History Node

1.1.1

History Node

1.1.0

History Node

1.0.0

History Node

0.10.1

History Node

0.10.0

History Node

0.9.4

History Node

0.9.3

History Node

0.9.2

History Node

0.9.1

History Node

0.9.0

History Node

0.2.1

History Node

0.2.0

History Node

0.1.4

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
biloba-3.1.0.tar.gz
(15.3 kB) Copy SHA256 Hash SHA256
Source None Mar 25, 2016

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers DreamHost DreamHost Log Hosting