Skip to main content

Python 3 for Nokia Service Router Operating System (pySROS)

Overview

The pySROS libraries provide a model-driven management interface for Python developers to integrate with supported Nokia routers running the Service Router Operating System (SR OS).

The libraries provide an Application Programming Interface (API) for developers to create applications that can interact with Nokia SR OS devices, whether those applications are executed from a development machine or directly on the router.

When a developer uses only libraries and constructs supported on SR OS, a single application may be executed from a development machine or ported directly to an SR OS node where the application is executed.

Pre-requisites

In order to use the pySROS library the following pre-requisites must be met:

  • One or more SR OS node
    • Running in model-driven mode
    • Running SR OS 21.7.R1 or greater (to execute applications on the SR OS device)
    • With NETCONF enabled and accessible by an authorized user (to execute applications remotely)
  • A Python 3 interpreter of version 3.10 or newer when using the pySROS library to execute applications remotely

License

Copyright 2021-2024 Nokia.

The license is located here.

Reporting issues

Issues, suggestions, and enhancements are welcome. Please use the Nokia support process. Issues raised in GitHub may be considered for inclusion into the project by Nokia. Pull requests are not accepted.

Installation

Multiple installation methods are available:

Note: It is recommended to use Python virtual environments where appropriate.

PyPi

The preferred method of installation of the pySROS libraries is to install directly from the Python Package index (PyPi) using the pip tool.

The pySROS project is located on PyPi.org.

The libraries can be downloaded and installed by using the following:

pip install pysros

To upgrade to the latest release use:

pip install --upgrade pysros

Nokia support portal

The pySROS libraries are available for download from the portal for registered customers.

The obtained file can be unzipped and subsequently installed using:

python3 setup.py install

GitHub

The pySROS libraries are available for download from GitHub.

The obtained file can be installed using:

git clone https://github.com/nokia/pysros
python3 setup.py install

Documentation and examples

Guidance documentation is available in the SR OS System Management Guide.

API documentation is provided in this repository and may be compiled from source using:

cd docs
pip3 install -r requirements.txt
make html

The built documentation will be available in the docs/build/html directory.

Alternative formats may be selected after the make command instead of the html attribute. Some of these include:

  • singlehtml
  • man
  • text

Further reading and assistance

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pysros-25.10.7.tar.gz (84.1 kB view details)

Uploaded Source

Built Distribution

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

pysros-25.10.7-py3-none-any.whl (88.7 kB view details)

Uploaded Python 3

File details

Details for the file pysros-25.10.7.tar.gz.

File metadata

  • Download URL: pysros-25.10.7.tar.gz
  • Upload date:
  • Size: 84.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for pysros-25.10.7.tar.gz
Algorithm Hash digest
SHA256 6004ad4084b0d1e5e5c085f81c14d9f7d3726cc70306aa9e76126e4abc1d58ea
MD5 50c02a459acc6716c403cb3cc1c15ae1
BLAKE2b-256 8e583dc3c4be828179e15f26b9dd61eeac441f877237e04e357212849139c8cf

See more details on using hashes here.

File details

Details for the file pysros-25.10.7-py3-none-any.whl.

File metadata

  • Download URL: pysros-25.10.7-py3-none-any.whl
  • Upload date:
  • Size: 88.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for pysros-25.10.7-py3-none-any.whl
Algorithm Hash digest
SHA256 42ef6d4e069d58e420fb219a35310a5e19c734055681b6632839cc9e0569599a
MD5 f411f28957d0ca93306bc499f363ad76
BLAKE2b-256 cafa8899b65feb7c685d7e85ad27151e4af8cb64bb311c31c068dc2d36a3ffe1

See more details on using hashes here.

Release history Release notifications | RSS feed

26.7.2

2 files

26.7.1

2 files

26.3.3

2 files

26.3.2

2 files

26.3.1

2 files

This release

25.10.7 This release

2 files

25.10.6

2 files

25.10.5

2 files

25.10.4

2 files

25.10.3

2 files

25.10.2

2 files

25.10.1

2 files

25.7.2

2 files

25.7.1

2 files

25.3.2

2 files

25.3.1

2 files

24.10.9

2 files

24.10.8

2 files

24.10.7

2 files

24.10.6

2 files

24.10.5

2 files

24.10.4

2 files

24.10.3

2 files

24.10.2

2 files

24.10.1

2 files

24.7.2

2 files

24.7.1

2 files

24.3.3

2 files

24.3.2

2 files

24.3.1

2 files

23.10.13

2 files

23.10.12

2 files

23.10.11

2 files

23.10.10

2 files

23.10.9

2 files

23.10.8

2 files

23.10.7

2 files

23.10.6

2 files

23.10.5

2 files

23.10.4

2 files

23.10.3

2 files

23.10.2

2 files

23.10.1

2 files

23.7.2

2 files

23.7.1

2 files

23.3.3

2 files

23.3.2

2 files

23.3.1

2 files

22.10.13

2 files

22.10.12

2 files

22.10.11

2 files

22.10.9

2 files

22.10.8

2 files

22.10.7

2 files

22.10.6

2 files

22.10.5

2 files

22.10.4

2 files

22.10.3

2 files

22.10.2

2 files

22.10.1

2 files

22.7.2

2 files

22.7.1

2 files

22.5.2

2 files

22.5.1

2 files

22.2.2

2 files

22.2.1

2 files

21.10.13

2 files

21.10.12

2 files

21.10.11

2 files

21.10.10

2 files

21.10.9

2 files

21.10.8

2 files

21.10.7

2 files

21.10.6

2 files

21.10.5

2 files

21.10.4

2 files

21.10.3

2 files

21.10.2

2 files

21.10.1

2 files

21.7.2

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page