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 "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


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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pybess_grpc-0.0.4.post3-py3-none-any.whl (80.6 kB view details)

Uploaded Python 3

File details

Details for the file pybess_grpc-0.0.4.post3.tar.gz.

File metadata

  • Download URL: pybess_grpc-0.0.4.post3.tar.gz
  • Upload date:
  • Size: 51.2 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

Hashes for pybess_grpc-0.0.4.post3.tar.gz
Algorithm Hash digest
SHA256 37144e3b627e71e7158e67241d97c765850603d1191bf933fb971ac5ecdff1fa
MD5 f5693fc52d8ac5b183239436597c35d6
BLAKE2b-256 6fec929b236c3d2815c6cae573f032c13719e360baaec6c3cefca8279a78ec43

See more details on using hashes here.

File details

Details for the file pybess_grpc-0.0.4.post3-py3-none-any.whl.

File metadata

  • Download URL: pybess_grpc-0.0.4.post3-py3-none-any.whl
  • Upload date:
  • Size: 80.6 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

Hashes for pybess_grpc-0.0.4.post3-py3-none-any.whl
Algorithm Hash digest
SHA256 f0fd098a25ca0e95dad655039dc8e7502ccbfe8c1515e26067e7bad3a2664248
MD5 435b6afe413944a1a16046b2a7e47833
BLAKE2b-256 0866619fe69c0b6f0ce8aebc91f30326a28ab6db577f83f773a18cefbf92e9ba

See more details on using hashes here.

Supported by

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