otupy.core.extensions
OpenC2 Extensions
This module defines internal structures to register extensions defined by additional profiles. It also includes helper functions to be used as decorators to manage the registration of the extensions.
Classes that can be extended must allocate an item to keep track of all extensions registered in Profiles. This class must not be instantiated. Just use its class methods as decorators for both base and extended classes.
Each item in Extensions includes: - the name of the class to be extended as the key; - a Register object as value, which will contain all the extensions.
Usage: - Define a class as extensible by using the @extensible decorator; - Register extensions by using the @extension decorator for classes that define an extension.
Module attributes
Extensions |
Functions
The @extensible decorator |
|
@extends decorator |