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.post3.tar.gz
(51.2 kB
view hashes)
Built Distribution
Close
Hashes for pybess_grpc-0.0.4.post3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f0fd098a25ca0e95dad655039dc8e7502ccbfe8c1515e26067e7bad3a2664248 |
|
MD5 | 435b6afe413944a1a16046b2a7e47833 |
|
BLAKE2b-256 | 0866619fe69c0b6f0ce8aebc91f30326a28ab6db577f83f773a18cefbf92e9ba |