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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pybess_grpc-0.0.4.post5.tar.gz.
File metadata
- Download URL: pybess_grpc-0.0.4.post5.tar.gz
- Upload date:
- Size: 15.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f3adb89484c463fb25f7aff415ce1255405075e459877095299633031af5a613
|
|
| MD5 |
e72f9a3e4aa5735b5d02544175e19d99
|
|
| BLAKE2b-256 |
c36e958b496097a273b75ae06c386341e2c139faffef494d5adbc7df0fabd801
|
File details
Details for the file pybess_grpc-0.0.4.post5-py3-none-any.whl.
File metadata
- Download URL: pybess_grpc-0.0.4.post5-py3-none-any.whl
- Upload date:
- Size: 61.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
86a60b6564d073deb44b1f2437d4d760c2bdb0cc9cffed87cfffe91a860e3a28
|
|
| MD5 |
47ddf7fa5dff2e38a8a7f3a7ef846a30
|
|
| BLAKE2b-256 |
69692c9e1e0cefbf92228b30a4139ff56cddf6b23f6401fe3ec198c459967f20
|