Module licenseware.app_builder.decrypt_namespace

Here we are creating the licenseware.app_builder.decrypt_namespace.decrypt_namespace that will be imported in app_builder along with the route creation functions from this package.

Use one module per route.

Expand source code
"""

Here we are creating the `decrypt_namespace` that will be imported in `app_builder` along with the route creation functions from this package.

Use one module per route.

"""

from flask_restx import Namespace
# from licenseware.common.constants import envs

# Here we are importing the route creation functions 
# Each function will receive the `decrypt_namespace` as a first parameter followed by other parameters if needed
from .decrypt_namespace import get_decrypt_namespace


# Here we are defining the decrypt namespace which will be imported in app_builder
decrypt_namespace = Namespace(
    name="Decrypt",
    description="Decrypt list of values received",
    path="/decrypt"
)

Sub-modules

licenseware.app_builder.decrypt_namespace.decrypt_namespace

Notice we are using marshmallow_to_restx_model function to generate the swagger body required for the request. Notice also the separation of …