srlinux-ndk


Namesrlinux-ndk JSON
Version 0.4.0 PyPI version JSON
download
home_pagehttps://github.com/nokia/srlinux-ndk-py
SummaryNokia SR Linux NetOps Development Kit
upload_time2024-10-29 06:22:49
maintainerNone
docs_urlNone
authorNokia
requires_pythonNone
licenseNone
keywords
VCS
bugtrack_url
requirements protobuf grpcio
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <p align=center><a href="https://learn.srlinux.dev"><img src=https://gitlab.com/rdodin/pics/-/wikis/uploads/0102e45007f7fcc357aacdffe61e9555/srl-ndk-py.svg?sanitize=true/></a></p>

---

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](https://github.com/nokia/srlinux-ndk-protobufs).

## Installation

The Python `srlinux-ndk` package version is synchronized with the SR Linux [NDK protobuf releases](https://github.com/nokia/srlinux-ndk-protobufs).

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:

```bash
# 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:

```py
from ndk import appid_service_pb2
```

## Code generation

This code has been generated from [SR Linux NDK Protocol buffers](https://github.com/nokia/srlinux-ndk-protobufs) using [`protoc` compiler](https://github.com/srl-labs/protoc-container) 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
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,

1. Change the version of the package in [setup.py](setup.py) accordingly.
2. Create a github release using UI or gh cli tool.



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/nokia/srlinux-ndk-py",
    "name": "srlinux-ndk",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": null,
    "author": "Nokia",
    "author_email": "roman.dodin@nokia.com",
    "download_url": "https://files.pythonhosted.org/packages/01/38/677987797652a07c54890fdfac2512764b1c910eb39d611f5cabf93d31c0/srlinux-ndk-0.4.0.tar.gz",
    "platform": null,
    "description": "<p align=center><a href=\"https://learn.srlinux.dev\"><img src=https://gitlab.com/rdodin/pics/-/wikis/uploads/0102e45007f7fcc357aacdffe61e9555/srl-ndk-py.svg?sanitize=true/></a></p>\n\n---\n\nThe 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).\n\nThis repository contains generated Python code for [SR Linux NDK Protocol buffers](https://github.com/nokia/srlinux-ndk-protobufs).\n\n## Installation\n\nThe Python `srlinux-ndk` package version is synchronized with the SR Linux [NDK protobuf releases](https://github.com/nokia/srlinux-ndk-protobufs).\n\nUse git tags to check out a particular version of the generated package files.\n\nTo install the `srlinux-ndk` python package with `pip`, use one of the following:\n\n```bash\n# install the latest version from pypi\npip install srlinux-ndk\n# install the specific version from pypi\npip install srlinux-ndk==0.1.0\n\n# install the latest version from the main github branch\npip install https://github.com/nokia/srlinux-ndk-py/archive/main.zip\n# install the specific version from github\npip install https://github.com/nokia/srlinux-ndk-py/archive/0.1.0.zip\n```\n\nThese installation steps will install the `srlinux-ndk` package on your system. To import the modules from this package:\n\n```py\nfrom ndk import appid_service_pb2\n```\n\n## Code generation\n\nThis code has been generated from [SR Linux NDK Protocol buffers](https://github.com/nokia/srlinux-ndk-protobufs) using [`protoc` compiler](https://github.com/srl-labs/protoc-container) with the gRPC plugins for Go and Python.\n\n`gen.sh` script calls the `protoc` container using the ndk protobufs version as its single argument.\n\n```bash\nbash gen.sh v0.1.1\n```\n\nThe python package will appear under `ndk` name in the current working directory.\n\n## Publishing\n\nTo publish the generated package on pypi,\n\n1. Change the version of the package in [setup.py](setup.py) accordingly.\n2. Create a github release using UI or gh cli tool.\n\n\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Nokia SR Linux NetOps Development Kit",
    "version": "0.4.0",
    "project_urls": {
        "Homepage": "https://github.com/nokia/srlinux-ndk-py"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d4d7fdc9fdea2c2216844ffa4d59d28b8599643a86b71a9b535afebc716c6efb",
                "md5": "532da074d7d1fe3c8fea08636117d8d6",
                "sha256": "5f2adf7cefd72528dfa8c60920da00d9e98f0d8aa774a81e434667551cc442a6"
            },
            "downloads": -1,
            "filename": "srlinux_ndk-0.4.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "532da074d7d1fe3c8fea08636117d8d6",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 27632,
            "upload_time": "2024-10-29T06:22:48",
            "upload_time_iso_8601": "2024-10-29T06:22:48.603926Z",
            "url": "https://files.pythonhosted.org/packages/d4/d7/fdc9fdea2c2216844ffa4d59d28b8599643a86b71a9b535afebc716c6efb/srlinux_ndk-0.4.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0138677987797652a07c54890fdfac2512764b1c910eb39d611f5cabf93d31c0",
                "md5": "4bfac78cbf03fa03c117b13552206136",
                "sha256": "e557e659313410101ce4e0ea7dd2cc5627e947010b1c387ecb6ddaec819c91d4"
            },
            "downloads": -1,
            "filename": "srlinux-ndk-0.4.0.tar.gz",
            "has_sig": false,
            "md5_digest": "4bfac78cbf03fa03c117b13552206136",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 16572,
            "upload_time": "2024-10-29T06:22:49",
            "upload_time_iso_8601": "2024-10-29T06:22:49.506450Z",
            "url": "https://files.pythonhosted.org/packages/01/38/677987797652a07c54890fdfac2512764b1c910eb39d611f5cabf93d31c0/srlinux-ndk-0.4.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-29 06:22:49",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "nokia",
    "github_project": "srlinux-ndk-py",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "protobuf",
            "specs": [
                [
                    "==",
                    "4.23.3"
                ]
            ]
        },
        {
            "name": "grpcio",
            "specs": [
                [
                    "==",
                    "1.56.0"
                ]
            ]
        }
    ],
    "lcname": "srlinux-ndk"
}
        
Elapsed time: 0.42270s