Nokia SR Linux NetOps Development Kit
Project description
The Nokia SR Linux NetOps Development Kit (NDK) allows operators to program high-performance, integrated agents that run alongside the Nokia Service Router Linux (SR Linux).
This repository contains generated Python code for SR Linux NDK Protocol buffers.
Installation
The Python srlinux-ndk
package version is synchronized with the SR Linux NDK protobuf releases.
Use git tags to check out a particular version of the generated package files.
To install the srlinux-ndk
python package with pip
, use one of the following:
# install the latest version from pypi
pip install srlinux-ndk
# install the specific version from pypi
pip install srlinux-ndk==0.1.0
# install the latest version from the main github branch
pip install https://github.com/nokia/srlinux-ndk-py/archive/main.zip
# install the specific version from github
pip install https://github.com/nokia/srlinux-ndk-py/archive/0.1.0.zip
These installation steps will install the srlinux-ndk
package on your system. To import the modules from this package:
from ndk import appid_service_pb2
Code generation
This code has been generated from SR Linux NDK Protocol buffers using protoc
compiler with the gRPC plugins for Go and Python.
gen.sh
script calls the protoc
container using the ndk protobufs version as its single argument.
bash gen.sh v0.1.1
The python package will appear under ndk
name in the current working directory.
Publishing
To publish the generated package on pypi,
- Change the version of the package in setup.py accordingly.
- Create a github release using UI or gh cli tool.
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
File details
Details for the file srlinux-ndk-0.3.0.tar.gz
.
File metadata
- Download URL: srlinux-ndk-0.3.0.tar.gz
- Upload date:
- Size: 15.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a346a40b86450dfe5c459e5265541696a4991080291ee11b72ab570824804142 |
|
MD5 | 780c8507ca92fd830a3517bf49300c69 |
|
BLAKE2b-256 | be134fc8c19d90d986a334a664bc89f6893824377c2ca24f9b435541fc36151e |
File details
Details for the file srlinux_ndk-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: srlinux_ndk-0.3.0-py3-none-any.whl
- Upload date:
- Size: 27.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c74e0d3de845c145f330bf98b7e7a1bba34bca029fdd2cb3592796021a2bb43 |
|
MD5 | b95932c0248aa18f0a75f223f392b464 |
|
BLAKE2b-256 | 53a0a1ecbd4767ac3d12668c1444a3108257c83b3ca42e45bfe2c5e63578ea2e |