Biloba
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.
Metadata
Release files for biloba 3.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| biloba-3.1.0.tar.gz | 15.3 kB | Without provenance | Details |
Release files / biloba-3.1.0.tar.gz
| Download URL | biloba-3.1.0.tar.gz |
|---|---|
| Size | 15.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
864568727e3810f7f9febfce8df9a9c4c13c2653c08688be1abd3df831fbe630
|
|
BLAKE2b-256 checksum How to use checksums |
28d0ed9ec48a8d0f46d860225bb7c94fd7e143a69d604971a83dfd056280376d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for biloba 3.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.