Skip to main content

Basic Integration Platform

Project description

Basic Integration Platform

logo-192

Provides all-in-one package with:

  • tracing
  • journal
  • Web UI

Tends to help to create basic integration solutions. Heavily inspired by node-red.

Install

pip install binp uvicorn

Example:

from random import randint

from binp import BINP

bip = BINP()


@bip.app.post('/random', response_model=int)
@bip.journal
async def generate_random():
    """
    Generate random number in range 0 ... 1024
    """
    return randint(0, 1024)


@bip.action
@bip.journal
async def currency_rate():
    """
    Fetch currency rate for EUR -> USD
    """
    # go to external service
    euro = 1.3
    await bip.journal.record('rates fetched', base_currency='USD', euro=euro)

Save as 'example.py' and run it by

uvicorn example:bip.app

It will expose

Project details


Download files

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

Source Distribution

binp-0.0.1.tar.gz (124.2 kB view hashes)

Uploaded Source

Built Distribution

binp-0.0.1-py3-none-any.whl (128.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page