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 "git+https://github.com/rvichery/bess.git@pybess-python
-package#egg=pybess&subdirectory=pybess"
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.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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pybess_grpc-0.0.4.tar.gz
(51.2 kB
view hashes)
Built Distribution
pybess_grpc-0.0.4-py3-none-any.whl
(119.1 kB
view hashes)
Close
Hashes for pybess_grpc-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a913b5b144f79190998969852d33680d16d8563191798c97fefff763f3144182 |
|
MD5 | 34ca658aeaa90bd04417c1832bf3dd4c |
|
BLAKE2b-256 | dc5938e92add5250b86c7e6efb710f6629fff131d4a8ff8d31783b113ab4ded0 |