Python :: Berlioz Documentation

Python

Setup

$ pip install berlioz

Basic Use

import berlioz

Flask

from flask import Flask
app = Flask(__name__)
berlioz.setupFlask(app)

Send HTTP Request to Service

response = berlioz.service('inventory').request().get('/items')

Send HTTP Request to Cluster

response = berlioz.cluster('inventory').request().get('/items')