Skip to main content

Python Bindings to Interact with BESS GRPC Daemon

Project description

pybess

pybess is a Python library which lets you interact with BESS using gRPC.

Installation

You can install the library directly using pip/pip3:

pip3 install pybess_grpc

Usage

As mentioned above pybess can be used to communicate with BESS over gRPC.

An example of usage of this library is to list all BESS ports remotely:

import sys

from google.protobuf.json_format import MessageToDict
from pybess_grpc.bess import BESS

bess = BESS()
try:
    bess.connect(grpc_url="%s:10514" % sys.argv[1])
    ports = bess.list_ports()
    print(MessageToDict(ports)["ports"])
finally:
    bess.disconnect()

Project details


Download files

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

Files for pybess-grpc, version 0.0.4.post5
Filename, size File type Python version Upload date Hashes
Filename, size pybess_grpc-0.0.4.post5-py3-none-any.whl (61.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size pybess_grpc-0.0.4.post5.tar.gz (15.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page