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.
Metadata
Release files for srlinux-ndk 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| srlinux-ndk-0.5.0.tar.gz | 16.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| srlinux_ndk-0.5.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 44.5 kB
Release files / srlinux-ndk-0.5.0.tar.gz
| Download URL | srlinux-ndk-0.5.0.tar.gz |
|---|---|
| Size | 16.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
23bf181589e13cf356ac95ad258b5a8fe7e072f4febea0ea5ad9d5b486f46bf0
|
|
BLAKE2b-256 checksum How to use checksums |
4278784761ffa6ad895121158d9b8630e4132f07351b76fd4b424223177b6792
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.8.18
|
Release files / srlinux_ndk-0.5.0-py3-none-any.whl
| Download URL | srlinux_ndk-0.5.0-py3-none-any.whl |
|---|---|
| Size | 27.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
750711c76de9760ab8daa7bcbc077caf2050330cde2fb90996fa4983a0ac1593
|
|
BLAKE2b-256 checksum How to use checksums |
f4dc3ef1577aa9d15120bbc23be58920330fe4a677fac82611797a01df146906
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.8.18
|