For the complete documentation index, see llms.txt. This page is also available as Markdown.

ncs Module

NCS Python high level module.

The high-level APIs provided by this module are an abstraction on top of the low-level APIs. This makes them easier to use, improves code readability and development rate for common use cases, such as service and action callbacks.

As an example, the maagic module greatly simplifies the way of accessing data. First it helps in navigating the data model, using standard Python object dot notation, giving very clear and readable code. The context handlers remove the need to close sockets, user sessions and transactions. Finally, by removing the need to know the data types of the leafs, allows you to focus on the program logic.

This top module imports the following modules:

  • alarm -- NSO alarm handling

  • application -- module for implementing packages and services

  • cdb -- placeholder for low-level _ncs.cdb items

  • dp -- data provider, actions

  • error -- placeholder for low-level _ncs.error items

  • events -- placeholder for low-level _ncs.events items

  • ha -- placeholder for low-level _ncs.ha items

  • log -- logging utilities

  • maagic -- data access module

  • maapi -- MAAPI interface

  • template -- module for working with templates

  • service_log -- module for doing service logging

  • upgrade -- module for writing upgrade components

  • util -- misc utilities

Submodules

  • ncs.alarm: NCS Alarm Manager module.

  • ncs.application: Module for building NCS applications.

  • ncs.cdb: CDB high level module.

  • ncs.dp: Callback module for connecting data providers to ConfD/NCS.

  • ncs.experimental: Experimental stuff.

  • ncs.log: This module provides some logging utilities.

  • ncs.maagic: Confd/NCS data access module.

  • ncs.maapi: MAAPI high level module.

  • ncs.progress: MAAPI progress trace high level module.

  • ncs.service_log: This module provides service logging

  • ncs.template: This module implements classes to simplify template processing.

  • ncs.util: Utility module, low level abstrations

Predefined Values

Last updated

Was this helpful?